lkml.org 
[lkml]   [2010]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/7] memcg: sc.nr_to_reclaim should be initialized
    On Fri, 16 Jul 2010 19:13:31 +0900 (JST)
    KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:

    > Currently, mem_cgroup_shrink_node_zone() initialize sc.nr_to_reclaim as 0.
    > It mean shrink_zone() only scan 32 pages and immediately return even if
    > it doesn't reclaim any pages.
    >
    > This patch fixes it.
    >
    > Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

    Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

    > ---
    > mm/vmscan.c | 1 +
    > 1 files changed, 1 insertions(+), 0 deletions(-)
    >
    > diff --git a/mm/vmscan.c b/mm/vmscan.c
    > index 1691ad0..bd1d035 100644
    > --- a/mm/vmscan.c
    > +++ b/mm/vmscan.c
    > @@ -1932,6 +1932,7 @@ unsigned long mem_cgroup_shrink_node_zone(struct mem_cgroup *mem,
    > struct zone *zone, int nid)
    > {
    > struct scan_control sc = {
    > + .nr_to_reclaim = SWAP_CLUSTER_MAX,
    > .may_writepage = !laptop_mode,
    > .may_unmap = 1,
    > .may_swap = !noswap,
    > --
    > 1.6.5.2
    >
    >
    >
    >



    \
     
     \ /
      Last update: 2010-07-16 12:23    [W:0.024 / U:29.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site