Date: Wed, 23 Apr 2008 13:45:09 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: WaW <wawaka@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: zeroed fields in ps output Message-ID: <20080423184507.GD99910@dan.emsphone.com> In-Reply-To: <9fce1cdb0804230932o5a39ccd1p3b38527411b9bd13@mail.gmail.com> References: <9fce1cdb0804230932o5a39ccd1p3b38527411b9bd13@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080423184507.GD99910>