Re: [PATCH] writeback: remove unnecessary wait in throttle_vm_writeout()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, September 27, 2007 - 1:47 pm

On Thu, 27 Sep 2007 09:50:16 +0800
Fengguang Wu <wfg@mail.ustc.edu.cn> wrote:


This is a pretty major bugfix.

GFP_NOIO and GFP_NOFS callers should have been spending really large
amounts of time stuck in that sleep.

I wonder why nobody noticed this happening.  Either a) it turns out that
kswapd is doing a good job and such callers don't do direct reclaim much or
b) nobody is doing any in-depth kernel instrumentation.

Now, how _would_ one notice this problem?  We don't have very good tools,
really.  Booting with "profile=sleep" and looking at the profile data would
be one way.  Repeatedly doing sysrq-T is another.  Perhaps the new
lockstat-via-lockdep code would allow this to be observed in some fashion,
dunno.

Anyway, this patch has the potential to significantly alter the dynamics of
the VM behaviour under particular workloads.  It might turn up other
stuff...

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

Messages in current thread:
Re: [PATCH] writeback: remove unnecessary wait in throttle ..., Andrew Morton, (Thu Sep 27, 1:47 pm)
Re: [PATCH] writeback: remove unnecessary wait in throttle ..., Mathieu Desnoyers, (Fri Sep 28, 9:23 am)
Re: [PATCH] writeback: remove unnecessary wait in throttle ..., Mathieu Desnoyers, (Fri Sep 28, 10:57 am)
Re: [PATCH] writeback: remove unnecessary wait in throttle ..., Frank Ch. Eigler, (Fri Sep 28, 12:50 pm)