Re: [RFC 1/3] /dev/low_mem_notify
From: Rik van Riel
Date: Wed Jan 18 2012 - 09:31:37 EST
On 01/18/2012 04:06 AM, leonid.moiseichuk@xxxxxxxxx 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/