Thread (62 messages) 62 messages, 11 authors, 2012-01-26

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

From: Marcelo Tosatti <hidden>
Date: 2012-01-26 16:20:26
Also in: lkml

quoted
it should free for each notification received, that is, its part?

Its easier if there is a goal, a hint of how many pages the process
should release.
I have to agree.
Still, the amount of memory that an app should free per memory-pressure-level can be best calculated inside the application (based on comfortable_free_pages relative to process RSS, as you suggested).
It is easier if the kernel calculates the target (the application is
free to ignore the hint, of course), because it depends on information 
not readily available in userspace.
 Fairness is also an issue.
And, if in the meantime the memory pressure ended, would you recommend that the application will continue with its work?
There appears to be interest in an event to notify that higher levels
of memory are available (see Leonid's email).

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help