Re: [PATCH 2/2] improve ext3 fsync batching

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Dilger <adilger@...>
Cc: Andrew Morton <akpm@...>, Josef Bacik <jbacik@...>, <linux-kernel@...>, <tglx@...>, <linux-fsdevel@...>, <chris.mason@...>, <linux-ext4@...>
Date: Tuesday, August 19, 2008 - 7:01 am

Andreas Dilger wrote:

The code was originally tuned to S-ATA & ATA disk response times which 
are closer to 12-15ms. Sleeping for 10ms (100HZ kernel) or 4ms (250HZ) 
did not overly penalize the low thread count case and worked well for 
higher thread counts (and ext3 special cases the single threaded writer 
so no sleep happens).

This is still a really, really good thing to do, but we need to sleep 
less when the device characteristics are radically different. For 
example, a fibre channel attached disk array drops that 12-15 ms down to 
1.5 ms (not to mention RAM disks!).

It would be great to be able to use this batching technique for faster 
devices, but we currently sleep 3-4 times longer waiting to batch for an 
array than it takes to complete the transaction.

Thanks!

Ric


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] add hrtimer_sleep_ns helper function, Josef Bacik, (Wed Aug 6, 3:08 pm)
Re: [PATCH 1/2] add hrtimer_sleep_ns helper function, Matthew Wilcox, (Tue Aug 19, 3:15 pm)
Re: [PATCH 1/2] add hrtimer_sleep_ns helper function, Josef Bacik, (Tue Aug 19, 3:22 pm)
Re: [PATCH 1/2] add hrtimer_sleep_ns helper function, Matthew Wilcox, (Tue Aug 19, 3:36 pm)
Re: [PATCH 1/2] add hrtimer_sleep_ns helper function, Josef Bacik, (Tue Aug 19, 3:39 pm)
[PATCH 2/2] improve ext3 fsync batching, Josef Bacik, (Wed Aug 6, 3:15 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Andrew Morton, (Tue Aug 19, 12:31 am)
Re: [PATCH 2/2] improve ext3 fsync batching, Andreas Dilger, (Tue Aug 19, 1:44 am)
Re: [PATCH 2/2] improve ext3 fsync batching, Ric Wheeler, (Tue Aug 19, 7:01 am)
Re: [PATCH 2/2] improve ext3 fsync batching, Andrew Morton, (Tue Aug 19, 1:56 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Josef Bacik, (Tue Aug 19, 3:18 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Ric Wheeler, (Tue Aug 19, 2:43 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Andrew Morton, (Tue Aug 19, 4:34 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Ric Wheeler, (Tue Aug 19, 2:08 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Andrew Morton, (Tue Aug 19, 4:29 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Ric Wheeler, (Tue Aug 19, 4:55 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Andrew Morton, (Tue Aug 19, 5:18 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Ric Wheeler, (Tue Aug 19, 5:29 pm)
Re: [PATCH 2/2] improve ext3 fsync batching, Josef Bacik, (Wed Aug 6, 3:23 pm)