Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263578AbUCYTJY (ORCPT ); Thu, 25 Mar 2004 14:09:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263556AbUCYTJY (ORCPT ); Thu, 25 Mar 2004 14:09:24 -0500 Received: from mx1.elte.hu ([157.181.1.137]:55199 "EHLO mx1.elte.hu") by vger.kernel.org with ESMTP id S263578AbUCYTJJ (ORCPT ); Thu, 25 Mar 2004 14:09:09 -0500 Date: Thu, 25 Mar 2004 20:09:45 +0100 From: Ingo Molnar To: Andi Kleen Cc: "Nakajima, Jun" , Rick Lindsley , piggin@cyberone.com.au, linux-kernel@vger.kernel.org, akpm@osdl.org, kernel@kolivas.org, rusty@rustcorp.com.au, anton@samba.org, lse-tech@lists.sourceforge.net, mbligh@aracnet.com Subject: Re: [Lse-tech] [patch] sched-domain cleanups, sched-2.6.5-rc2-mm2-A3 Message-ID: <20040325190944.GB12383@elte.hu> References: <7F740D512C7C1046AB53446D372001730111990F@scsmsx402.sc.intel.com> <20040325154011.GB30175@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040325154011.GB30175@wotan.suse.de> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.26.8-itk2 (ELTE 1.1) SpamAssassin 2.63 ClamAV 0.65 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 28 * Andi Kleen wrote: > It doesn't do load balance in wake_up_forked_process() and is > relatively non aggressive in balancing later. This leads to the > multithreaded OpenMP STREAM running its childs first on the same node > as the original process and allocating memory there. [...] i believe the fix we want is to pre-balance the context at fork() time. I've implemented this (which is basically just a reuse of sched_balance_exec() in fork.c, and the related namespace cleanups), could you give it a go: http://redhat.com/~mingo/scheduler-patches/sched-2.6.5-rc2-mm2-A5 another solution would be to add SD_BALANCE_FORK. also, the best place to do fork() blancing is not at wake_up_forked_process() time, but prior doing the MM copy. This patch does it there. At wakeup time we've already copied all the pagetables and created tons of dirty cachelines. Ingo - 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/