🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7936

Sluggish INND response?

#7936
From: Ragnar Lonn
Date: Fri, 24 May 1996 00:00
106 lines
6050 bytes
Hello everybody,

We have a problem with the newsserver at our site. It is a powerful machine
- a Sparc 20/712 (2 CPU) with 320MB RAM, a striped news spool disk array made 
out of 6 disks on two dedicated SCSI-buses, and a hardware disk cache
module - running Solaris 2.5 but its response to NNTP/NNRP connections
is very slow. INND seems to consume a lot of CPU time, and the system spends a 
lot of time waiting for I/O, according to 'top'. We have between 20 and 50
NNRP readers and four feeds of which two are streaming their data to us.
Is it the streaming that causes the server to become so slow when responding
to connections? It also seems it is slow when accepting articles and is
responding to IHAVE commands. An IHAVE-response can take between 10 and
20 seconds...

I did a truss (trace) on innd and found out it did close to 1000 lseek()
and 1000 read() system calls per second. It hardly seemed to do anything
else in fact. Is this normal?

What can we do?  Even though innd apparently lets the machine work quite
a lot it is not so heavily loaded, thanks to the oversized hardware
probably, so I have setup inetd to start nnrpd processes on port 118
so that those of our users that have newsreader clients where it is
possible to configure what portnumber to use will be able to connect
to the (nnrpd) server and read some. Most others (e.g. those using 
Netscape as a reader) will get timeouts before they manage to connect 
as it takes a minute or two (or more) for innd to start an nnrpd server.

Here is some output (bear with me :-) from various programs:
(the output from iostat is somewhat extreme)

[top]
last pid: 23651;  load averages:  0.46,  0.55,  0.67          18:15:36
56 processes:  54 sleeping, 2 on cpu
Cpu states: 16.2% idle,  3.0% user, 14.2% kernel, 66.7% iowait,  0.0% swap
Memory: 315M real, 536K free, 59M swap, 529M free swap

  PID USERNAME PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
 3884 news     -14    0   17M 3628K cpu    36.8H 25.40% 25.05% innd


[vmstat 5]
 procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr pe pe pe pe   in   sy   cs us sy id
 0 0 0   7152  2588   1  53 115 24 91 0 80  0  0  7  5  204 1488  143  8 34 58
 0 1 0 528988   792   1  82 383 19 275 0 213 0 0 14 10  293 6737  200  8 33 59
 0 0 0 528896   448   1  78 284 11 360 0 459 0 0  8  9  219 7638  160 10 35 55
 0 0 0 529156   952   0   2 252 21 64 0 74  0  0  7  8  207 6023  134  5 26 69
 0 0 0 529168   496   0   0 152 4 160 0 133 0  0  6  6  168 7200  132  5 31 65


[truss innd]
lseek(10, 0x04EC73EC, SEEK_SET)                 = 0x04EC73EC
read(10, " < - 4 l e o h n $ 2 5 4".., 56)      = 56
lseek(10, 0x051C9404, SEEK_SET)                 = 0x051C9404
read(10, " < K P u z Q E A F J e i".., 56)      = 56
lseek(10, 0x052D79BD, SEEK_SET)                 = 0x052D79BD
read(10, " < 4 m b 1 i k $ l p h @".., 56)      = 56
read(9, "05 6829205 ;DD0105 $9D J".., 56)       = 56
lseek(10, 0x05368291, SEEK_SET)                 = 0x05368291
read(10, " < 4 m 9 1 o s $ o 6 u @".., 56)      = 56
lseek(10, 0x053BDD00, SEEK_SET)                 = 0x053BDD00
<about 49900 lines out of 50000 are lseek's and read's>


[iostat -x 30]
                                 extended disk statistics
disk      r/s  w/s   Kr/s   Kw/s wait actv  svc_t  %w  %b
ptesp-sc  0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   2
ptesp-sc  0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   2
ptesp0t0  4.3  2.3   28.2   14.6 3308.5  8.4 508135.6 100  69
ptesp0t1  3.5  1.7   21.2    8.3 25.4  0.1 4905.8  80   7
ptesp0t2  4.3  2.4   27.6   15.8 -3831.1  0.6 -573551.0 100   9
ptesp1t0  3.7  1.7   21.6    8.1 26.7  0.1 5061.2  53   7
ptesp1t1  4.2  2.3   29.0   15.0 -4318.8  0.6 -664842.3 100   9
ptesp1t2  3.8  1.7   22.9    8.3 20.6  0.1 3818.3  80   7
sd0       0.0  0.1    0.5    0.7  0.0  0.0   13.1   0   0
sd3       1.2  0.5    5.6   12.7  0.0  0.0   30.1   0   2
sd7       4.3  2.3   28.2   14.6  0.0  0.5   72.4   0   9
sd8       3.5  1.7   21.2    8.3  0.0  0.1   27.6   0   7
sd9       4.3  2.4   27.6   15.8  0.0  0.6   91.2   0   9
sd14      3.7  1.7   21.6    8.1  0.0  0.1   25.8   0   7
sd15      4.2  2.3   29.0   15.0  0.0  0.6   92.1   0  10
sd16      3.8  1.7   22.9    8.3  0.0  0.1   25.1   0   7
                                 extended disk statistics
disk      r/s  w/s   Kr/s   Kw/s wait actv  svc_t  %w  %b
ptesp-sc  0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   2
ptesp-sc  0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   2
ptesp0t0  7.6  0.8   43.7    5.1 4606.0 12.2 554298.0 100 100
ptesp0t1  7.4  1.0   38.3    4.4 154.0  0.1 18350.9 100   9
ptesp0t2  8.2  0.8   42.2    5.6 8694.0  0.1 966217.3 100   9
ptesp1t0  8.0  0.7   40.7    3.4 147.0  0.1 16977.0 100   9
ptesp1t1  7.6  1.0   42.4    6.7 7931.0  0.2 929631.6 100   9
ptesp1t2  7.4  0.6   41.5    2.8 105.0  0.1 13085.7 100   8
sd0       0.0  0.2    0.0    0.9  0.0  0.0   11.3   0   0
sd3       0.7  0.5    3.2    3.1  0.0  0.0   38.2   0   2
sd4       0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd7       7.6  0.8   43.7    5.1  0.0  0.2   21.2   0   9
sd8       7.4  1.0   38.3    4.4  0.0  0.1   13.8   0   9
sd9       8.2  0.8   42.2    5.6  0.0  0.1   13.0   0  10
sd14      8.0  0.7   40.7    3.4  0.0  0.1   12.0   0   9
sd15      7.6  1.0   42.4    6.7  0.0  0.2   20.8   0   9
sd16      7.4  0.6   41.3    2.8  0.0  0.1   12.6   0   8


Technical Details
Message-ID: <4o4pif$lr1@epimetheus.algonet.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4o4pif$lr1@epimetheus.algonet.se>
Subject: Sluggish INND response?
Date: Fri, 24 May 1996 00:00:00 +0000
From: prl@algonet.se (Ragnar Lonn)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 156545156
Organization: Algonet Public Access
Nntp-posting-user: b93c87732e2a5b74093c87732e2a5b740
Newsgroups: news.software.nntp