From owner-freebsd-stable@FreeBSD.ORG Wed Apr 23 18:45:10 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83A99106566C for ; Wed, 23 Apr 2008 18:45:10 +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 32E4B8FC1E for ; Wed, 23 Apr 2008 18:45:10 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.2/8.14.2) with ESMTP id m3NIj98M083358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 23 Apr 2008 13:45:09 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2/Submit) id m3NIj9ML083357; Wed, 23 Apr 2008 13:45:09 -0500 (CDT) (envelope-from dan) Date: Wed, 23 Apr 2008 13:45:09 -0500 From: Dan Nelson To: WaW Message-ID: <20080423184507.GD99910@dan.emsphone.com> References: <9fce1cdb0804230932o5a39ccd1p3b38527411b9bd13@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9fce1cdb0804230932o5a39ccd1p3b38527411b9bd13@mail.gmail.com> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: zeroed fields in ps output X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 18:45:10 -0000 In the last episode (Apr 23), WaW said: > I have noticed something strange with some processes running in my > system. Look at ps output below: it says that nfsd, smbd and zsh are > running for ~13992 days, that means their ELAPSED field == 0 in unix > time. Moreover, RSS field also == 0. This happens in 1-2 days after > system is booted up. Is this a bug or a feature? > > System is 7.0-RELEASE/amd64. And if it makes sense - nfs and samba do > export zfs filesystems. > > USER PID %CPU %MEM VSZ RSS ELAPSED STARTED STAT COMMAND > root 675 0.0 0.0 1616 0 13992-16:28:05 - IWs /sbin/devd > root 784 0.0 0.0 3572 0 13992-16:28:05 - IWs nfsd: > root 786 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: > root 787 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: > root 788 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: > root 789 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: > root 846 0.0 0.0 30000 0 13992-16:28:05 - IW /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf > waw 1021 0.0 0.0 17372 0 13992-16:28:05 - IWs /bin/zsh > waw 1026 0.0 0.0 16220 0 13992-16:28:05 - IWs /bin/zsh > root 1030 0.0 0.0 19400 0 13992-16:28:05 - IW su - Processes with a W in the second column of STAT have been completely swapped out; That definitely explains why RSS=0, and may explain why etime is unavailable. ps should probably print a "-" there (like it does for STARTED) instead of an obviously wrong value. -- Dan Nelson dnelson@allantgroup.com