Hi, I notice onifconsole is enable on STABLE recently, In mbr 2013 there is an uart port, it may not useful: uart0: <8250 or 16450 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: console (338,n,8,1) If onifconsole is enable, "shutdown -p now" or press power button on keyboard is not properly work. system still can ssh. Before shutdown command, ps -ax show: PID TT STAT TIME COMMAND 0 - DLs 0:00.10 [kernel] 1 - ILs 0:00.02 /sbin/init -s 2 - DL 0:00.02 [cam] 3 - DL 0:00.00 [sctp_iterator] 4 - DL 0:00.00 [pagedaemon] 5 - DL 0:00.00 [vmdaemon] 6 - DL 0:00.00 [pagezero] 7 - DL 0:00.00 [bufdaemon] 8 - DL 0:00.00 [syncer] 9 - DL 0:00.00 [vnlru] 10 - DL 0:00.00 [audit] 11 - RL 7:12.33 [idle] 12 - WL 0:00.32 [intr] 13 - DL 0:00.01 [geom] 14 - DL 0:00.00 [rand_harvestq] 15 - DL 0:00.10 [usb] 16 - DL 0:00.00 [softdepflush] 439 - Is 0:00.00 dhclient: bge0 [priv] (dhclien 475 - Is 0:00.00 dhclient: bge0 (dhclient) 480 - Is 0:00.00 /usr/sbin/moused -p /dev/ums0 506 - Is 0:00.00 /usr/sbin/moused -p /dev/ums1 531 - Is 0:00.00 /usr/sbin/moused -p /dev/wsp0 548 - Is 0:00.00 /sbin/devd 596 - DL 0:00.00 [ng_queue] 597 - DL 0:00.00 [Timer] 716 - Ss 0:00.00 /usr/sbin/syslogd -s 797 - Ss 0:00.01 /usr/sbin/ntpd -c /etc/ntp.con 847 - Ss 0:00.00 /usr/local/bin/dbus-daemon --s 887 - Ss 0:00.01 /usr/local/sbin/openvpn --cd / 894 - Is 0:00.02 /bin/sh /usr/local/bin/mysqld_ 1549 - I 0:00.11 /usr/local/libexec/mysqld --de 1570 - Is 0:00.00 /usr/local/bin/memcached -d -u 1611 - Is 0:00.01 /usr/local/sbin/cupsd -C /usr/ 1623 - DL 0:00.00 [md0] 1642 - Is 0:00.00 /usr/sbin/sshd 1645 - Ss 0:00.00 sendmail: accepting connection 1648 - Is 0:00.00 sendmail: Queue runner at 00:30:0 1652 - Is 0:00.00 /usr/sbin/cron -s 1706 - Is 0:05.64 /usr/local/sbin/hald 1709 - I 0:00.07 hald-runner 1729 - Is 0:00.01 sshd: hwh [priv] (sshd) 1731 - I 0:00.05 hald-addon-mouse-sysmouse: /de 1746 - S 0:00.00 sshd: hwh at pts/0 (sshd) 1752 - I 0:00.06 hald-addon-mouse-sysmouse: /de 1755 - I 0:00.05 hald-addon-mouse-sysmouse: /de 1775 - S 0:00.06 hald-addon-storage: /dev/da0 ( 1693 v0 Is+ 0:00.01 /usr/libexec/getty Pc ttyv0 1694 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 1695 v2 Is+ 0:00.01 /usr/libexec/getty Pc ttyv2 1696 v3 Is+ 0:00.01 /usr/libexec/getty Pc ttyv3 1697 v4 Is+ 0:00.01 /usr/libexec/getty Pc ttyv4 1698 v5 Is+ 0:00.01 /usr/libexec/getty Pc ttyv5 1699 v6 Is+ 0:00.01 /usr/libexec/getty Pc ttyv6 1700 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7 1701 u0 Is+ 0:00.01 /usr/libexec/getty std.9600 tt 1747 0 Ss 0:00.01 -csh (csh) 1779 0 R+ 0:00.00 ps -ax After showdown command, ps -ax show: PID TT STAT TIME COMMAND 0 - DLs 0:00.10 [kernel] 1 - SLs 0:00.02 /sbin/init -s 2 - DL 0:00.02 [cam] 3 - DL 0:00.00 [sctp_iterator] 4 - DL 0:00.00 [pagedaemon] 5 - DL 0:00.00 [vmdaemon] 6 - DL 0:00.00 [pagezero] 7 - DL 0:00.00 [bufdaemon] 8 - DL 0:00.00 [syncer] 9 - DL 0:00.00 [vnlru] 10 - DL 0:00.00 [audit] 11 - RL 9:50.12 [idle] 12 - WL 0:00.33 [intr] 13 - DL 0:00.01 [geom] 14 - DL 0:00.01 [rand_harvestq] 15 - DL 0:00.11 [usb] 16 - DL 0:00.00 [softdepflush] 439 - Is 0:00.00 dhclient: bge0 [priv] (dhclien 475 - Is 0:00.00 dhclient: bge0 (dhclient) 480 - Is 0:00.00 /usr/sbin/moused -p /dev/ums0 506 - Is 0:00.00 /usr/sbin/moused -p /dev/ums1 531 - Is 0:00.00 /usr/sbin/moused -p /dev/wsp0 548 - Is 0:00.00 /sbin/devd 596 - DL 0:00.00 [ng_queue] 597 - DL 0:00.00 [Timer] 716 - Is 0:00.00 /usr/sbin/syslogd -s 797 - Ss 0:00.01 /usr/sbin/ntpd -c /etc/ntp.con 847 - Is 0:00.00 /usr/local/bin/dbus-daemon --s 887 - Ss 0:00.01 /usr/local/sbin/openvpn --cd / 894 - Is 0:00.02 /bin/sh /usr/local/bin/mysqld_ 1549 - I 0:00.11 /usr/local/libexec/mysqld --de 1570 - Is 0:00.00 /usr/local/bin/memcached -d -u 1611 - Is 0:00.01 /usr/local/sbin/cupsd -C /usr/ 1623 - DL 0:00.00 [md0] 1642 - Is 0:00.00 /usr/sbin/sshd 1645 - Ss 0:00.00 sendmail: accepting connection 1648 - Is 0:00.00 sendmail: Queue runner at 00:30:0 1652 - Is 0:00.00 /usr/sbin/cron -s 1706 - Is 0:05.64 /usr/local/sbin/hald 1709 - I 0:00.07 hald-runner 1729 - Is 0:00.01 sshd: hwh [priv] (sshd) 1731 - I 0:00.05 hald-addon-mouse-sysmouse: /de 1746 - S 0:00.00 sshd: hwh at pts/0 (sshd) 1752 - I 0:00.06 hald-addon-mouse-sysmouse: /de 1755 - I 0:00.05 hald-addon-mouse-sysmouse: /de 1775 - S 0:00.06 hald-addon-storage: /dev/da0 ( 1693 v0- Z+ 0:00.01 <defunct> 1694 v1- Z+ 0:00.00 <defunct> 1695 v2- Z+ 0:00.01 <defunct> 1696 v3- Z+ 0:00.01 <defunct> 1697 v4- Z+ 0:00.01 <defunct> 1698 v5- Z+ 0:00.01 <defunct> 1699 v6- Z+ 0:00.01 <defunct> 1700 v7- Z+ 0:00.00 <defunct> 1701 u0- Z+ 0:00.01 <defunct> 1747 0 Ss 0:00.01 -csh (csh) 1780 0 R+ 0:00.00 ps -ax All getty processes become to defunct. Cheers, Huang Wenhui
On Sat, Jun 14, 2014 at 07:58:17AM +0800, Huang Wen Hui wrote:> I notice onifconsole is enable on STABLE recently, In mbr 2013 there is an > uart port, it may not useful:> uart0: <8250 or 16450 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 > on isa0 > uart0: console (338,n,8,1)> If onifconsole is enable, "shutdown -p now" or press power button on > keyboard is not properly work. > system still can ssh.> Before shutdown command, ps -ax show: > [snip] > After showdown command, ps -ax show: > PID TT STAT TIME COMMAND > 0 - DLs 0:00.10 [kernel] > 1 - SLs 0:00.02 /sbin/init -s > [snip] > 1693 v0- Z+ 0:00.01 <defunct> > 1694 v1- Z+ 0:00.00 <defunct> > 1695 v2- Z+ 0:00.01 <defunct> > 1696 v3- Z+ 0:00.01 <defunct> > 1697 v4- Z+ 0:00.01 <defunct> > 1698 v5- Z+ 0:00.01 <defunct> > 1699 v6- Z+ 0:00.01 <defunct> > 1700 v7- Z+ 0:00.00 <defunct> > 1701 u0- Z+ 0:00.01 <defunct> > 1747 0 Ss 0:00.01 -csh (csh) > 1780 0 R+ 0:00.00 ps -ax> All getty processes become to defunct.Please provide the output of procstat -k 1 during the hang (after the shutdown command). If you are running stable/10, reverting r261997 (an MFC of r259441) might help. In some circumstances, r261997 makes a process unkillable while waiting for output to drain while closing a tty. -- Jilles Tjoelker