Thread (14 messages) 14 messages, 6 authors, 2011-10-04

Re: [patch] mm: disable user interface to manually rescue unevictable pages

From: KAMEZAWA Hiroyuki <hidden>
Date: 2011-09-28 04:52:31
Also in: lkml

On Tue, 27 Sep 2011 09:27:14 +0200
Johannes Weiner [off-list ref] wrote:
At one point, anonymous pages were supposed to go on the unevictable
list when no swap space was configured, and the idea was to manually
rescue those pages after adding swap and making them evictable again.
But nowadays, swap-backed pages on the anon LRU list are not scanned
without available swap space anyway, so there is no point in moving
them to a separate list anymore.

The manual rescue could also be used in case pages were stranded on
the unevictable list due to race conditions.  But the code has been
around for a while now and newly discovered bugs should be properly
reported and dealt with instead of relying on such a manual fixup.

In addition to the lack of a usecase, the sysfs interface to rescue
pages from a specific NUMA node has been broken since its
introduction, so it's unlikely that anybody ever relied on that.

This patch removes the functionality behind the sysctl and the
node-interface and emits a one-time warning when somebody tries to
access either of them.

Signed-off-by: Johannes Weiner <redacted>
Reported-by: Kautuk Consul <redacted>
Acked-by: KAMEZAWA Hiroyuki <redacted>

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