All of lore.kernel.org
 help / color / mirror / Atom feed
* fsync 50 times slower after 2.5.27
@ 2002-09-19  0:22 Duncan Sands
  2002-09-19  0:35 ` Andrew Morton
  0 siblings, 1 reply; 12+ messages in thread
From: Duncan Sands @ 2002-09-19  0:22 UTC (permalink / raw)
  To: linux-kernel

I noticed a performance degradation in recent kernels:
fsync takes around 50 times longer in kernels 2.5.28 to
2.5.34 when the system is under heavy load, as compared
to kernels <= 2.5.27.  I noticed this because it makes kmail
unusable.  2.5.34 is the most recent kernel I tested.

"Heavy load" is kernel compile (-j 4) at the same time as
another heavy compile.  The following fsyncs come from
strace -T -p <kmail pid>.  kmail does several fsyncs grouped
together, followed by other stuff, followed by more fsyncs.

Here are some typical fsync groups.  The time for each fsync
is the last number (in seconds).

2.5.27 (similar results for 2.5.26 and 2.4.19):

fsync(17)                               = 0 <0.078718>
fsync(18)                               = 0 <0.099900>
fsync(25)                               = 0 <0.004719>
fsync(11)                               = 0 <0.001747>
fsync(12)                               = 0 <0.001726>
fsync(13)                               = 0 <0.014935>
fsync(14)                               = 0 <0.011553>
fsync(15)                               = 0 <0.002506>
fsync(16)                               = 0 <0.002854>

2.5.28 (similar results for kernels up to 2.5.34):

fsync(17)                               = 0 <0.682749>
fsync(18)                               = 0 <2.142922>
fsync(22)                               = 0 <2.269918>
fsync(24)                               = 0 <1.114331>
fsync(11)                               = 0 <4.092790>
fsync(12)                               = 0 <2.309529>
fsync(13)                               = 0 <0.441093>
fsync(14)                               = 0 <1.730422>
fsync(15)                               = 0 <5.444556>
fsync(16)                               = 0 <1.844690>

The filesystem is ext3 but the same occurs with ext2.
This is a UP x86 (400MHz), no preempt.

Any ideas?  I have looked through the changes between
2.5.27 and 2.5.28 but don't see any obvious culprits...

All the best,

Duncan.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-09-20 12:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-19  0:22 fsync 50 times slower after 2.5.27 Duncan Sands
2002-09-19  0:35 ` Andrew Morton
2002-09-19  1:00   ` 2.4.20-pre7-ac2 compile and IrDA Alexander Hoogerhuis
2002-09-19  1:25     ` Alan Cox
2002-09-19  1:33       ` David S. Miller
2002-09-19 10:45         ` Alan Cox
2002-09-19 12:27           ` Alexander Hoogerhuis
2002-09-19  4:43       ` Willy Tarreau
2002-09-19  6:34       ` Alexander Hoogerhuis
     [not found]   ` <200209192032.25933.duncan.sands@math.u-psud.fr>
2002-09-19 21:22     ` fsync 50 times slower after 2.5.27 Andrew Morton
2002-09-19 21:44       ` [Ext2-devel] " Stephen C. Tweedie
2002-09-20 12:15       ` Duncan Sands

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.