Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Dec 2001 11:52:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Dec 2001 11:52:18 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:53257 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Fri, 28 Dec 2001 11:52:04 -0500 Subject: Re: 2.4.17 absurd number of context switches To: jwb@saturn5.com (Jeffrey W. Baker) Date: Fri, 28 Dec 2001 17:02:09 +0000 (GMT) Cc: linux-kernel@vger.kernel.org In-Reply-To: from "Jeffrey W. Baker" at Dec 28, 2001 08:35:50 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > 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. Alan - 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/