Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 18 Jul 2002 08:40:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 18 Jul 2002 08:40:11 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]:58040 "EHLO os.inf.tu-dresden.de") by vger.kernel.org with ESMTP id ; Thu, 18 Jul 2002 08:40:10 -0400 From: Jean Wolter Organisation: Dresden University of Technology To: Ingo Molnar Cc: Sam Mason , shreenivasa H V , Subject: Re: Gang Scheduling in linux References: Content-Type: text/plain; charset=US-ASCII Date: 18 Jul 2002 14:43:04 +0200 In-Reply-To: Message-ID: <86it3dtdev.fsf@os.inf.tu-dresden.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1580 Lines: 29 Ingo Molnar writes: > On Wed, 17 Jul 2002, Sam Mason wrote: > > > The important thing to remember is that this isn't a normal scheduling > > method, it's used for VERY specialised software which is assumed to have > > (almost) complete control of the machine. [...] > > so how does this differ from a normal Linux system that is used > exclusively? The specialized tasks will get evenly distributed between > CPUs (as long as the number of tasks is not higher than the number of > CPUs), and nothing should interrupt them. I think as long as there is only one task set, it doesn't matter. But if you are trying to run several parallel applications at the same time on the same machine you are trying to schedule them as a gang (at the same time on different processors) to provide the impression, that each task set would run alone. And afaik these applications typically use shared resources which are protected by some kind of synchronization primitive like (user level) spinlocks. If one of the processes holds the lock and the kernel preempts it for some reason no other process needing access to the shared resource is able to make progress. So the idea is to try to schedule them all at the same time on different processors to ensure that blocking time on the shared resource is really short. regards, Jean - 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/