From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 264877CA0 for ; Mon, 30 May 2016 21:43:47 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 79AF1AC001 for ; Mon, 30 May 2016 19:43:43 -0700 (PDT) Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by cuda.sgi.com with ESMTP id 7kgrYensCciPCe9V (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 30 May 2016 19:43:37 -0700 (PDT) Received: by mail-qg0-f50.google.com with SMTP id e93so85166956qgf.2 for ; Mon, 30 May 2016 19:43:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <9BD371B3-8A44-481C-B9E4-381BAE0B6B79@gmail.com> References: <20160530050452.GM26977@dastard> <9BD371B3-8A44-481C-B9E4-381BAE0B6B79@gmail.com> Date: Tue, 31 May 2016 10:43:36 +0800 Message-ID: Subject: Re: XFS: possible memory allocation deadlock in kmem_alloc From: =?UTF-8?B?6ZmI5a6X5b+X?= List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6826909824824552203==" Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com --===============6826909824824552203== Content-Type: multipart/alternative; boundary=001a11c1248afd1fdc05341a561f --001a11c1248afd1fdc05341a561f Content-Type: text/plain; charset=UTF-8 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 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 > > ---------------------------------------- > > Github: https://github.com/baotiao > Blog: http://baotiao.github.io > Stackoverflow: http://stackoverflow.com/users/634415/baotiao > Linkedin: http://www.linkedin.com/profile/view?id=145231990 > > On May 30, 2016, at 13:04, Dave Chinner 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@fromorbit.com > > > -- --- Blog: http://www.chenzongzhi.info Twitter: https://twitter.com/baotiao Git: https://github.com/baotiao --001a11c1248afd1fdc05341a561f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have fint the way to change the extent size hintmkfs.xfs -r extsize=3D40960 /dev/sda1

but I should rebuild th= e disk, do you have a way more smooth?


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


On Ma= y 30, 2016, at 13:04, Dave Chinner <david@fromorbit.com> wrote:

= On Mon, May 30, 2016 at 12:45:07PM +0800, baotiao wrote:
This machine is running for qemu, =C2=A0the file is qemu qcow fi= le type

[root@w-openstack20 /data/nova/instances/7898b630-c4ef-49ab-= 9ce9-3735e090c282]# file disk
disk: QEMU QCOW Image (v3), has backing fi= le (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 i= mage files as they are a delta
over the backing file.

....
actual 48421430, ideal 20716, fragmentation factor 9= 9.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 f= iles so that
they don't fragment badly as they are written to.
<= br>Cheers,

Dave.
--
Dave Chinner
david@fromorbit.com




--
---
Blog: http://www.chenzongzhi.info
Twitter: https://twitte= r.com/baotiao
Git: https://github.com/baotiao
--001a11c1248afd1fdc05341a561f-- --===============6826909824824552203== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============6826909824824552203==--