Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-29 Thread Boaz Harrosh
On 05/25/2012 06:35 PM, Alexander Block wrote: Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would like to start a discussion on atime in Btrfs (and other filesystems with snapshot support). As atime is updated on every access of a file or directory, we

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-29 Thread Alexander Block
On Tue, May 29, 2012 at 10:14 AM, Boaz Harrosh bharr...@panasas.com wrote: Sounds like a real problem. I would suggest a few remedies. 1. Make a filesystem persistent parameter that says noatime/relatime/atime   So the default if not specified on mount is taken as a property of   the FS (mkfs

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-26 Thread Xavier Nicollet
Le 25 May 2012 ? 11:42, Josef Bacik a écrit: Just mount with -o noatime, there's no chance of turning something like that on by default since it will break some applications (notably mutt). Thanks, I've just updated the wiki: https://btrfs.wiki.kernel.org/index.php/Mount_options#Performance

atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would like to start a discussion on atime in Btrfs (and other filesystems with snapshot support). As atime is updated on every access of a file or directory, we get many changes to the trees in btrfs that as always

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Josef Bacik
On Fri, May 25, 2012 at 05:35:37PM +0200, Alexander Block wrote: Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would like to start a discussion on atime in Btrfs (and other filesystems with snapshot support). As atime is updated on every access of a file

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 5:42 PM, Josef Bacik jo...@redhat.com wrote: On Fri, May 25, 2012 at 05:35:37PM +0200, Alexander Block wrote: Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would like to start a discussion on atime in Btrfs (and other filesystems with

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 6:28 PM, Andreas Dilger adil...@dilger.ca wrote: On 2012-05-25, at 9:59, Alexander Block abloc...@googlemail.com wrote: Are you talking about the atime for the primary copy, or the atime for the snapshots?  IMHO, the atime should not be updated for a snapshot unless it

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 6:32 PM, Freddie Cash fjwc...@gmail.com wrote: On May 25, 2012 9:00 AM, Alexander Block abloc...@googlemail.com wrote: On Fri, May 25, 2012 at 5:42 PM, Josef Bacik jo...@redhat.com wrote: On Fri, May 25, 2012 at 05:35:37PM +0200, Alexander Block wrote: Hello,

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Andreas Dilger
On 2012-05-25, at 9:59, Alexander Block abloc...@googlemail.com wrote: On Fri, May 25, 2012 at 5:42 PM, Josef Bacik jo...@redhat.com wrote: On Fri, May 25, 2012 at 05:35:37PM +0200, Alexander Block wrote: Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 5:35 PM, Alexander Block abloc...@googlemail.com wrote: Hello, (this is a resend with proper CC for linux-fsdevel and linux-kernel) I would like to start a discussion on atime in Btrfs (and other filesystems with snapshot support). As atime is updated on every

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Peter Maloney
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

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 10:27 PM, Peter Maloney peter.malo...@brockmann-consult.de wrote: 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

Re: atime and filesystems with snapshots (especially Btrfs)

2012-05-25 Thread Alexander Block
On Fri, May 25, 2012 at 10:42 PM, Alexander Block abloc...@googlemail.com wrote: On Fri, May 25, 2012 at 10:27 PM, Peter Maloney peter.malo...@brockmann-consult.de wrote: 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