linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ying Han <yinghan@google.com>
To: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org, hannes@cmpxchg.org, mhocko@suse.cz,
	Mel Gorman <mel@csn.ul.ie>
Subject: Re: [RFC][PATCH -mm 0/3] mm,vmscan: reclaim from highest score cgroup
Date: Wed, 8 Aug 2012 18:02:45 -0700	[thread overview]
Message-ID: <CALWz4iy11ndR6f_2miL28QWaT2NVKLO1-3-FMAn69VOo+iKFng@mail.gmail.com> (raw)
In-Reply-To: <20120808174549.1b10d51a@cuia.bos.redhat.com>

On Wed, Aug 8, 2012 at 2:45 PM, Rik van Riel <riel@redhat.com> wrote:
> Instead of doing round robin reclaim over all the cgroups in a zone, we
> reclaim from the highest score cgroup first.
>
> Factors in the scoring are the use ratio of pages in the lruvec
> (recent_rotated / recent_scanned), the size of the lru, the recent amount
> of pressure applied to each lru, whether the cgroup is over its soft limit
> and whether the cgroup has lots of inactive file pages.
>
> This patch series is on top of a recent mmotm with Ying's memcg softreclaim
> patches [2/2] applied.  Unfortunately it turns out that that mmmotm tree
> with Ying's patches does not compile with CONFIG_MEMCG=y, so I am testing
> these patches over the wall untested, as inspiration for others (hi Ying).
>
> This still suffers from the same scalability issue the current code has,
> namely a round robin iteration over all the lruvecs in a zone. We may want
> to fix that in the future by sorting the memcgs/lruvecs in some sort of
> tree, allowing us to find the high priority ones more easily and doing the
> recalculation asynchronously and less often.

Thank you Rik for the work !

I haven't got chance to look through it but I will tomorrow :)

--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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2012-08-09  1:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08 21:45 Rik van Riel
2012-08-08 21:47 ` [RFC][PATCH -mm 1/3] mm,vmscan: track recent pressure on each LRU set Rik van Riel
2012-08-10  1:22   ` Ying Han
2012-08-10  1:23     ` Ying Han
2012-08-10 15:48     ` Rik van Riel
2012-08-08 21:48 ` [RFC][PATCH -mm 2/3] mm,vmscan: reclaim from highest score cgroups Rik van Riel
2012-08-14 19:19   ` Rafael Aquini
2012-08-08 21:49 ` [RFC][PATCH -mm 3/3] mm,vmscan: evict inactive file pages first Rik van Riel
2012-08-12 23:56   ` Rafael Aquini
2012-08-13  2:13     ` [RFC][PATCH -mm -v2 " Rik van Riel
2012-08-14 19:11       ` Rafael Aquini
2012-08-09  1:02 ` Ying Han [this message]
2012-08-09 22:23 ` [RFC][PATCH -mm 0/3] mm,vmscan: reclaim from highest score cgroup Ying Han

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=CALWz4iy11ndR6f_2miL28QWaT2NVKLO1-3-FMAn69VOo+iKFng@mail.gmail.com \
    --to=yinghan@google.com \
    --cc=hannes@cmpxchg.org \
    --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