linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ying Han <yinghan@google.com>
To: Hillf Danton <dhillf@gmail.com>
Cc: Michal Hocko <mhocko@suse.cz>,
	Johannes Weiner <hannes@cmpxchg.org>, Mel Gorman <mel@csn.ul.ie>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Rik van Riel <riel@redhat.com>, Hugh Dickins <hughd@google.com>,
	Dan Magenheimer <dan.magenheimer@oracle.com>,
	linux-mm@kvack.org
Subject: Re: [PATCH V2 1/5] memcg: revert current soft limit reclaim implementation
Date: Mon, 16 Apr 2012 10:33:23 -0700	[thread overview]
Message-ID: <CALWz4ix+AbeGwWmzbb1Q+f2G-h0=wXj+m7fJuXDy+ou-GXMGmw@mail.gmail.com> (raw)
In-Reply-To: <CAJd=RBDDW7DBtpiOERXXPzh40SHkhwQ5K9OnM6HiQXRR2Cm3hA@mail.gmail.com>

On Sat, Apr 14, 2012 at 5:41 AM, Hillf Danton <dhillf@gmail.com> wrote:
> On Thu, Apr 12, 2012 at 5:59 AM, Ying Han <yinghan@google.com> wrote:
>> This patch reverts all the existing softlimit reclaim implementations.
>>
>> Signed-off-by: Ying Han <yinghan@google.com>
>> ---
>>  include/linux/memcontrol.h |   11 --
>>  include/linux/swap.h       |    4 -
>>  mm/memcontrol.c            |  387 --------------------------------------------
>>  mm/vmscan.c                |   67 --------
>>  4 files changed, 0 insertions(+), 469 deletions(-)
>>
> [...]
>
>> -unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order,
>> -                                           gfp_t gfp_mask,
>> -                                           unsigned long *total_scanned)
>> -{
>> -       unsigned long nr_reclaimed = 0;
>> -       struct mem_cgroup_per_zone *mz, *next_mz = NULL;
>> -       unsigned long reclaimed;
>> -       int loop = 0;
>> -       struct mem_cgroup_tree_per_zone *mctz;
>> -       unsigned long long excess;
>> -       unsigned long nr_scanned;
>> -
>> -       if (order > 0)
>> -               return 0;
>> -
> Not related to this patch, what is the functionality to check order?

The new implementation doesn't need to check order like before.

The existing soft_limit reclaim skips high order allocation since it's
been best effort before the actual reclaim on global lru. Now the
global lru is gone and all reclaims happens on per-memcg level. The
high order page allocation is being taken care of automatically like
other part of reclaim logic.

--Ying

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2012-04-16 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 21:59 Ying Han
2012-04-12  0:04 ` Johannes Weiner
2012-04-16 17:28   ` Ying Han
2012-04-14 12:41 ` Hillf Danton
2012-04-16 17:33   ` Ying Han [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALWz4ix+AbeGwWmzbb1Q+f2G-h0=wXj+m7fJuXDy+ou-GXMGmw@mail.gmail.com' \
    --to=yinghan@google.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=dhillf@gmail.com \
    --cc=hannes@cmpxchg.org \
    --cc=hughd@google.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    --cc=mhocko@suse.cz \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox