Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-22 Thread Pekka Enberg
On Wed, 21 Nov 2012, Andrew Morton wrote: > The proposed API bugs me a bit. It seems simplistic. I need to have a > quality think about this. Maybe the result of that think will be to > suggest an interface which can be extended in a back-compatible fashion > later on, if/when the simplistic nat

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-21 Thread Andrew Morton
On Wed, 21 Nov 2012 15:01:50 + Mel Gorman wrote: > On Tue, Nov 20, 2012 at 10:12:28AM -0800, David Rientjes wrote: > > On Mon, 19 Nov 2012, Anton Vorontsov wrote: > > > > > We try to make userland freeing resources when the system becomes low on > > > memory. Once we're short on memory, some

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-21 Thread Mel Gorman
On Tue, Nov 20, 2012 at 10:12:28AM -0800, David Rientjes wrote: > On Mon, 19 Nov 2012, Anton Vorontsov wrote: > > > We try to make userland freeing resources when the system becomes low on > > memory. Once we're short on memory, sometimes it's better to discard > > (free) data, rather than let the

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-20 Thread David Rientjes
On Mon, 19 Nov 2012, Anton Vorontsov wrote: > We try to make userland freeing resources when the system becomes low on > memory. Once we're short on memory, sometimes it's better to discard > (free) data, rather than let the kernel to drain file caches or even start > swapping. > To add another

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-19 Thread Anton Vorontsov
On Mon, Nov 19, 2012 at 09:52:11PM -0800, Andrew Morton wrote: > On Wed, 7 Nov 2012 03:01:52 -0800 Anton Vorontsov > wrote: > >Upon these notifications, userland programs can cooperate with > >the kernel, achieving better system's memory management. > > Well I read through the

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-19 Thread Andrew Morton
On Wed, 7 Nov 2012 03:01:52 -0800 Anton Vorontsov wrote: >Upon these notifications, userland programs can cooperate with >the kernel, achieving better system's memory management. Well I read through the whole thread and afaict the above is the only attempt to describe why thi

Re: [RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-07 Thread Rik van Riel
On 11/07/2012 06:01 AM, Anton Vorontsov wrote: Configuration vmpressure_fd(2) accepts vmpressure_config structure to configure the notifications: struct vmpressure_config { __u32 size; __u32 threshold; }; size is a part of A

[RFC 3/3] man-pages: Add man page for vmpressure_fd(2)

2012-11-07 Thread Anton Vorontsov
VMPRESSURE_FD(2)Linux Programmer's Manual VMPRESSURE_FD(2) NAME vmpressure_fd - Linux virtual memory pressure notifications SYNOPSIS #define _GNU_SOURCE #include #include #include #include #include int vmpressure_fd(struc