Date: Wed, 30 Jan 2013 11:05:29 -0500 From: Brett Wynkoop <wynkoop@wynn.com> To: "Ronald Klop" <ronald-freebsd8@klop.yi.org> Cc: freebsd-arm@freebsd.org Subject: Re: disk wait mystery Message-ID: <20130130110529.5c5df516@ivory.lan> In-Reply-To: <op.wrp0w4yu8527sy@ronaldradial.versatec.local> References: <20130130001849.7669e033@ivory.lan> <op.wrpw4bjv8527sy@ronaldradial.versatec.local> <20130130053729.0c9e018f@ivory.lan> <op.wrp0w4yu8527sy@ronaldradial.versatec.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jan 2013 12:01:42 +0100 "Ronald Klop" <ronald-freebsd8@klop.yi.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130130110529.5c5df516>