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

From: KAMEZAWA Hiroyuki
Date: Sun Jan 15 2012 - 19:29:29 EST


On Sat, 14 Jan 2012 20:05:11 +0800
Hillf Danton <dhillf@xxxxxxxxx> wrote:

> On Fri, Jan 13, 2012 at 11:00 PM, Hillf Danton <dhillf@xxxxxxxxx> wrote:

> ===cut here===
> From: Hillf Danton <dhillf@xxxxxxxxx>
> 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@xxxxxxxxx>

Nice.
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/