xfs
[Top] [All Lists]

Re: XFS: possible memory allocation deadlock in kmem_alloc

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: XFS: possible memory allocation deadlock in kmem_alloc
From: éåå <baotiao@xxxxxxxxx>
Date: Tue, 31 May 2016 10:43:36 +0800
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=7LaLXyI0Ht4giv9TiVWSWywGh4MkWIUy0xnZVi+EV90=; b=Qtc3tgfcDLKM8qiNUw+7oVOtK5SQ7LEmODxlOrMHWvVr7yA6A0RvBD0uTX5bBcRqMX GmR6KJIXboQ3XThabiSlsokrbludqe9jDF16F4PZFpx0KOTe4jDdSgaK++eNAoGnVcrD 7KlTqTR61VIJt+NyfsUSEMdoF6IhvylKMGFF6xamz3Zvb5oSyMOaAFSsrKNiM/t/w4Gh hjH785ZD7DsdM1ZG1P51jzcKuGQUCjCLvQTniK+x1fxWF9HjEP/ZQb4v9OPG0+Iy5ccI PSITrZ8TNsBcLOjbJ9LT9bKbGc8VH0WrGtCrH5F1CHDDVw9g6AjgvxiYAKEflTIqi/I6 4QbQ==
In-reply-to: <9BD371B3-8A44-481C-B9E4-381BAE0B6B79@xxxxxxxxx>
References: <AD1240BA-DB24-44F2-893D-28A824063F99@xxxxxxxxx> <20160530050452.GM26977@dastard> <9BD371B3-8A44-481C-B9E4-381BAE0B6B79@xxxxxxxxx>
I have fint the way to change the extent size hint
mkfs.xfs -r extsize=40960 /dev/sda1

but I should rebuild the disk, do you have a way more smooth?


On Mon, May 30, 2016 at 4:48 PM, baotiao <baotiao@xxxxxxxxx> wrote:
how can I set the extent size hint to a file with command line?Â
I have google for a lot, but I can't find a answer


On May 30, 2016, at 13:04, Dave Chinner <david@xxxxxxxxxxxxx> wrote:

On Mon, May 30, 2016 at 12:45:07PM +0800, baotiao wrote:
This machine is running for qemu, Âthe file is qemu qcow file type

[root@w-openstack20 /data/nova/instances/7898b630-c4ef-49ab-9ce9-3735e090c282]# file disk
disk: QEMU QCOW Image (v3), has backing file (path /data/nova/instances/_base/3f27393376152ac352b2d85703011e38517e), 429496729600 bytes

Oh, you're using delta/snapshot based qcow images. That, by it's
very nature, generates fragmented image files as they are a delta
over the backing file.

....
actual 48421430, ideal 20716, fragmentation factor 99.96%

How can I solve this problem, what do you suggest me to do?

Use a extent size hint (say 1-8MB) for your qcow2 image files so that
they don't fragment badly as they are written to.

Cheers,

Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx




--
<Prev in Thread] Current Thread [Next in Thread>