Subject: Sluggishness, part 2
To: NetBSD Mac <port-mac68k@NetBSD.ORG>
From: Amitai Schlair <amitai.schlair@usa.net>
List: port-mac68k
Date: 04/14/1998 00:28:42
I'm still having problems with my serial-consoled 1.3 box not responding to
incoming requests. (IP filtering and NAT still works, just not services on
the machine itself.) I pressed Interrupt and did a ps, and here's what I got
(indented for reading at 80 columns):

-----

db> ps
  pid proc     addr     uid  ppid  pgrp  flag stat em  comm  wchan
 6939 0x6c89600 0x8b7000   0   196   196  000004  3  netbsd  inetd
                                                        0x6c2b200
 6938 0x6c7f200 0x8b4000   0   196   196  000004  3  netbsd  inetd
                                                        0x6c1f500
 6937 0x6c5b800 0x8b1000   0  6936  6937  000114  3  netbsd  cron
                                                        biowait 0x8471d8
 6936 0x6c92e00 0x887000   0   159   159  000104  3  netbsd  cron
                                                        ppwait 0x6c92e00
 6934 0x6c7f400 0x8aa000   0   196   196  000004  3  netbsd  inetd
                                                        0x6c49e00
 6933 0x6c92600 0x8ae000   0   196   196  000004  3  netbsd  inetd
                                                        biowait 0x8478a4
 6932 0x6c89c00 0x897000   0   196   196  000004  3  netbsd  inetd
                                                        biowait 0x846cdc
 6313 0x6c92200 0x884000 1000  6309  6313  004086  3  netbsd  tcsh
                                                        ttyin 0x6c1f108
 6312 0x6c5b600 0x8a7000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
 6311 0x6c6d200 0x8a4000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
 6310 0x6c89200 0x874000 32767   206   206  000104  3  netbsd  httpd
                                                        getblk 0x84b7a0
 6309 0x6c7fc00 0x857000   0   196   196  004084  3  netbsd  telnetd
                                                        select 0xf5da0
 5903 0x6c92a00 0x8a1000 32767   206   206  000104  3  netbsd  httpd
                                                        biowait 0x849618
 5902 0x6c92400 0x89d000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
 3901 0x6c89a00 0x893000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
 3900 0x6c92c00 0x87b000 32767   206   206  000184  3  netbsd  httpd
                                                        netcon 0x6c8cd22
 3896 0x6c7fa00 0x890000 32767   206   206  000184  3  netbsd  httpd
                                                        netcon 0x6c8cd22
 3893 0x6c7f600 0x881000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
 3892 0x6c89400 0x87e000 32767   206   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
  230 0x6c6d400 0x854000   0     1     1  004084  3  netbsd  getty
                                                        nanosleep 0xefeb4
  228 0x6c6d000 0x88c000   0     1   228  000084  3  netbsd  afpd
                                                        select 0xf5da0
  211 0x6c5b000 0x877000   0     1   211  001084  3  netbsd  atalkd
                                                        select 0xf5da0
  206 0x6c5b200 0x871000   0     1   206  000104  3  netbsd  httpd
                                                        0x6c6bf00
  203 0x6c5ba00 0x86e000   0     1   203  000084  3  netbsd  sshd
                                                        select 0xf5da0
  196 0x6c14000 0x86a000   0     1   196  000084  3  netbsd  inetd
                                                        select 0xf5da0
  181 0x6c5be00 0x867000   0     1   181  000184  3  netbsd  sendmail
                                                        select 0xf5da0
  159 0x6c5bc00 0x864000   0     1   159  000184  3  netbsd  cron
                                                        nanosleep 0xefeb4
  157 0x6c14200 0x861000   0     1   157  000004  3  netbsd  update
                                                        getblk 0x847830
  113 0x6c14400 0x85e000   0     1   113  000084  3  netbsd  portmap
                                                        select 0xf5da0
   98 0x6c14800 0x85a000   0     1    98  000004  3  netbsd  syslogd
                                                        biowait 0x847830
    2 0x6c14e00 0x851000   0     0     0  000204  3  netbsd  pagedaemon
                                                        thrd_sleep 0xfb714
    1 0x6c11000 0x84e000   0     0     1  004084  3  netbsd  init
                                                        wait 0x6c11000
    0 0x100010 0x159000   0    -1     0  000204  3  netbsd  swapper
                                                        scheduler 0x100010

-----

To my untrained and unaided eye, I see too many instances of inetd. (The
httpd count is a bit high too, but reasonable considering my Apache setup
and server load.) Weirdness in inetd would account for weirdness in
inetd-managed services... but what sort of weirdness is this? I don't know
how to track it down. The only bit of data I can determine is that the
problem seems to arise after about 2 days of uptime.

Any ideas? I am well beyond my expertise on this one. :(

-- 
Technological progress is like an axe in the hands of a pathological
criminal.
     -- Albert Einstein