Re: [PATCH] tools/vm/page-types.c: page-cache sniffing feature

2014-05-20 Thread Konstantin Khlebnikov
On Wed, May 21, 2014 at 6:23 AM, Naoya Horiguchi wrote: > Hi Konstantin, > > This patch is already in upstream, but I have another idea of implementing > the similar feature. So let me review this now, and I'll post patches to > complement this patch. > > On Wed, Feb 26, 2014 at 11:57:23AM +0400,

Re: [PATCH] tools/vm/page-types.c: page-cache sniffing feature

2014-05-20 Thread Konstantin Khlebnikov
On Wed, May 21, 2014 at 6:23 AM, Naoya Horiguchi n-horigu...@ah.jp.nec.com wrote: Hi Konstantin, This patch is already in upstream, but I have another idea of implementing the similar feature. So let me review this now, and I'll post patches to complement this patch. On Wed, Feb 26, 2014 at

[PATCH] tools/vm/page-types.c: page-cache sniffing feature

2014-02-25 Thread Konstantin Khlebnikov
After this patch 'page-types' can walk on filesystem mappings and analize populated page cache pages mostly without disturbing its state. It maps chunk of file, marks VMA as MADV_RANDOM to turn off readahead, pokes VMA via mincore() to determine cached pages, triggers page-fault only for them,

[PATCH] tools/vm/page-types.c: page-cache sniffing feature

2014-02-25 Thread Konstantin Khlebnikov
After this patch 'page-types' can walk on filesystem mappings and analize populated page cache pages mostly without disturbing its state. It maps chunk of file, marks VMA as MADV_RANDOM to turn off readahead, pokes VMA via mincore() to determine cached pages, triggers page-fault only for them,