Hello. 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 0 0.0 0.0 0 0 1-08:43:22 Tue11AM WLs [swapper] root 1 0.0 0.0 1928 16 1-08:43:22 Tue11AM ILs /sbin/init -- root 2 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [g_event] root 3 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [g_up] root 4 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [g_down] root 5 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [system_taskq] root 6 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [acpi_task_0] root 7 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [acpi_task_1] root 8 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [acpi_task_2] root 9 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [kqueue taskq] root 10 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [audit] root 11 94.6 0.0 0 16 1-08:43:22 Tue11AM RL [idle] root 12 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi1: net] root 13 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi4: clock sio] root 14 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi3: vm] root 15 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [yarrow] root 16 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi5: +] root 17 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [thread taskq] root 18 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi6: Giant taskq] root 19 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi6: task queue] root 20 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [xpt_thrd] root 21 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi2: cambio] root 22 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq9: acpi0] root 23 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq23: ohci0] root 24 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [usb0] root 25 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [usbtask-hc] root 26 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [usbtask-dr] root 27 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq20: ehci0+] root 28 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [usb1] root 29 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq14: ata0] root 30 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq15: ata1] root 31 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq21: atapci2] root 32 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq16: rl0] root 33 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq17: skc0] root 34 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [nfe0 taskq] root 35 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [acpi_thermal] root 36 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [acpi_cooling0] root 37 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [swi0: sio] root 38 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq7: ppbus0 ppc0] root 39 0.0 0.0 0 16 1-08:43:22 Tue11AM WL [irq1: atkbd0] root 40 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [pfpurge] root 41 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [arc_reclaim_thread] root 42 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [pagedaemon] root 43 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [vmdaemon] root 44 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [pagezero] root 45 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [bufdaemon] root 46 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [vnlru] root 47 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [syncer] root 48 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [softdepflush] root 49 0.0 0.0 0 16 1-08:43:22 Tue11AM DL [schedcpu] root 123 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_0] root 124 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_0] root 125 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_1] root 126 0.1 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_1] root 127 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_2] root 128 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_2] root 129 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_3] root 130 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_3] root 131 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_4] root 132 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_4] root 133 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_issue_5] root 134 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [spa_zio_intr_5] root 135 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [vdev:worker ad4] root 136 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [vdev:worker ad6] root 137 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [vdev:worker ad8] root 138 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [vdev:worker ad10] root 139 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [txg_thread_enter] root 140 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [txg_thread_enter] root 141 0.0 0.0 0 16 1-08:42:50 Tue11AM DL [txg_thread_enter] root 142 0.0 0.0 0 16 1-08:42:49 Tue11AM DL [zil_clean] root 143 0.0 0.0 0 16 1-08:42:49 Tue11AM DL [zil_clean] root 144 0.0 0.0 0 16 1-08:42:49 Tue11AM DL [zil_clean] root 145 0.0 0.0 0 16 1-08:42:49 Tue11AM DL [zil_clean] root 478 0.0 0.0 5852 260 1-08:42:48 Tue11AM Is pflogd: [priv] (pflogd) _pflogd 483 0.0 0.0 5852 348 1-08:42:48 Tue11AM S pflogd: [running] -s 116 -i pflog0 -f /var/log/pflog (pflogd) root 509 0.0 0.1 22484 708 1-08:42:47 Tue11AM Ss /usr/sbin/ppp -quiet -ddial tesontel root 675 0.0 0.0 1616 0 13992-16:28:05 - IWs /sbin/devd root 723 0.0 0.0 4684 428 1-08:42:46 Tue11AM Ss /usr/sbin/syslogd -s root 740 0.0 0.0 5736 128 1-08:42:46 Tue11AM Ss /usr/sbin/rpcbind root 776 0.0 0.0 4672 224 1-08:42:46 Tue11AM Is /usr/sbin/mountd -r root 784 0.0 0.0 3572 0 13992-16:28:05 - IWs nfsd: master (nfsd) root 786 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: server (nfsd) root 787 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: server (nfsd) root 788 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: server (nfsd) root 789 0.0 0.0 3572 0 13992-16:28:05 - IW nfsd: server (nfsd) root 827 0.0 0.1 18744 688 1-08:42:45 Tue11AM Ss /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf root 840 0.0 0.0 30000 288 1-08:42:45 Tue11AM Is /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf root 846 0.0 0.0 30000 0 13992-16:28:05 - IW /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf nobody 847 0.0 0.0 13472 488 1-08:42:44 Tue11AM Ss proftpd: (accepting connections) (proftpd) root 925 0.0 0.0 4668 280 1-08:42:44 Tue11AM Is /usr/local/sbin/miniupnpd -f /usr/local/etc/miniupnpd.conf root 936 0.0 0.0 20960 312 1-08:42:43 Tue11AM Is /usr/sbin/sshd root 942 0.0 0.1 10576 824 1-08:42:43 Tue11AM Ss sendmail: accepting connections (sendmail) smmsp 948 0.0 0.1 10576 676 1-08:42:42 Tue11AM Is sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail) root 954 0.0 0.0 5736 348 1-08:42:42 Tue11AM Ss /usr/sbin/cron -s root 995 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv0 root 996 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv1 root 997 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv2 root 998 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv3 root 999 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv4 root 1000 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv5 root 1001 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv6 root 1002 0.0 0.0 4668 172 1-08:42:42 Tue11AM I /usr/libexec/getty Pc ttyv7 root 1018 0.0 0.1 7504 880 1-08:38:06 Tue11AM Ss screen ftp 4592 0.0 0.2 30024 1936 07:41:04 12:47PM S /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf root 4632 0.0 0.1 32936 932 07:23:21 1:04PM Is sshd: waw [priv] (sshd) waw 4635 0.0 0.1 32936 1120 07:23:14 1:04PM S sshd: waw@ttyp0 (sshd) waw 4637 0.0 0.1 16232 816 07:23:13 1:04PM Is -zsh (zsh) waw 4641 0.0 0.0 7504 424 07:23:10 1:04PM S+ screen -r waw 1021 0.0 0.0 17372 0 13992-16:28:05 - IWs /bin/zsh waw 1054 0.0 1.6 109844 16224 1-08:36:01 Tue11AM S+ rtorrent 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 - root 1031 0.0 0.1 17628 672 1-08:38:02 Tue11AM I+ -su (zsh) waw 1049 0.0 0.0 17396 276 1-08:36:26 Tue11AM Is /bin/zsh waw 2561 0.0 6.0 88112 62096 20:47:57 11:40PM SN /usr/local/bin/mlnet-real root 2756 0.0 0.0 19400 412 19:41:13 12:46AM I su - root 2757 0.0 0.2 17584 2028 19:41:12 12:46AM S -su (zsh) root 5702 0.0 0.1 5776 1032 00:00 8:28PM R+ ps -ax -o user,pid,pcpu,pmem,vsz,rss,etime,start,state,command -- Vladimir K. aka WaW
On Wed, Apr 23, 2008 at 08:32:13PM +0400, WaW wrote:> Hello. > 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.May be specific to your system, as I can't reproduce it here: $ ps -auxw | grep smb root 659 0.0 0.1 9044 1816 ?? Ss Sat06am 0:11.69 /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf root 660 0.0 0.1 9032 1688 ?? I Sat06am 0:00.09 /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf root 664 0.0 0.1 12264 2976 ?? Is Sat06am 0:00.01 /usr/local/sbin/smbd -d 2 -D -s /usr/local/etc/smb.conf root 709 0.0 0.1 12264 2912 ?? I Sat06am 0:00.00 /usr/local/sbin/smbd -d 2 -D -s /usr/local/etc/smb.conf $ uptime 10:22am up 4 days, 3:33, 3 users, load averages: 0.00, 0.00, 0.00 $ uname -a FreeBSD icarus.home.lan 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Apr 19 04:28:33 PDT 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/SM5015MT amd64 -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
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
On Wed, Apr 23, 2008 at 10:45 PM, Dan Nelson <dnelson@allantgroup.com> wrote:> 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 >Thanks a lot for explanation, i just thought something is wrong with my box :) -- Vladimir K. aka WaW