Re: [RFC 1/3] /dev/low_mem_notify

From: Pekka Enberg
Date: Thu Jan 19 2012 - 02:25:19 EST


On Thu, 19 Jan 2012, Ronen Hod wrote:
I believe that it will be best if the kernel publishes an ideal number_of_free_pages (in /proc/meminfo or whatever). Such number is easy to work with since this is what applications do, they free pages. Applications will be able to refer to this number from their garbage collector, or before allocating memory also if they did not get a notification, and it is also useful if several applications free memory at the same time.

Isn't

/proc/sys/vm/min_free_kbytes

pretty much just that?

Pekka
--
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/