From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 21 Mar 2003 00:56:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 21 Mar 2003 00:56:19 -0500 Received: from mx1.elte.hu ([157.181.1.137]:14058 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Fri, 21 Mar 2003 00:56:18 -0500 Date: Fri, 21 Mar 2003 07:06:55 +0100 (CET) From: Ingo Molnar Reply-To: Ingo Molnar To: Mike Galbraith Cc: Steven Cole , Ed Tomlinson , Andrew Morton , Linux Kernel , Subject: Re: 2.5.65-mm2 In-Reply-To: <5.2.0.9.2.20030320194530.01985440@pop.gmx.net> 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, 20 Mar 2003, Mike Galbraith wrote: > This is a side effect of Ingo's (nice!) latency change methinks. When > you have several cpu hogs running (dbench), and they are cleaning your > cpu's clock by using their full bandwidth to attain maximum throughput, > and they then break up their timeslice in order to provide you with more > responsiveness, and then their _cumulative_ sleep time between (round > robin!) cpu hard burns is added to their sleep_avg, [...] actually, the round-robining for finer-grained timeslices should not impact the sleep average at all, because the roundrobin is done while the task is still _running_, ie. the sleep average does not get impacted. Otherwise we'd have elevated priority of simple CPU-intensive applications, which would be Bad. The way the sleep-average is maintained is balanced very carefully in the O(1) scheduler. There are three states a task can be in: - sleeping: the sleep average increases - running but not executing: the sleep average stagnates - executing on a CPU: the sleep average decreases ie. in the roundrobin case the tasks will neither increase, nor decrease their sleep average - they are in essence 'frozen'. The moment they get scheduled on a CPU for execution, their sleep average starts to decrease again. (and once they go to sleep, their sleep average increases.) so whatever effect you are seeing, it must be something else. Ingo From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 21 Mar 2003 07:06:55 +0100 (CET) From: Ingo Molnar Reply-To: Ingo Molnar Subject: Re: 2.5.65-mm2 In-Reply-To: <5.2.0.9.2.20030320194530.01985440@pop.gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Mike Galbraith Cc: Steven Cole , Ed Tomlinson , Andrew Morton , Linux Kernel , linux-mm@kvack.org List-ID: On Thu, 20 Mar 2003, Mike Galbraith wrote: > This is a side effect of Ingo's (nice!) latency change methinks. When > you have several cpu hogs running (dbench), and they are cleaning your > cpu's clock by using their full bandwidth to attain maximum throughput, > and they then break up their timeslice in order to provide you with more > responsiveness, and then their _cumulative_ sleep time between (round > robin!) cpu hard burns is added to their sleep_avg, [...] actually, the round-robining for finer-grained timeslices should not impact the sleep average at all, because the roundrobin is done while the task is still _running_, ie. the sleep average does not get impacted. Otherwise we'd have elevated priority of simple CPU-intensive applications, which would be Bad. The way the sleep-average is maintained is balanced very carefully in the O(1) scheduler. There are three states a task can be in: - sleeping: the sleep average increases - running but not executing: the sleep average stagnates - executing on a CPU: the sleep average decreases ie. in the roundrobin case the tasks will neither increase, nor decrease their sleep average - they are in essence 'frozen'. The moment they get scheduled on a CPU for execution, their sleep average starts to decrease again. (and once they go to sleep, their sleep average increases.) so whatever effect you are seeing, it must be something else. Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org