All of lore.kernel.org
 help / color / mirror / Atom feed
* multi-second freezes with current GIT?
@ 2007-05-09  1:44 David Miller
  2007-05-09  3:29 ` Mike Galbraith
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2007-05-09  1:44 UTC (permalink / raw)
  To: linux-kernel


I've been noticing this off and on for the past week or so.

The system seems to jam up for several seconds, anything that would
need to read from disk just sits there during this time.  I think it's
correlated with generating a lot of dirty write data.

My mouse moves around in X etc. so it really is only processes that
need to read from disk that get stuck.

Perhaps it's a side effect of those dirty ratio changes Linus made to
start off the 2.6.22 merge cycle?

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

* Re: multi-second freezes with current GIT?
  2007-05-09  1:44 multi-second freezes with current GIT? David Miller
@ 2007-05-09  3:29 ` Mike Galbraith
  2007-05-09  6:23   ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Galbraith @ 2007-05-09  3:29 UTC (permalink / raw)
  To: David Miller; +Cc: linux-kernel

On Tue, 2007-05-08 at 18:44 -0700, David Miller wrote:
> I've been noticing this off and on for the past week or so.
> 
> The system seems to jam up for several seconds, anything that would
> need to read from disk just sits there during this time.  I think it's
> correlated with generating a lot of dirty write data.
> 
> My mouse moves around in X etc. so it really is only processes that
> need to read from disk that get stuck.
> 
> Perhaps it's a side effect of those dirty ratio changes Linus made to
> start off the 2.6.22 merge cycle?

Uhoh, that seems highly likely.

I think those changes may have been triggered by my repeatable and truly
horrible system stalls when writing to an ext3 data=ordered nearly full
filesystem.  Anything that does fdatasync() and/or fsync() can cause
very bad experiences indeed.  KDE's little menu/program launcher
doohickey does fdatasync() for some odd reason, which has utterly killed
my entire GUI for up to and including 20 minutes at a whack.

Switching to data=writeback cured those horrors.  Lowering the dirty
ratio reduced the agony of data=ordered tremendously, but didn't make it
even remotely acceptable.

	-Mike


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

* Re: multi-second freezes with current GIT?
  2007-05-09  3:29 ` Mike Galbraith
@ 2007-05-09  6:23   ` David Miller
  2007-05-09  8:43     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2007-05-09  6:23 UTC (permalink / raw)
  To: efault; +Cc: linux-kernel

From: Mike Galbraith <efault@gmx.de>
Date: Wed, 09 May 2007 05:29:20 +0200

> On Tue, 2007-05-08 at 18:44 -0700, David Miller wrote:
> > I've been noticing this off and on for the past week or so.
> > 
> > The system seems to jam up for several seconds, anything that would
> > need to read from disk just sits there during this time.  I think it's
> > correlated with generating a lot of dirty write data.
> > 
> > My mouse moves around in X etc. so it really is only processes that
> > need to read from disk that get stuck.
> > 
> > Perhaps it's a side effect of those dirty ratio changes Linus made to
> > start off the 2.6.22 merge cycle?
> 
> Uhoh, that seems highly likely.
> 
> I think those changes may have been triggered by my repeatable and truly
> horrible system stalls when writing to an ext3 data=ordered nearly full
> filesystem.  Anything that does fdatasync() and/or fsync() can cause
> very bad experiences indeed.  KDE's little menu/program launcher
> doohickey does fdatasync() for some odd reason, which has utterly killed
> my entire GUI for up to and including 20 minutes at a whack.
> 
> Switching to data=writeback cured those horrors.  Lowering the dirty
> ratio reduced the agony of data=ordered tremendously, but didn't make it
> even remotely acceptable.

I'm using data=ordered on my partitions too.

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

* Re: multi-second freezes with current GIT?
  2007-05-09  6:23   ` David Miller
@ 2007-05-09  8:43     ` Andrew Morton
  2007-05-09  8:45       ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-05-09  8:43 UTC (permalink / raw)
  To: David Miller; +Cc: efault, linux-kernel

On Tue, 08 May 2007 23:23:26 -0700 (PDT) David Miller <davem@davemloft.net> wrote:

> From: Mike Galbraith <efault@gmx.de>
> Date: Wed, 09 May 2007 05:29:20 +0200
> 
> > On Tue, 2007-05-08 at 18:44 -0700, David Miller wrote:
> > > I've been noticing this off and on for the past week or so.
> > > 
> > > The system seems to jam up for several seconds, anything that would
> > > need to read from disk just sits there during this time.  I think it's
> > > correlated with generating a lot of dirty write data.
> > > 
> > > My mouse moves around in X etc. so it really is only processes that
> > > need to read from disk that get stuck.
> > > 
> > > Perhaps it's a side effect of those dirty ratio changes Linus made to
> > > start off the 2.6.22 merge cycle?
> > 
> > Uhoh, that seems highly likely.
> > 
> > I think those changes may have been triggered by my repeatable and truly
> > horrible system stalls when writing to an ext3 data=ordered nearly full
> > filesystem.  Anything that does fdatasync() and/or fsync() can cause
> > very bad experiences indeed.  KDE's little menu/program launcher
> > doohickey does fdatasync() for some odd reason, which has utterly killed
> > my entire GUI for up to and including 20 minutes at a whack.
> > 
> > Switching to data=writeback cured those horrors.  Lowering the dirty
> > ratio reduced the agony of data=ordered tremendously, but didn't make it
> > even remotely acceptable.
> 
> I'm using data=ordered on my partitions too.


does

echo 40 > /proc/sys/vm/dirty_ratio
echo 10 > /proc/sys/vm/dirty_background_ratio

fix it?

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

* Re: multi-second freezes with current GIT?
  2007-05-09  8:43     ` Andrew Morton
@ 2007-05-09  8:45       ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2007-05-09  8:45 UTC (permalink / raw)
  To: akpm; +Cc: efault, linux-kernel

From: Andrew Morton <akpm@linux-foundation.org>
Date: Wed, 9 May 2007 01:43:28 -0700

> does
> 
> echo 40 > /proc/sys/vm/dirty_ratio
> echo 10 > /proc/sys/vm/dirty_background_ratio
> 
> fix it?

Yes, I was going to play with that, I'll report if anything
decisive happens.

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

end of thread, other threads:[~2007-05-09  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09  1:44 multi-second freezes with current GIT? David Miller
2007-05-09  3:29 ` Mike Galbraith
2007-05-09  6:23   ` David Miller
2007-05-09  8:43     ` Andrew Morton
2007-05-09  8:45       ` David Miller

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.