Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758789Ab2EYU2Q (ORCPT ); Fri, 25 May 2012 16:28:16 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:58579 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757130Ab2EYU2M (ORCPT ); Fri, 25 May 2012 16:28:12 -0400 Message-ID: <4FBFEB49.7050901@brockmann-consult.de> Date: Fri, 25 May 2012 22:27:53 +0200 From: Peter Maloney User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120421 Thunderbird/12.0 MIME-Version: 1.0 To: Alexander Block CC: linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: atime and filesystems with snapshots (especially Btrfs) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:lvoc9LDfBILOHd1WGE2xX5RH45jhrP5q83jhoDJZh+I 5rpo2ciD8GLj4XmUk38ERxBfRAuFXoDsPw4O8OAJtht0giOdpC wciMBdWE2NIjEKCgVgtrtznbs4KRkFSha4/NPxOo5G76ZsDoHY vxDPgEfWW/L49qpCNwKtFZMkJCuyZqZHtSMy8q6J91+Gt3bsKJ hfd4yOzafrX1UZ8YGZnHBArZSYP6WDokWJAlPNuACa5LpCIi6h alPUDIpmP5JbAISMsr2cyrDitf3rS21u0T6WYhJ269RYGnQyYD siDUS38YbLmldV6EdLpeTvf1ilNSIdPYy6BiaGvlrYSrG8czC2 LTOV+zDb71tjEw8A4i4Soi/1EzrjE+AgJfoz/6KyL0iwchAJaK JsuBGb77x5q4w== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1977 Lines: 39 On 05/25/2012 09:10 PM, Alexander Block wrote: > Just to show some numbers I made a simple test on a fresh btrfs fs. I > copied my hosts /usr (4 gig) folder to that fs and checked metadata > usage with "btrfs fi df /mnt", which was around 300m. Then I created > 10 snapshots and checked metadata usage again, which didn't change > much. Then I run "grep foobar /mnt -R" to update all files atime. > After this was finished, metadata usage was 2.59 gig. So I lost 2.2 > gig just because I searched for something. If someone already has > nearly no space left, he probably won't be able to move some data to > another disk, as he may get ENOSPC while copying the data. > > Here is the output of the final "btrfs fi df": > > # btrfs fi df /mnt > Data: total=6.01GB, used=4.19GB > System, DUP: total=8.00MB, used=4.00KB > System: total=4.00MB, used=0.00 > Metadata, DUP: total=3.25GB, used=2.59GB > Metadata: total=8.00MB, used=0.00 > > I don't know much about other filesystems that support snapshots, but > I have the feeling that most of them would have the same problem. Also > all other filesystems in combination with LVM snapshots may cause > problems (I'm not very familiar with LVM). Filesystem image formats, > like qcow, vmdk, vbox and so on may also have problems with atime. > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Did you run the recursive grep after each snapshot (which I would expect would result in 11 times as many metadata blocks, max 3.3 GB), or just once after all 10 snapshots (which I think would mean only 2x as many metadata blocks, max 600 MB)? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/