Thread (6 messages) 6 messages, 3 authors, 2012-02-16

Re: [PATCH] mm: vmscan: handle isolated pages with lru lock released

From: KAMEZAWA Hiroyuki <hidden>
Date: 2012-01-16 00:29:31
Also in: lkml

On Sat, 14 Jan 2012 20:05:11 +0800
Hillf Danton [off-list ref] wrote:
On Fri, Jan 13, 2012 at 11:00 PM, Hillf Danton [off-list ref] wrote:
===cut here===
From: Hillf Danton <redacted>
Subject: [PATCH] mm: vmscan: handle isolated pages with lru lock released

When shrinking inactive lru list, isolated pages are queued on locally private
list, so the lock-hold time could be reduced if pages are counted without lock
protection. To achive that, firstly updating reclaim stat is delayed until the
putback stage, which is pointed out by Hugh, after reacquiring the lru lock.

Secondly operations related to vm and zone stats, are now proteced with
preemption disabled as they are per-cpu operation.

Thanks for comments and ideas received.


Signed-off-by: Hillf Danton <redacted>
Nice.
Reviewed-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