Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Dec 2001 12:05:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Dec 2001 12:05:48 -0500 Received: from mail.xmailserver.org ([208.129.208.52]:22285 "EHLO mail.xmailserver.org") by vger.kernel.org with ESMTP id ; Fri, 28 Dec 2001 12:05:41 -0500 Date: Fri, 28 Dec 2001 09:07:48 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Alan Cox cc: "Jeffrey W. Baker" , Subject: Re: 2.4.17 absurd number of context switches 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 Fri, 28 Dec 2001, Alan Cox wrote: > > Check out those figures for context switches! 30,000 switches per second > > with only three runnable processes and practically no block I/O seems > > quite high to me. You can also see that the system is spending half its > .. > > Is this a scheduler worst-case, something to be expected, or something I > > can work around? > > The scheduler is _good_ at the three process case. Run some straces it looks > more like postgres is doing wacky yield based locks. The scheduler that Linus merged in 2.5.2-pre3 will solve the problem. - Davide - 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/