Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261809AbUKUVNa (ORCPT ); Sun, 21 Nov 2004 16:13:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261808AbUKUVNa (ORCPT ); Sun, 21 Nov 2004 16:13:30 -0500 Received: from fw.osdl.org ([65.172.181.6]:36770 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261810AbUKUVNF (ORCPT ); Sun, 21 Nov 2004 16:13:05 -0500 Date: Sun, 21 Nov 2004 13:12:50 -0800 From: Andrew Morton To: Nikita Danilov Cc: Linux-Kernel@vger.kernel.org, AKPM@osdl.org, linux-mm@kvack.org Subject: Re: [PATCH]: 1/4 batch mark_page_accessed() Message-Id: <20041121131250.26d2724d.akpm@osdl.org> In-Reply-To: <16800.47044.75874.56255@gargle.gargle.HOWL> References: <16800.47044.75874.56255@gargle.gargle.HOWL> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 711 Lines: 17 Nikita Danilov wrote: > > Batch mark_page_accessed() (a la lru_cache_add() and lru_cache_add_active()): > page to be marked accessed is placed into per-cpu pagevec > (page_accessed_pvec). When pagevec is filled up, all pages are processed in a > batch. > > This is supposed to decrease contention on zone->lru_lock. Looks sane, althought it does add more atomic ops (the extra get_page/put_page). Some benchmarks would be nice to have. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/