Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 21 Jan 2002 04:29:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 21 Jan 2002 04:29:07 -0500 Received: from mx2.elte.hu ([157.181.151.9]:53741 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Mon, 21 Jan 2002 04:28:54 -0500 Date: Mon, 21 Jan 2002 12:26:10 +0100 (CET) From: Ingo Molnar Reply-To: To: Erich Focht Cc: linux-kernel Subject: Re: O(1) scheduler: load_balance issues In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 19 Jan 2002, Erich Focht wrote: > In the load_balance() function the initial value for max_load should > better be set to 1 instead of 0 in order to avoid finding 'busiest' > runqueues with only one task. This avoids taking the spin-locks > unnecessarily for the case idle=1. agreed. > Another issue: I don't understand how prev_max_load works, I think > that the comments in load_balance are not true any more and the > comparison to prev_max_load can be dropped. [...] you are right, and this changed recently. Since we do not search for multiple queues anymore when balancing, this variable can be dropped. I've added both of your suggestions to my tree. 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/