Re: [PATCH] [RFC] Add btrfs autosnap feature

2012-03-01 Thread cwillu
There's a few things that bother me about this, not least of all the assumptions it makes about cron,(notably the direct modification of crontab files, which is considered to be an internal detail if I understand correctly, and I'm fairly certain is broken as written), and how it writes to its own

Re: your mail

2012-03-01 Thread David Sterba
On Thu, Mar 01, 2012 at 04:41:02AM -0800, bella tk wrote: > I want to use btrfs defrag tool but before that i want to know how > much the disk is fragmented. I have tried to use filefrag but it gives > me FIBMAP:invalid argument for many times. The only way to trigger FIBMAP on btrfs is to run fil

Re: [PATCH] [RFC] Add btrfs autosnap feature

2012-03-01 Thread Roman Mamedov
On Wed, 29 Feb 2012 10:59:36 +0800 asj wrote: > This patch adds btrfs autosnap feature. This creates and > saves the autosnap config at /etc/autosnap/config. > Depending on the configuration, autosnap either schedules > the snapshots by updating the crontab or provides an API > to trigger the sna

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Jacek Luczak
2012/2/29 Jacek Luczak : > 2012/2/29 Chris Mason : >> On Wed, Feb 29, 2012 at 03:07:45PM +0100, Jacek Luczak wrote: >> >> [ btrfs faster than ext for find and cp -a ] >> >>> 2012/2/29 Jacek Luczak : >>> >>> I will try to answer the question from the broken email I've sent. >>> >>> @Lukas, it was al

Re: [RFC] btrfs auto snapshot

2012-03-01 Thread Arvin Schnell
On Thu, Feb 23, 2012 at 04:54:06PM +0700, Fajar A. Nugraha wrote: > On Thu, Aug 18, 2011 at 12:38 AM, Matthias G. Eckermann wrote: > > are available in the openSUSE buildservice at: > > > >        http://download.opensuse.org/repositories/home:/mge1512:/snapper/ > > > > Hi Matthias, > > I'm tes

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Hillf Danton
On Thu, Mar 1, 2012 at 9:35 PM, Jacek Luczak wrote: > > While I was about to grab acp I've noticed seekwatcher with made my day :) > > seekwatcher run of tar cf to eliminate writes (all done on 3.2.7): > 1) btrfs: http://dozzie.jarowit.net/~dozzie/luczajac/tar_btrfs.png > 2) ext4: http://dozzie.ja

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Jacek Luczak
2012/3/1 Hillf Danton : > On Thu, Mar 1, 2012 at 9:35 PM, Jacek Luczak wrote: >> >> While I was about to grab acp I've noticed seekwatcher with made my day :) >> >> seekwatcher run of tar cf to eliminate writes (all done on 3.2.7): >> 1) btrfs: http://dozzie.jarowit.net/~dozzie/luczajac/tar_btrfs.

Re: [RFC] btrfs auto snapshot

2012-03-01 Thread Fajar A. Nugraha
On Thu, Mar 1, 2012 at 8:48 PM, Arvin Schnell wrote: > On Thu, Feb 23, 2012 at 04:54:06PM +0700, Fajar A. Nugraha wrote: >> On Thu, Aug 18, 2011 at 12:38 AM, Matthias G. Eckermann >> wrote: > >> > are available in the openSUSE buildservice at: >> > >> >        http://download.opensuse.org/reposi

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Chris Mason
On Thu, Mar 01, 2012 at 03:03:53PM +0100, Jacek Luczak wrote: > 2012/3/1 Hillf Danton : > > On Thu, Mar 1, 2012 at 9:35 PM, Jacek Luczak > > wrote: > >> > >> While I was about to grab acp I've noticed seekwatcher with made my day :) > >> > >> seekwatcher run of tar cf to eliminate writes (all don

Re: your mail

2012-03-01 Thread Chris Mason
On Thu, Mar 01, 2012 at 01:58:14PM +0100, David Sterba wrote: > On Thu, Mar 01, 2012 at 04:41:02AM -0800, bella tk wrote: > > I want to use btrfs defrag tool but before that i want to know how > > much the disk is fragmented. I have tried to use filefrag but it gives > > me FIBMAP:invalid argument

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Chris Mason
On Wed, Feb 29, 2012 at 11:44:31PM -0500, Theodore Tso wrote: > You might try sorting the entries returned by readdir by inode number before > you stat them.This is a long-standing weakness in ext3/ext4, and it has > to do with how we added hashed tree indexes to directories in (a) a backward

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Jacek Luczak
2012/3/1 Chris Mason : > On Thu, Mar 01, 2012 at 03:03:53PM +0100, Jacek Luczak wrote: >> 2012/3/1 Hillf Danton : >> > On Thu, Mar 1, 2012 at 9:35 PM, Jacek Luczak >> > wrote: >> >> >> >> While I was about to grab acp I've noticed seekwatcher with made my day :) >> >> >> >> seekwatcher run of tar

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Chris Mason
On Thu, Mar 01, 2012 at 03:43:41PM +0100, Jacek Luczak wrote: > 2012/3/1 Chris Mason : > > XFS will probably beat btrfs in this test.  Their directory indexes > > reflect on disk layout very well. > > True, but not that fast on small files. > > Except the question I've raised in first mail there'

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Jacek Luczak
2012/3/1 Chris Mason : > On Thu, Mar 01, 2012 at 03:43:41PM +0100, Jacek Luczak wrote: >> 2012/3/1 Chris Mason : >> > XFS will probably beat btrfs in this test.  Their directory indexes >> > reflect on disk layout very well. >> >> True, but not that fast on small files. >> >> Except the question I'

Re: getdents - ext4 vs btrfs performance

2012-03-01 Thread Ted Ts'o
On Thu, Mar 01, 2012 at 03:43:41PM +0100, Jacek Luczak wrote: > > Yep, ext4 is close to my wife's closet. > Were all of the file systems freshly laid down, or was this an aged ext4 file system? Also you should beware that if you have a workload which is heavy parallel I/O, with lots of random,

Re: Set nodatacow per file?

2012-03-01 Thread dima
On 02/28/2012 09:51 AM, dima wrote: On 02/28/2012 07:10 AM, Chester wrote: On Mon, Feb 27, 2012 at 7:54 AM, dima wrote: Hello, Since several people asked to post the results, here they are. I tried raw virtio disk with and without -z -C set and also qcow2 virtio disk without -z -C set and did