From owner-freebsd-questions@FreeBSD.ORG Tue Jan 9 05:36:34 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB20A16A40F for ; Tue, 9 Jan 2007 05:36:34 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by mx1.freebsd.org (Postfix) with ESMTP id 818E713C45E for ; Tue, 9 Jan 2007 05:36:34 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: by wr-out-0506.google.com with SMTP id i28so268395wra for ; Mon, 08 Jan 2007 21:36:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fQlzxha3eRFSS9K+lm6wTxY87E1D6gjDbluBYcUlaelbyzqBrVLFpu7bh5AH9If6i7dKWBz3uljB92p0Lwu8AVxFT4cwjHnqy6wAT0WNyHXM9MoxoPURkXzyvJcUj93FJ14YkJge6hDGdwWEvvKEZ+lvvtJmgB2YpjJW1ciinD4= Received: by 10.90.66.9 with SMTP id o9mr2781685aga.1168319406756; Mon, 08 Jan 2007 21:10:06 -0800 (PST) Received: by 10.90.106.4 with HTTP; Mon, 8 Jan 2007 21:10:06 -0800 (PST) Message-ID: <39ed86f90701082110i14e19b60sc3c18c060eff63c9@mail.gmail.com> Date: Mon, 8 Jan 2007 21:10:06 -0800 From: "Greg Albrecht" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: process states revisited X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 05:36:34 -0000 while searching for 'freebsd process states' on google i came across this thread: http://lists.freebsd.org/pipermail/freebsd-questions/2006-December/138024.html i'm a new subscriber, so i can't reply to the original thread. i'm guessing fr0zen@sbcglobal.net's original question was something more like: "that do the values in the STATE column in top mean?" here's an example of what i'm talking about: ## bad 'top' formatting to come PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 95698 mysql 20 0 388M 349M kserel 0 266.7H 0.63% 0.63% mysqld 98237 jffnms 8 0 21224K 14412K nanslp 0 0:02 0.59% 0.59% php 98239 jffnms 96 0 22124K 15292K select 1 0:02 0.49% 0.49% php 98596 root 96 0 4124K 2560K CPU1 1 0:00 0.51% 0.05% top 1263 root 4 0 1408K 708K accept 0 0:07 0.00% 0.00% vsftpd 3405 galbrecht 8 0 4876K 2676K wait 0 0:00 0.00% 0.00% bash 94414 root 4 0 3284K 1968K sbwait 1 0:00 0.00% 0.00% mysql ## end of bad formatting this snippet of top shows the following values for STATE: kserel, nanslp, select, CPU1, accept, wait, sbwait this thread has already cleared up these states: nanslp: "Waiting for < 1 second." -grog@freebsd.org select: "Waiting for a select() to complete" -grog@freebsd.org wait: "Waiting for something to happen, possibly time limited (>= 1 second)" -grog@fbsd top(1) tells us: "STATE is the current state (one of "sleep", "WAIT", "run", "idl", "zomb", or "stop")" eh, not so much. man clears up some of these states: sleep: "The sleep command suspends execution for a minimum of seconds." - sleep(1) accept: "accept a connection on a socket" - accept(2) i bet i can answer with: run: process is running? zomb: zombie process, terminated but not removed from memory that leaves us with: kserel? sbwait? idl? stop? does the previous answer still apply ("ask the developers of those programs")? -g -- Greg Albrecht (gregoryba@gmail.com) An Indie, Hip Hop and IDM Podcast: The Letter G http://theletterg.org