On 10/26/2011 07:18 AM, Myroslav Opyr wrote: > liubo <liubo2009 <at> cn.fujitsu.com> writes: > >> On 04/22/2011 09:28 AM, Chris Mason wrote: >>> Right, at the very least we want to just use one bit of that field >>> instead of all 8. But keeping a sub-transid and putting that in the >>> generation field of the file extent instead can get us the same benefits >>> without stealing the bits. >>> >> Nice. This is the first step of my plan. >> >>> As we push the sub transid into the btree blocks as well, we'll get much >>> faster tree walks too. The penalty is in complexity in the logging >>> code, since it will have to deal with finding extents in the log tree >>> and merging in the new extents from the file. >> I've been thinking of this extent buffer with sub transid stuff for a while, >> and will give it a try. :) > > Hi, > > any progress upon this patch? We started experimenting with btrfs and were > immediately hit by the large file fsync issue. >
The patchset has been done and queued for merge, and you can try it with the newest version: http://marc.info/?l=linux-btrfs&m=131262353801288&w=2 http://marc.info/?l=linux-btrfs&m=131262353701285&w=2 http://marc.info/?l=linux-btrfs&m=131262357201359&w=2 http://marc.info/?l=linux-btrfs&m=131262353301276&w=2 http://marc.info/?l=linux-btrfs&m=131262356501328&w=2 http://marc.info/?l=linux-btrfs&m=131262352901267&w=2 http://marc.info/?l=linux-btrfs&m=131262355001313&w=2 http://marc.info/?l=linux-btrfs&m=131262357201356&w=2 http://marc.info/?l=linux-btrfs&m=131262354201304&w=2 http://marc.info/?l=linux-btrfs&m=131262355801321&w=2 http://marc.info/?l=linux-btrfs&m=131262355001310&w=2 http://marc.info/?l=linux-btrfs&m=131262354001293&w=2 http://marc.info/?l=linux-btrfs&m=131262353301279&w=2 thanks, liubo > Each fsync operation to 3.3Gb file that is having several dozens of bytes > appended is being visualized as 55-58sec long freeze of all filesystem > operations altogether with 99.9% CPU utilization in the process that caused > the > fsync. Removing fsync calls made several magnitudes difference in operations > speed. > > FYI, we are running 2.6.38.8-32.fc15.i686.PAE with Btrfs v0.19 as XEN DomU > and > btrfs considers virtual xvd device (backed by HDD file on Dom0) to be SSD > (according to dmesg) if that matters. > > Regards, > > m. > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html