zeroed fields in ps output
Dan Nelson
dnelson at allantgroup.com
Wed Apr 23 18:45:10 UTC 2008
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 at allantgroup.com
More information about the freebsd-stable
mailing list