Re: btrfs subvolume snapshot performance problem

2012-12-18 Thread cwillu
On Tue, Dec 18, 2012 at 7:06 AM, Sylvain Alain wrote: > So, if I don't use the discard command, how often do I need to run the > fstrim command ? If your ssd isn't a pile of crap, never. SSD's are always over-provisioned, and so every time an erase block fills up, the drive knows that there must

Re: btrfs subvolume snapshot performance problem

2012-12-17 Thread Russell Coker
On Mon, 17 Dec 2012, Sander wrote: > Let me repeat the answer cwillu gave to Russell on this, and Russell's > response: Also tests did indicate a performance benefit on snapshots when I stopped using discard. It was as much as 15 seconds to create a snapshot and now it's consistently less than

Re: btrfs subvolume snapshot performance problem

2012-12-17 Thread Sander
Sylvain Alain wrote (ao): > gentootux ~ # mount /dev/sda4 -o > noatime,ssd,discard,compress=lzo,noacl,space_cache,subvolid=0 ^^^ > Instead of 3 secondes to run the snapshot, it took almost 4 minutes. Let me repeat the answer cwillu gave to Russell on this, and Russell's response

Re: btrfs subvolume snapshot performance problem

2012-12-16 Thread Liu Bo
On Sun, Dec 16, 2012 at 06:28:01PM -0500, Sylvain Alain wrote: > Hi everyone, I'm still have the problem with the snapshot command. > > Here what I tested today : > > read writ|files inodes >0 408k| 2784 7264 >0 460k| 2784 7264 >0 496k| 2784 7264 >0 424k| 2784 72