Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Sep 2002 22:59:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Sep 2002 22:59:19 -0400 Received: from dp.samba.org ([66.70.73.150]:908 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Mon, 16 Sep 2002 22:59:18 -0400 Date: Tue, 17 Sep 2002 12:59:08 +1000 From: Anton Blanchard To: Lev Makhlis Cc: linux-kernel@vger.kernel.org, akpm@zip.com.au, riel@conectiva.com.br Subject: Re: [RFC] [PATCH] [2.5.35] Run Queue Statistics Message-ID: <20020917025907.GB15189@krispykreme> References: <200209161820.44702.mlev@despammed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209161820.44702.mlev@despammed.com> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 27 Hi, > This patch adds two counters, runque and runocc, similar to those > in traditional UNIX systems, to measure the run queue occupancy. > Every second, 'runque' is incremented by the run queue size, and > 'runocc' is incremented by one if the run queue is not empty. > > I am not comfortable about putting the calculation in the same function > as the load average calculation, but I didn't want to call > count_active_tasks() twice. Comments are welcome. On a semi related note, vmstat wants to know the number of running, blocked and swapped processes. strace vmstat one day and you will see it currently opens /proc/*/stat (ie one open for each process) just to get these stats. Yet another place where the monitoring utilities disturb the system way too much. Can we get some things in /proc/stat to give us these numbers? Does "swapped" make any sense on Linux? Anton - 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/