From owner-freebsd-arm@FreeBSD.ORG Wed Jan 30 16:05:30 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E63BE9AD for ; Wed, 30 Jan 2013 16:05:30 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 91B43339 for ; Wed, 30 Jan 2013 16:05:30 +0000 (UTC) Received: from ivory.lan (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r0UG5Tbu088094; Wed, 30 Jan 2013 11:05:29 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Wed, 30 Jan 2013 11:05:29 -0500 From: Brett Wynkoop To: "Ronald Klop" Subject: Re: disk wait mystery Message-ID: <20130130110529.5c5df516@ivory.lan> In-Reply-To: References: <20130130001849.7669e033@ivory.lan> <20130130053729.0c9e018f@ivory.lan> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 16:05:31 -0000 On Wed, 30 Jan 2013 12:01:42 +0100 "Ronald Klop" wrote: > Aha. My amd64 has the same. I think the ps man page is not very > clear. The code src/bin/ps/print.c says this. > > case SSLEEP: > if (tdflags & TDF_SINTR) /* interruptable > (long) */ *cp = k->ki_p->ki_slptime >= MAXSLP ? 'I' : 'S'; > else > *cp = 'D'; > break; > > No mention about disks. Just an uninterruptible sleep (which can be a > wait for a disk, but also for other type of > alarms/interrupts/locks/etc.). So you have waiting kernel > threads/processes. Which is called 'idle'. > > Ronald. Ronald- Thanks for the code snippit. I should have thought to look at the sources for ps! When the documentation fails look at the source. Silly me! I appreciate the education on this point! I wonder if this should be considered a man page bug? -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6925 718-717-5435 "The strongest reason for the people to retain the right to keep and bear arms is, as a last resort, to protect themselves against tyranny in government" - Thomas Jefferson.