Article View: news.software.nntp
Article #32908INN 2.x slower than 1.5.1 ?
From: Geoff Gibbs
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
173 lines
8712 bytes
8712 bytes
Since moving from INN 1.5.1 to 2.1 everything appears to be working ok
apart from being slow.We have seen slowness when a reader enters a group,
but the main effect is on expire. This is now quite variable but can
take between 1.5 to 14 hours. I also found an old report (from 1.5.1)
which took 3 minutes :-
Expire messages:
expire begin Mon Jan 5 23:40:33 GMT 1998: (-v1 -z/var/log/news/expire.rm)
Article lines processed 804013
Articles retained 479329
Entries expired 324684
Files unlinked 153242
Old entries dropped 276232
Old entries retained 2900444
expire end Mon Jan 5 23:43:22 GMT 1998
--------- 2 hours :-
Expire messages:
expire begin Fri Nov 6 23:17:33 GMT 1998: (-v1 -z/opt/news/log/expire.rm -Z/opt/news/log/expire.lowmark)
Article lines processed 903848
Articles retained 707947
Entries expired 195901
Files unlinked 219694
Old entries dropped 381722
Old entries retained 4013784
expire end Sat Nov 7 01:33:51 GMT 1998
all done Sat Nov 7 01:33:52 GMT 1998
lowmarkrenumber begin Sat Nov 7 01:33:53 GMT 1998: (/opt/news/log/expire.lowmark)
lowmarkrenumber end Sat Nov 7 01:33:53 GMT 1998
expireover start Sat Nov 7 01:34:26 GMT 1998
expireover end Sat Nov 7 01:48:46 GMT 1998
expirerm start Sat Nov 7 01:48:46 GMT 1998
expirerm end Sat Nov 7 03:33:48 GMT 1998
------------- 14 hours :-
Expire messages:
expire begin Tue Nov 10 23:14:03 GMT 1998: (-v1 -z/opt/news/log/expire.rm -Z/opt/news/log/expire.lowmark)
Article lines processed 956872
Articles retained 796402
Entries expired 160470
Files unlinked 179856
Old entries dropped 772705
Old entries retained 4542610
expire end Wed Nov 11 13:14:45 GMT 1998
all done Wed Nov 11 13:14:46 GMT 1998
lowmarkrenumber begin Wed Nov 11 13:14:49 GMT 1998: (/opt/news/log/expire.lowmark)
lowmarkrenumber end Wed Nov 11 13:14:50 GMT 1998
expireover start Wed Nov 11 13:15:19 GMT 1998
expireover end Wed Nov 11 13:30:20 GMT 1998
expirerm start Wed Nov 11 13:30:20 GMT 1998
expirerm end Wed Nov 11 14:53:40 GMT 1998
------------
Our main news server is a Sun E150 running Solaris 2.5.1. It has
128 MB memory. The disks are mirrored and the spool partition is
striped over 5 disks. I am using traditional storage.
During an expire top reports :-
last pid: 25757; load averages: 0.54, 0.43, 0.38 08:44:44
60 processes: 58 sleeping, 1 running, 1 on cpu
CPU states: 0.0% idle, 3.6% user, 10.0% kernel, 86.5% iowait, 0.0% swap
Memory: 128M real, 2112K free, 172M swap in use, 333M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
28340 news 1 33 0 96M 11M sleep 105:59 3.49% innd
15961 news 1 7 2 117M 71M run 9:51 1.96% expire
28286 news 1 10 4 4912K 3336K sleep 4:42 0.79% controlchan
28285 news 1 21 4 3528K 1808K sleep 4:27 0.47% innfeed
28283 news 1 21 4 1760K 1136K sleep 2:54 0.32% overchan
28284 news 1 21 4 1752K 1096K sleep 3:25 0.21% crosspost
I understand that with Solaris any swapping is reported in top as iowait.
The io activity looks like :-
#iostat -x
extended disk statistics
disk r/s w/s Kr/s Kw/s wait actv svc_t %w %b
fd0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 /
md1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md10 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 /usr
md11 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md12 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md20 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 /var
md21 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md22 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
md30 13.6 2.2 108.8 29.4 0.0 0.2 13.5 2 19 /opt/news
md31 6.8 2.2 54.4 29.4 0.0 0.1 13.3 0 11
md32 6.8 2.2 54.4 29.4 0.0 0.1 11.7 0 10
md40 16.6 12.4 102.2 99.4 0.2 0.4 20.3 19 29 /opt/spool
md41 8.4 12.4 50.2 99.4 0.0 0.3 12.7 0 21
md42 8.2 12.4 52.0 99.4 0.0 0.3 12.4 0 21
sd0 71.8 16.8 574.2 590.9 0.0 1.9 21.8 0 98 / + swap
sd1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
sd6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
sd17 6.8 10.0 54.4 33.3 0.0 0.2 12.1 0 18
sd18 2.2 2.2 7.2 23.8 0.0 0.1 13.1 0 5
sd19 1.2 2.8 9.0 24.2 0.0 0.1 13.9 0 5
sd20 1.6 2.8 11.8 17.2 0.0 0.0 11.3 0 5
sd22 2.2 2.6 15.8 18.8 0.0 0.1 11.1 0 5
sd23 1.2 2.0 6.4 15.4 0.0 0.0 14.8 0 4
sd24 6.8 2.2 54.4 29.4 0.0 0.1 11.6 0 10
sd25 2.2 2.2 7.8 23.8 0.0 0.1 12.4 0 5
sd26 2.4 2.8 16.0 24.2 0.0 0.1 12.7 0 6
sd27 1.0 2.8 8.2 17.2 0.0 0.0 10.5 0 4
sd28 1.4 2.6 11.2 18.8 0.0 0.1 13.5 0 5
sd29 1.4 2.0 10.4 15.4 0.0 0.0 12.3 0 4
# df -kl
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 246167 42913 178644 20% /
/dev/md/dsk/d10 492351 142720 300401 33% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d20 720199 125953 522236 20% /var
swap 418856 744 418112 1% /tmp
/dev/md/dsk/d30 4123204 1337780 2579264 35% /opt/news
/dev/md/dsk/d40 9759098 3356872 5914276 37% /opt/spool
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 1035104 680144
In writing this we spotted that we have failed to mount a second
swap partition off our second disk. It does appear that we are
suffering from a lot of swapping. Mounting the second partition
may help, but some more memory would presumably assist. Is there
a right answer for how much memory would be needed? Is there
any reason why 2.1 is so much slower than 1.5.1, or is it that
the growth in traffic has just pushed our system over the edge
into heavy swapping?
I also have a test server on my workstation. It is running
INN 2.2b2 on Solaris 2.7b (as it was then called :-) This also
has 128 MB of memory, but is only taking a very cut down feed,
and can expire in a second or two :-
Expire messages:
expire begin Thu Nov 12 03:01:02 GMT 1998: (-v1 -z/opt/news/log/expire.rm -Z/opt/news/log/expire.lowmark)
Article lines processed 9459
Articles retained 8846
Entries expired 613
Files unlinked 683
Old entries dropped 827
Old entries retained 1365
expire end Thu Nov 12 03:01:04 GMT 1998
all done Thu Nov 12 03:01:04 GMT 1998
lowmarkrenumber begin Thu Nov 12 03:01:04 GMT 1998: (/opt/news/log/expire.lowmark)
lowmarkrenumber end Thu Nov 12 03:01:05 GMT 1998
expireover start Thu Nov 12 03:01:05 GMT 1998
expireover end Thu Nov 12 03:01:08 GMT 1998
expirerm start Thu Nov 12 03:01:08 GMT 1998
expirerm end Thu Nov 12 03:01:22 GMT 1998
We plan to get Solaris 7 onto our main server asap, so that we can set the
'noatime' flag on our spool partition, so that it doesn't bother updating
the time of access on the disk every time a file is read. We think this
may help.
Geoff Gibbs
--
UK-Human Genome Mapping Project-Resource Centre,
Hinxton, Cambridge, CB10 1SB, UK
Tel: +44 1223 494530 Fax: +44 1223 494512 E-mail: G.Gibbs@hgmp.mrc.ac.uk
Technical Details
Message-ID:
<72ecb3$qo1$1@niobium.hgmp.mrc.ac.uk>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-mailShow Full Headers
Complete Article Headers
Message-ID: <72ecb3$qo1$1@niobium.hgmp.mrc.ac.uk> Subject: INN 2.x slower than 1.5.1 ? Date: Thu, 12 Nov 1998 00:00:00 +0000 From: ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) 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: 411037199 Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@hgmp.mrc.ac.uk X-Trace: niobium.hgmp.mrc.ac.uk 910865570 27393 193.62.192.79 (12 Nov 1998 10:12:51 GMT) Organization: MRC Human Genome Mapping Project Resource Centre Mime-Version: 1.0 NNTP-Posting-Date: 12 Nov 1998 10:12:51 GMT Newsgroups: news.software.nntp