On 17/04/07, Arieh Skliarouk <[EMAIL PROTECTED]> wrote:
Hi, output of vmstat: > > # vmstat 5 > procs -----------memory---------- ---swap-- -----io---- --system-- > ----cpu---- > r b swpd free buff cache si so bi bo in cs us sy > id wa > 2 13 100 10448 232800 331344 0 0 208 1180 43 84 8 23 > 4 66 > 0 13 100 9116 232812 331332 0 0 246 465 384 357 0 1 > 0 99 > What are these 13 processes? What do they do?
Would the following answer your question? # ps -el | awk '$2 == "D"' 1 D 0 362 1 0 75 0 - 0 sync_b ? 00:26:36 kjournald 5 D 0 20628 16431 0 78 0 - 9131 sync_p ? 00:00:15 sendmail 5 D 0 15740 16431 0 78 0 - 9100 sync_p ? 00:00:13 sendmail 5 D 0 16708 16431 0 78 0 - 9022 sync_p ? 00:00:12 sendmail 5 D 0 11266 16431 0 78 0 - 8960 sync_b ? 00:00:10 sendmail 5 D 0 2743 16431 0 78 0 - 8929 sync_p ? 00:00:10 sendmail 5 D 0 25771 16431 0 78 0 - 8897 sync_p ? 00:00:08 sendmail 5 D 0 22686 16431 0 78 0 - 8866 sync_p ? 00:00:07 sendmail 5 D 0 21738 16431 0 78 0 - 8835 sync_p ? 00:00:06 sendmail 5 D 0 13724 16431 0 78 0 - 8819 sync_p ? 00:00:04 sendmail 5 D 0 18681 16431 0 78 0 - 8804 sync_p ? 00:00:03 sendmail 5 D 0 22333 16431 0 78 0 - 8693 sync_p ? 00:00:02 sendmail 5 D 0 25768 16431 0 78 0 - 8693 sync_p ? 00:00:01 sendmail 5 D 0 29143 16431 0 78 0 - 8654 sync_p ? 00:00:00 sendmail Another ps shows that these are queue runners: # ps -efww | fgrep sendmail root 16431 1 0 Apr16 ? 00:00:39 sendmail: rejecting connections on daemon MTA: load average: 14 smmsp 16439 1 0 Apr16 ? 00:00:00 sendmail: Queue [EMAIL PROTECTED]:00:00 for /var/spool/clientmqueue root 7096 16431 0 05:02 ? 00:00:17 sendmail: ./l3F3Olul011285 mx2.optonline.net.: client DATA status root 14773 16431 0 06:02 ? 00:00:16 sendmail: ./l3F3Olit011285 mail.bar-plate.com.: user open root 2191 16431 0 07:02 ? 00:00:16 sendmail: ./l3EFZqba004458 from queue root 20628 16431 0 08:02 ? 00:00:15 sendmail: running queue: /var/spool/mqueue root 15740 16431 0 09:02 ? 00:00:13 sendmail: running queue: /var/spool/mqueue root 16708 16431 0 10:02 ? 00:00:12 sendmail: running queue: /var/spool/mqueue root 11266 16431 0 11:02 ? 00:00:10 sendmail: running queue: /var/spool/mqueue root 2743 16431 0 12:02 ? 00:00:10 sendmail: running queue: /var/spool/mqueue root 25771 16431 0 13:02 ? 00:00:08 sendmail: running queue: /var/spool/mqueue root 22686 16431 0 14:02 ? 00:00:07 sendmail: running queue: /var/spool/mqueue root 21738 16431 0 15:02 ? 00:00:06 sendmail: running queue: /var/spool/mqueue root 13724 16431 0 16:02 ? 00:00:04 sendmail: running queue: /var/spool/mqueue root 18681 16431 0 17:02 ? 00:00:03 sendmail: running queue: /var/spool/mqueue root 22333 16431 0 18:02 ? 00:00:02 sendmail: running queue: /var/spool/mqueue root 25768 16431 0 19:02 ? 00:00:01 sendmail: running queue: /var/spool/mqueue root 29143 16431 0 20:02 ? 00:00:00 sendmail: running queue: /var/spool/mqueue Post output of "netstat -anp". Here: # netstat -anp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:50309 0.0.0.0:* LISTEN 1515/rpc.statd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1496/portmap tcp 0 0 127.0.0.1:50000 0.0.0.0:* LISTEN 1738/hpiod tcp 0 0 127.0.0.1:50002 0.0.0.0:* LISTEN 1743/python tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1991/pure-ftpd (SER tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 14487/cupsd tcp 0 0 127.0.0.1:50000 127.0.0.1:60608 ESTABLISHED 1738/hpiod tcp 0 0 10.10.1.3:47399 10.10.1.26:4596 TIME_WAIT - tcp 0 0 127.0.0.1:60608 127.0.0.1:50000 ESTABLISHED 1743/python tcp 0 0 10.10.1.3:21 10.10.1.26:4595 TIME_WAIT - tcp 0 0 :::21 :::* LISTEN 1991/pure-ftpd (SER tcp 0 0 :::22 :::* LISTEN 1808/sshd tcp 0 0 ::ffff:10.10.1.3:59584 ::ffff:167.206.4.79:25 ESTABLISHED 7096/l3F3Olul011285 tcp 0 1 ::ffff:10.10.1.3:53305 ::ffff:204.251.15.190:25 SYN_SENT 2191/l3EGZqMF000468 tcp 102 0 ::ffff:10.10.1.3:60804 ::ffff:64.118.85.28:25 CLOSE_WAIT 7096/l3F3Olul011285 tcp 0 576 ::ffff:10.10.1.3:22 ::ffff:192.168.0.81:56611 ESTABLISHED 30826/0 udp 0 0 0.0.0.0:32768 0.0.0.0:* 1515/rpc.statd udp 0 0 0.0.0.0:32772 0.0.0.0:* 1934/avahi-daemon: udp 0 0 0.0.0.0:843 0.0.0.0:* 1515/rpc.statd udp 0 0 0.0.0.0:5353 0.0.0.0:* 1934/avahi-daemon: udp 0 0 0.0.0.0:111 0.0.0.0:* 1496/portmap udp 0 0 0.0.0.0:631 0.0.0.0:* 14487/cupsd udp 0 0 10.10.1.13:123 0.0.0.0:* 8067/ntpd udp 0 0 10.10.1.3:123 0.0.0.0:* 8067/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 8067/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 8067/ntpd udp 0 0 :::32773 :::* 1934/avahi-daemon: udp 0 0 :::123 :::* 8067/ntpd Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 16 [ ] DGRAM 4365 1469/syslogd /dev/log unix 2 [ ACC ] STREAM LISTENING 4592 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 4636 1571/sdpd /var/run/sdp unix 2 [ ACC ] STREAM LISTENING 4829 1729/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 5502 1954/hald @/tmp/hald-local/dbus-uDXWK13cAV unix 2 [ ACC ] STREAM LISTENING 5204 1853/gpm /dev/gpmctl unix 2 [ ] DGRAM 1048 425/udevd @/org/kernel/udev/udevd unix 2 [ ] DGRAM 5511 1954/hald @/org/freedesktop/hal/udev_event unix 2 [ ACC ] STREAM LISTENING 5273 1897/xfs /tmp/.font-unix/fs7100 unix 2 [ ACC ] STREAM LISTENING 5503 1954/hald @/tmp/hald-runner/dbus-LumKgqTo97 unix 2 [ ACC ] STREAM LISTENING 5341 1934/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ] DGRAM 23180772 31495/sendmail unix 2 [ ] DGRAM 19886794 16439/clientmqueue unix 2 [ ] DGRAM 19886772 16431/sendmail: rej unix 3 [ ] STREAM CONNECTED 16726867 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 16726866 14487/cupsd unix 2 [ ] DGRAM 721906 8067/ntpd unix 2 [ ] DGRAM 6226 1991/pure-ftpd (SER unix 3 [ ] STREAM CONNECTED 6188 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6187 1954/hald unix 3 [ ] STREAM CONNECTED 6189 1954/hald @/tmp/hald-local/dbus-uDXWK13cAV unix 3 [ ] STREAM CONNECTED 6186 1975/hald-addon-sto unix 3 [ ] STREAM CONNECTED 6140 1729/acpid /var/run/acpid.socket unix 3 [ ] STREAM CONNECTED 6139 1962/hald-addon-acp unix 3 [ ] STREAM CONNECTED 6141 1954/hald @/tmp/hald-local/dbus-uDXWK13cAV unix 3 [ ] STREAM CONNECTED 6134 1962/hald-addon-acp unix 3 [ ] STREAM CONNECTED 5506 1954/hald @/tmp/hald-runner/dbus-LumKgqTo97 unix 3 [ ] STREAM CONNECTED 5505 1955/hald-runner unix 3 [ ] STREAM CONNECTED 5499 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5365 1944/cups-config-da unix 3 [ ] STREAM CONNECTED 5344 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5343 1934/avahi-daemon: unix 3 [ ] STREAM CONNECTED 5338 1935/avahi-daemon: unix 3 [ ] STREAM CONNECTED 5337 1934/avahi-daemon: unix 2 [ ] DGRAM 5335 1934/avahi-daemon: unix 2 [ ] DGRAM 5168 1853/gpm unix 2 [ ] DGRAM 5087 1818/xinetd unix 2 [ ] DGRAM 4850 1738/hpiod unix 2 [ ] DGRAM 4699 1618/hidd unix 3 [ ] STREAM CONNECTED 4631 1559/dbus-daemon /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 4630 1568/hcid: processi unix 2 [ ] DGRAM 4621 1571/sdpd unix 2 [ ] DGRAM 4615 1568/hcid: processi unix 3 [ ] STREAM CONNECTED 4597 1559/dbus-daemon unix 3 [ ] STREAM CONNECTED 4596 1559/dbus-daemon unix 3 [ ] STREAM CONNECTED 4562 1544/rpc.idmapd unix 3 [ ] STREAM CONNECTED 4561 1544/rpc.idmapd unix 2 [ ] DGRAM 4447 1515/rpc.statd unix 2 [ ] DGRAM 4373 1472/klogd (yes there is lots of cruft on that machine, that's another reason I'd like to revamp it completely when I get a chance) Googling around about tuning SATA drives keeps coming back with
What makes you think that SATA is the bottleneck?
As opposed to what? It's the only disk on the system if that's what you are referring to, the vmstat output shows very high IO wait, and as seen above most of the processes are queue runners and almost no network connections (the load is so high that Sendmail actually refuses new connections). but as far as I understand much slower buffered reads than I should expect:
> > Timing buffered disk reads: 2 MB in 3.16 seconds = 648.12 kB/sec > > I can't take the system down to single-user for testing, though, so > I'm not sure how meaningful are these numbers. On busy machine they are meaningless.
As I suspected. Thanks, --Amos