lkml.org 
[lkml]   [2012]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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>



\
 
 \ /
  Last update: 2012-01-16 01:31    [W:0.074 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site