Re: [PATCH 2/3] writeback: Record if the congestion was unnecessary

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Thursday, August 26, 2010 - 10:41 am

On Fri, Aug 27, 2010 at 02:35:34AM +0900, Minchan Kim wrote:

Not whole backing devs, all backing devs. This is intentional.

If congestion_wait() is called with 0 BDIs congested, we sleep the full timeout
because a wakeup event will not occur - this is a bad scenario. To know if
0 BDIs were congested, one could either walk all the BDIs checking their
status or maintain a counter like nr_bdi_congested which is what I decided on.

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/3] writeback: Record if the congestion was un ..., Mel Gorman, (Thu Aug 26, 10:41 am)