Re: [RFC][PATCH 0/4] Memory controller soft limit patches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Wednesday, January 7, 2009 - 5:30 pm

On Thu, 08 Jan 2009 00:11:10 +0530
Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

Core implemantation seems simple and the feature sounds good.
But, before reviewing into details, 3 points.

  1. please fix current bugs on hierarchy management, before new feature.
     AFAIK, OOM-Kill under hierarchy is broken. (I have patches but waits for
     merge window close.)
     I wonder there will be some others. Lockdep error which Nishimura reported
     are all fixed now ?

  2. You inserts reclaim-by-soft-limit into alloc_pages(). But, to do this,
     you have to pass zonelist to try_to_free_mem_cgroup_pages() and have to modify
     try_to_free_mem_cgroup_pages().
     2-a) If not, when the memory request is for gfp_mask==GFP_DMA or allocation
          is under a cpuset, memory reclaim will not work correctlly.
     2-b) try_to_free_mem_cgroup_pages() cannot do good work for order > 1 allocation.
  
     Please try fake-numa (or real NUMA machine) and cpuset.

  3. If you want to insert hooks to "generic" page allocator, it's better to add CC to
     Rik van Riel, Kosaki Motohiro, at leaset.

     To be honest, I myself don't like to add a hook to alloc_pages() directly.
     Can we implment call soft-limit like kswapd (or on kswapd()) ?
     i.e. in moderate way ?
   
A happy new year,

-Kame




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

Messages in current thread:
[RFC][PATCH 0/4] Memory controller soft limit patches, Balbir Singh, (Wed Jan 7, 11:41 am)
[RFC][PATCH 2/4] Memory controller soft limit interface, Balbir Singh, (Wed Jan 7, 11:41 am)
Re: [RFC][PATCH 0/4] Memory controller soft limit patches, KAMEZAWA Hiroyuki, (Wed Jan 7, 5:30 pm)
Re: [RFC][PATCH 0/4] Memory controller soft limit patches, KAMEZAWA Hiroyuki, (Wed Jan 7, 5:37 pm)
Re: [RFC][PATCH 0/4] Memory controller soft limit patches, KAMEZAWA Hiroyuki, (Wed Jan 7, 9:21 pm)
Re: [RFC][PATCH 0/4] Memory controller soft limit patches, Daisuke Nishimura, (Wed Jan 7, 9:41 pm)