Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Monday, July 5, 2010 - 7:16 am

On Fri, Jul 02, 2010 at 03:26:43PM +0900, KAMEZAWA Hiroyuki wrote:

Possibly, and the closer it is to kswapd behaviour the better I would
imagine but I must warn that I do not have much familiar with the
behaviour of large numbers of memcg entering reclaim.


Using systemtap, I have found in global reclaim at least that the ratio of
dirty to clean pages is not a problem. What does appear to be a problem is
that dirty pages are getting to the end of the inactive file list while
still dirty but I haven't formulated a theory as to why yet - maybe it's
because the dirty balancing is cleaning new pages first?  Right now, I
believe dirty_ratio is working as expected but old dirty pages is a problem.


Indeed, maybe something like a kswapd-memcg thread that is shared between
a configurable number of containers?


It depends heavily on how often dirty pages are being written back by direct
reclaim. It's not ideal but stalling briefly is better than crashing.
Ideally, the number of dirty pages encountered by direct reclaim would
be so small that it wouldn't matter so I'm looking into that.


With this patch, the flusher threads get kicked when direct reclaim encounters
pages it cannot clean.

-- 
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 14/14] fs,xfs: Allow kswapd to writeback pages, Christoph Hellwig, (Tue Jun 29, 5:37 am)
Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages, KAMEZAWA Hiroyuki, (Tue Jun 29, 5:14 pm)
Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages, KAMEZAWA Hiroyuki, (Thu Jul 1, 11:26 pm)
Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages, KAMEZAWA Hiroyuki, (Thu Jul 1, 11:31 pm)
Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages, Mel Gorman, (Mon Jul 5, 7:16 am)
Re: [PATCH 14/14] fs,xfs: Allow kswapd to writeback pages, KAMEZAWA Hiroyuki, (Mon Jul 5, 5:45 pm)