Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 2 Nov 2002 15:30:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 2 Nov 2002 15:30:36 -0500 Received: from sun.cesr.ncsu.edu ([152.14.51.17]:27526 "EHLO sun.cesr.ncsu.edu") by vger.kernel.org with ESMTP id ; Sat, 2 Nov 2002 15:30:34 -0500 Date: Sat, 2 Nov 2002 15:37:04 -0500 (EST) From: Anu X-X-Sender: avaidya@sun.cesr.ncsu.edu To: LKML Subject: an idling kernel In-Reply-To: <3DC3C1AA.7060602@zytor.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 Content-Length: 1372 Lines: 44 disclaimer: if this is the wrong ng to be posting this to, its only due to ignorance.. I dont know the first thing about where to post this question.. ---------------------------------------------------------------------- Hello, Im ready to be beaten up for asking this question ( I am not sure which group to post to -- all this is new to me) but, I was wondering how one could figure out if the kernel was in idle mode (or idling). I *have* tried to look for the answer and here is waht I have come up with so far : Process 0 is the idle process.. but, I dont understand how you can tell if this means that the kernel is in idle mode. Do we just probe the state field of all process entries and check to see if everyone is sleeping and conclude that the kernel is idling?? for_each_process(p) { if(process->state == S) { countup; } } if countup == number of processes, then the kernel was idling? -anu ******************************************************************************** Think, Train, Be ******************************************************************************* - 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/