Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 10 Jan 2002 17:51:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 10 Jan 2002 17:51:20 -0500 Received: from mx2.elte.hu ([157.181.151.9]:48846 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Thu, 10 Jan 2002 17:51:12 -0500 Date: Fri, 11 Jan 2002 01:48:36 +0100 (CET) From: Ingo Molnar Reply-To: To: Mike Kravetz Cc: Linus Torvalds , linux-kernel , Anton Blanchard , george anzinger , Davide Libenzi , Rusty Russell Subject: Re: [patch] O(1) scheduler, -G1, 2.5.2-pre10, 2.4.17 (fwd) In-Reply-To: <20020110135758.C15171@w-mikek2.des.beaverton.ibm.com> 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 Thu, 10 Jan 2002, Mike Kravetz wrote: > If I run 3 cpu-hog tasks on a 2 CPU system, then 1 task will get an > entire CPU while the other 2 tasks share the other CPU (easily > verified by a simple test program). On previous versions of the > scheduler 'balancing' this load was achieved by the global nature of > time slices. No task was given a new time slice until the time slices > of all runnable tasks had expired. In the current scheduler, the > decision to replenish time slices is made at a local (pre-CPU) level. > I assume the load balancing code should take care of the above > workload? OR is this the behavior we desire? [...] Arguably this is the most extreme situation - every other distribution (2:3, 3:4) is much less problematic. Will this cause problems? We could make the fairness-balancer more 'sharp' so that it will oscillate the length of the two runqueues at a slow pace, but it's still caching loss. > We certainly have optimal cache use. indeed. The question is, should we migrate processes around just to get 100% fairness in 'top' output? The (implicit) cost of a task migration (caused by the destruction & rebuilding of cache state) can be 10 milliseconds easily on a system with big caches. 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/