Messages in this thread | | | Date | Mon, 16 Jan 2012 09:27:45 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [PATCH] mm: vmscan: handle isolated pages with lru lock released |
| |
On Sat, 14 Jan 2012 20:05:11 +0800 Hillf Danton <dhillf@gmail.com> wrote:
> On Fri, Jan 13, 2012 at 11:00 PM, Hillf Danton <dhillf@gmail.com> wrote:
> ===cut here=== > From: Hillf Danton <dhillf@gmail.com> > 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 <dhillf@gmail.com>
Nice. Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |