From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Andrew Bresticker <abrestic@google.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"nishimura@mxp.nes.nec.co.jp" <nishimura@mxp.nes.nec.co.jp>,
"bsingharora@gmail.com" <bsingharora@gmail.com>,
Michal Hocko <mhocko@suse.cz>, Ying Han <yinghan@google.com>
Subject: Re: [PATCH v2] memcg: add vmscan_stat
Date: Wed, 20 Jul 2011 15:03:16 +0900 [thread overview]
Message-ID: <20110720150316.181f1977.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <CAL1qeaGC51POaL7PW9LK7Ke6CZt-hE8qJ3QSHu+2jaermCjuKQ@mail.gmail.com>
On Mon, 18 Jul 2011 14:00:32 -0700
Andrew Bresticker <abrestic@google.com> wrote:
> On Mon, Jul 11, 2011 at 3:30 AM, KAMEZAWA Hiroyuki <
> kamezawa.hiroyu@jp.fujitsu.com> wrote:
spin_unlock_irq(&zone->lru_lock);
> > @@ -1350,6 +1353,10 @@ static noinline_for_stack void update_is
> >
> > reclaim_stat->recent_scanned[0] += *nr_anon;
> > reclaim_stat->recent_scanned[1] += *nr_file;
> > + if (!scanning_global_lru(sc)) {
> > + sc->memcg_record->nr_scanned[0] += *nr_anon;
> > + sc->memcg_record->nr_scanned[1] += *nr_file;
> > + }
> > }
> >
> > /*
> > @@ -1457,6 +1464,9 @@ shrink_inactive_list(unsigned long nr_to
> >
> > nr_reclaimed = shrink_page_list(&page_list, zone, sc);
> >
> > + if (!scanning_global_lru(sc))
> > + sc->memcg_record->nr_freed[file] += nr_reclaimed;
> > +
> >
>
> Can't we stall for writeback? If so, we may call shrink_page_list() again
> below. The accounting should probably go after that instead.
>
you're right. I'll fix this.
Thank you.
-Kame
--
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>
prev parent reply other threads:[~2011-07-20 6:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-11 10:30 KAMEZAWA Hiroyuki
2011-07-12 23:02 ` Andrew Bresticker
2011-07-14 0:02 ` KAMEZAWA Hiroyuki
2011-07-15 18:34 ` Andrew Bresticker
2011-07-15 20:28 ` Andrew Bresticker
2011-07-20 6:00 ` KAMEZAWA Hiroyuki
2011-07-20 5:58 ` KAMEZAWA Hiroyuki
2011-07-18 21:00 ` Andrew Bresticker
2011-07-20 6:03 ` KAMEZAWA Hiroyuki [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=20110720150316.181f1977.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=abrestic@google.com \
--cc=akpm@linux-foundation.org \
--cc=bsingharora@gmail.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=nishimura@mxp.nes.nec.co.jp \
--cc=yinghan@google.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