lkml.org 
[lkml]   [2012]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 2/3] vmscan hook
On Wed, 18 Jan 2012 08:08:01 +0900
Minchan Kim <minchan@kernel.org> wrote:

> >
> >
> > > > 2. can't we measure page-in/page-out distance by recording something ?
> > >
> > > I can't understand your point. What's relation does it with swapout prevent?
> > >
> >
> > If distance between pageout -> pagein is short, it means thrashing.
> > For example, recoding the timestamp when the page(mapping, index) was
> > paged-out, and check it at page-in.
>
> Our goal is prevent swapout. When we found thrashing, it's too late.
>

If you want to prevent swap-out, don't swapon any. That's all.
Then, you can check the number of FILE_CACHE and have threshold.

Thanks,
-Kame



\
 
 \ /
  Last update: 2012-01-18 01:23    [W:0.132 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site