lkml.org 
[lkml]   [2009]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] memcg: fix stale swap cache leak v5
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



\
 
 \ /
  Last update: 2009-04-30 11:09    [W:0.071 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site