From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756861AbZEDOVQ (ORCPT ); Mon, 4 May 2009 10:21:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755541AbZEDOU7 (ORCPT ); Mon, 4 May 2009 10:20:59 -0400 Received: from smtp.ultrahosting.com ([74.213.174.254]:44755 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753361AbZEDOU6 (ORCPT ); Mon, 4 May 2009 10:20:58 -0400 Date: Mon, 4 May 2009 10:08:50 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Mathieu Desnoyers cc: Nick Piggin , Peter Zijlstra , Linux Kernel Mailing List , Yuriy Lalym , ltt-dev@lists.casi.polymtl.ca, Tejun Heo , Ingo Molnar , Linus Torvalds , Andrew Morton Subject: Re: [ltt-dev] [PATCH] Fix dirty page accounting in redirty_page_for_writepage() In-Reply-To: <20090502210147.GA23766@Krystal> Message-ID: References: <20090430065055.GA16277@elte.hu> <20090430141211.GB5922@Krystal> <20090430194158.GB12926@Krystal> <20090430211750.GA19933@Krystal> <20090501192142.GA18339@Krystal> <20090502210147.GA23766@Krystal> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2 May 2009, Mathieu Desnoyers wrote: > Modifying mmzone.h "struct per_cpu_pageset" so it uses percpu dynamic > allocation seems to be the far-reaching part of the modification (of a > subsystem I'm not completely familiar with, including NUMA special > cases). Is there any patch already doing this kind of modification > floating around ? Yes. Its was part of the original cpu alloc patchset. One reason to do cpu alloc was to clean up the current problem with a having to allocate for NR_CPUS in the page allocator. That in turn would result in the ability to use the fast percpu ops to optimize the allocator paths. Hopefully we can end up with page allocator alloc/free operations that do not need to disable interrupts. > I'd be glad to give a try at some percpu_add_return counters experiments > if percpu struct per_cpu_pageset allocation happens to be already > available. Look at the cpu alloc patchset following the link that I posted.