Messages in this thread | | | Date | Wed, 18 Jan 2012 09:30:52 -0500 | From | Rik van Riel <> | Subject | Re: [RFC 1/3] /dev/low_mem_notify |
| |
On 01/18/2012 04:06 AM, leonid.moiseichuk@nokia.com wrote:
> Would be possible to use for threshold pointed value(s) e.g. according to enum zone_state_item, because kinds of memory to track could be different? > E.g. to tracking paging activity NR_ACTIVE_ANON and NR_ACTIVE_FILE could be interesting, not only free.
That seems like a horrible idea, because there is no guarantee that the kernel will continue to use NR_ACTIVE_ANON and NR_ACTIVE_FILE internally in the future.
What is exported to userspace must be somewhat independent of the specifics of how the kernel implements things internally.
-- All rights reversed
| |