From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 17:05:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C15116A4DA for ; Wed, 2 Aug 2006 17:05:45 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF81243D64 for ; Wed, 2 Aug 2006 17:05:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k72H5hlF081566; Wed, 2 Aug 2006 12:05:43 -0500 (CDT) (envelope-from dan) Date: Wed, 2 Aug 2006 12:05:43 -0500 From: Dan Nelson To: DAve Message-ID: <20060802170543.GD58585@dan.emsphone.com> References: <44CF8361.2090004@pixelhammer.com> <20060801204437.GG63872@dan.emsphone.com> <44D0D80A.2080703@pixelhammer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44D0D80A.2080703@pixelhammer.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: piperd in top 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: Wed, 02 Aug 2006 17:05:45 -0000 In the last episode (Aug 02), DAve said: > Dan Nelson wrote: > >In the last episode (Aug 01), DAve said: > >>We are in the process of getting a good hammering of spam. I've > >>been watching my mail gateways and they are keeping up well enough. > >>But looking at top I am seeing a lot of processes with state of > >>piperd. > > > >Piperd means the process is waiting on a read from a pipe. You can > >use lsof to determine what process is at the other end of the pipe > >(run lsof, find your process, find the PIPE fd, then find the other > >process with the same 0xXXXXXXXX value). > > Excellent, thank you. May I ask where you found that info. I looked > but came up empty. I'd like to know the meanings of some other states > not mentioned in the man pages. Such as nanslp, *GIANT, kqread, etc. The only place wait states are documented is the source, basically. There are many hundreds of them. States with an asterisk are mutexes To find the code related to piperd: find /usr/src/sys -name "*.c" | xargs grep -n piperd -- Dan Nelson dnelson@allantgroup.com