From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"nishimura@mxp.nes.nec.co.jp" <nishimura@mxp.nes.nec.co.jp>,
"balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"hugh@veritas.com" <hugh@veritas.com>
Subject: Re: [PATCH] memcg: fix stale swap cache leak v5
Date: Thu, 30 Apr 2009 18:04:26 +0900 [thread overview]
Message-ID: <20090430180426.25ae2fa6.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20090430163539.7a882cef.kamezawa.hiroyu@jp.fujitsu.com>
On Thu, 30 Apr 2009 16:35:39 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> On Thu, 30 Apr 2009 16:16:27 +0900
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>
> > This is v5 but all codes are rewritten.
> >
> > After this patch, when memcg is used,
> > 1. page's swapcount is checked after I/O (without locks). If the page is
> > stale swap cache, freeing routine will be scheduled.
> > 2. vmscan.c calls try_to_free_swap() when __remove_mapping() fails.
> >
> > Works well for me. no extra resources and no races.
> >
> > Because my office will be closed until May/7, I'll not be able to make a
> > response. Posting this for showing what I think of now.
> >
> I found a hole immediately after posted this...sorry. plz ignore this patch/
> see you again in the next month.
>
I'm now wondering to disable "swapin readahed" completely when memcg is used...
Then, half of the problems will go away immediately.
And it's not so bad to try to free swapcache if swap writeback ends. Then, another
half will go away...
Regards,
-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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-04-30 9:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 7:16 KAMEZAWA Hiroyuki
2009-04-30 7:35 ` KAMEZAWA Hiroyuki
2009-04-30 9:04 ` KAMEZAWA Hiroyuki [this message]
2009-04-30 9:42 ` Balbir Singh
2009-04-30 9:47 ` KAMEZAWA Hiroyuki
2009-04-30 18:12 ` Balbir Singh
2009-05-01 4:33 ` Daisuke Nishimura
2009-05-01 18:32 ` Balbir Singh
2009-05-02 2:56 ` Daisuke Nishimura
2009-05-02 3:09 ` Daisuke Nishimura
2009-05-04 16:38 ` Balbir Singh
2009-05-07 6:59 ` Daisuke Nishimura
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=20090430180426.25ae2fa6.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nishimura@mxp.nes.nec.co.jp \
/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