Re: [RFC] vmevent: Implement pressure attribute

2012-10-09 Thread Mel Gorman
On Mon, Oct 08, 2012 at 06:42:16PM -0700, John Stultz wrote: > On 10/08/2012 02:46 AM, Mel Gorman wrote: > >On Sun, Oct 07, 2012 at 01:14:17AM -0700, Anton Vorontsov wrote: > >>And here we just try to let userland to assist, userland can tell "oh, > >>don't bother with swapping or draining caches,

Re: [RFC] vmevent: Implement pressure attribute

2012-10-08 Thread John Stultz
On 10/08/2012 02:46 AM, Mel Gorman wrote: On Sun, Oct 07, 2012 at 01:14:17AM -0700, Anton Vorontsov wrote: And here we just try to let userland to assist, userland can tell "oh, don't bother with swapping or draining caches, I can just free some memory". Quite interesting, this also very much r

Re: [RFC] vmevent: Implement pressure attribute

2012-10-08 Thread Mel Gorman
On Sun, Oct 07, 2012 at 01:14:17AM -0700, Anton Vorontsov wrote: > > On Fri, Oct 05, 2012 at 10:29:12AM +0100, Mel Gorman wrote: > [...] > > > The implemented approach can notify userland about two things: > > > > > > - Constantly rising number of scanned pages shows that Linux is busy w/ > > >

Re: [RFC] vmevent: Implement pressure attribute

2012-10-07 Thread Anton Vorontsov
Hello Mel, Thanks for your comments! On Fri, Oct 05, 2012 at 10:29:12AM +0100, Mel Gorman wrote: [...] > > The implemented approach can notify userland about two things: > > > > - Constantly rising number of scanned pages shows that Linux is busy w/ > > rehashing pages in general. The more we

Re: [RFC] vmevent: Implement pressure attribute

2012-10-05 Thread Mel Gorman
On Thu, Oct 04, 2012 at 04:05:24AM -0700, Anton Vorontsov wrote: > Hi all, > > This is just an RFC so far. It's an attempt to implement Mel Gorman's idea > of detecting and measuring memory pressure by calculating the ratio of > scanned vs. reclaimed pages in a given time frame. > Thanks for thi

[RFC] vmevent: Implement pressure attribute

2012-10-04 Thread Anton Vorontsov
Hi all, This is just an RFC so far. It's an attempt to implement Mel Gorman's idea of detecting and measuring memory pressure by calculating the ratio of scanned vs. reclaimed pages in a given time frame. The implemented approach can notify userland about two things: - Constantly rising number o