Re: [PATCH 2/2] Btrfs: improve fsync by filtering extents that we want

2012-08-28 Thread Josef Bacik
On Mon, Aug 27, 2012 at 06:22:02PM -0600, Liu Bo wrote: On 08/28/2012 01:12 AM, Josef Bacik wrote: On Mon, Aug 27, 2012 at 10:52:20AM -0600, Liu Bo wrote: This is based on Josef's Btrfs: turbo charge fsync. The above Josef's patch performs very good in random sync write test, because we

[PATCH 2/2] Btrfs: improve fsync by filtering extents that we want

2012-08-27 Thread Liu Bo
This is based on Josef's Btrfs: turbo charge fsync. The above Josef's patch performs very good in random sync write test, because we won't have too much extents to merge. However, it does not performs good on the test: dd if=/dev/zero of=foobar bs=4k count=12500 oflag=sync The reason is when we

Re: [PATCH 2/2] Btrfs: improve fsync by filtering extents that we want

2012-08-27 Thread Josef Bacik
On Mon, Aug 27, 2012 at 10:52:20AM -0600, Liu Bo wrote: This is based on Josef's Btrfs: turbo charge fsync. The above Josef's patch performs very good in random sync write test, because we won't have too much extents to merge. However, it does not performs good on the test: dd

Re: [PATCH 2/2] Btrfs: improve fsync by filtering extents that we want

2012-08-27 Thread Liu Bo
On 08/28/2012 01:12 AM, Josef Bacik wrote: On Mon, Aug 27, 2012 at 10:52:20AM -0600, Liu Bo wrote: This is based on Josef's Btrfs: turbo charge fsync. The above Josef's patch performs very good in random sync write test, because we won't have too much extents to merge. However, it does not