From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Mar 2003 02:36:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Mar 2003 02:36:11 -0500 Received: from holomorphy.com ([66.224.33.161]:32137 "EHLO holomorphy") by vger.kernel.org with ESMTP id ; Sat, 1 Mar 2003 02:36:10 -0500 Date: Fri, 28 Feb 2003 23:46:16 -0800 From: William Lee Irwin III To: linux-kernel@vger.kernel.org Subject: Re: percpu-2.5.63-bkcurr Message-ID: <20030301074616.GC1195@holomorphy.com> Mail-Followup-To: William Lee Irwin III , linux-kernel@vger.kernel.org References: <20030301055922.GB1399@holomorphy.com> <20030301073655.GA1195@holomorphy.com> <20030301074035.GB1195@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030301074035.GB1195@holomorphy.com> User-Agent: Mutt/1.3.25i Organization: The Domain of Holomorphy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2003 at 11:36:55PM -0800, William Lee Irwin III wrote: > Tentative followup #1 (thanks Zwane!) >> Use per-cpu rq's in the sched.c to avoid remote cache misses there. >> It actually means something now. On Fri, Feb 28, 2003 at 11:40:35PM -0800, William Lee Irwin III wrote: > Tentative followup #2 -- totally untested, at some point I have to > figure out how to avoid breaking the compile for non-NUMA-Q with this. woops diff -u sched-2.5/arch/i386/mm/discontig.c sched-2.5/arch/i386/mm/discontig.c --- sched-2.5/arch/i386/mm/discontig.c Fri Feb 28 23:12:45 2003 +++ sched-2.5/arch/i386/mm/discontig.c Fri Feb 28 23:42:15 2003 @@ -230,6 +230,7 @@ for (nid = 1; nid < numnodes; nid++) { /* calculate the size of the mem_map needed in pages */ size = MEM_MAP_SIZE(nid) + PFN_UP(sizeof(pg_data_t)) + + PER_NODE_PAGES + PER_CPU_PAGES*hweight32(early_node_to_cpumask(nid)); /* round up to nearest pmd boundary */ size = (size + PTRS_PER_PTE - 1) & ~(PTRS_PER_PTE - 1);