🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Geoff Gibbs Thu, 12 Nov 1998 00:00
INN 2.x slower than 1.5.1 ?
#32908
Author: Geoff Gibbs
Date: Thu, 12 Nov 1998 00:00
173 lines
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

Re: INN 2.x slower than 1.5.1 ?
#32878
Author: Katsuhiro Kondou
Date: Thu, 12 Nov 1998 00:00
15 lines
1431 bytes
In article <72ecb3$qo1$1@niobium.hgmp.mrc.ac.uk>,
	ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) wrote;

} 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 suspect you're running non-tagged hash.  If so,
see the description of '--enable-tagged-hash' in
INSTALL.
-- 
Katsuhiro Kondou

Re: INN 2.x slower than 1.5.1 ?
#32905
Author: Thomas Vandahl
Date: Thu, 12 Nov 1998 00:00
24 lines
1638 bytes
On 12 Nov 1998 10:12:51 GMT, Geoff Gibbs wrote:
>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.

AFAIK, the Solstice Disk Suite that you are probably using for 
striping and mirroring uses a lot of system resources and brings
you IO-performance down. Especially when mirroring, this is a real
show-stopper.

I strongly recommend going with cnfs, which completely removes the
file system overhead *and* DiskSuites overhead and makes your
machine fly again.

More memory will help, of course. But my Ultra5 runs a full feed
(without *binaries*, about 200000 Articles / 500 MB/day) with 128 MB
RAM just fine.

Bye, Thomas.
-- 
Thomas.Vandahl@Contec-DT.DE                       contec Datentechnik GmbH
[Team OS/2 #505]                         Auf dem Steine 1, D-98693 Ilmenau

Re: INN 2.x slower than 1.5.1 ?
#32912
Author: Geoff Gibbs
Date: Thu, 12 Nov 1998 00:00
25 lines
1744 bytes
In article <72ef23$9ap$1@inn.do.mms.mt.nec.co.jp>,
	Katsuhiro Kondou <kondou@uxd.fc.nec.co.jp> writes:
> In article <72ecb3$qo1$1@niobium.hgmp.mrc.ac.uk>,
> 	ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) wrote;
> 
> } Is there
> } any reason why 2.1 is so much slower than 1.5.1, ...
> 
> I suspect you're running non-tagged hash.  If so,
> see the description of '--enable-tagged-hash' in
> INSTALL.

You are correct. I have managed to reconfigure my test server in
this way, but is it possible to do this without re-running configure?
Can one just edit config/config.data and then do a make in an
apropriate directory? I think that I would then just need to
re-do the history files with makehistory?

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

Re: INN 2.x slower than 1.5.1 ?
#32933
Author: Katsuhiro Kondou
Date: Fri, 13 Nov 1998 00:00
16 lines
1662 bytes
In article <72f54c$6vp$1@niobium.hgmp.mrc.ac.uk>,
	ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) wrote;

} You are correct. I have managed to reconfigure my test server in
} this way, but is it possible to do this without re-running configure?
} Can one just edit config/config.data and then do a make in an
} apropriate directory? I think that I would then just need to
} re-do the history files with makehistory?

As for switching tagged hash, it can be done with editing
config/config.data.  But don't forget to make clean.  And
then you just rebuild dbz files with makehistory.
-- 
Katsuhiro Kondou

Re: INN 2.x slower than 1.5.1 ?
#32984
Author: Geoff Gibbs
Date: Tue, 17 Nov 1998 00:00
64 lines
3384 bytes
In article <72ef23$9ap$1@inn.do.mms.mt.nec.co.jp>,
	Katsuhiro Kondou <kondou@uxd.fc.nec.co.jp> writes:
> In article <72ecb3$qo1$1@niobium.hgmp.mrc.ac.uk>,
> 	ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) wrote;
> 
> } Is there
> } any reason why 2.1 is so much slower than 1.5.1, 

> I suspect you're running non-tagged hash.  If so,
> see the description of '--enable-tagged-hash' in
> INSTALL.

Yes! I have reconfigured it, as it says I should in INSTALL.

The result is quiet impressive. I have seen expire take 14 hours.
Last night it took 14 minutes. (To recap, I only have 128 MB memory).
For comparison I give you 2 successive Mondays 11.5 hours and 14 minutes

----------------
Expire messages:
expire begin Mon Nov  9 23:13:15 GMT 1998: (-v1 -z/opt/news/log/expire.rm -Z/opt/news/log/expire.lowmark)
    Article lines processed   905603
    Articles retained         759180
    Entries expired           146423
    Files unlinked            161119
    Old entries dropped       209271
    Old entries retained     4898744
expire end Tue Nov 10 10:34:27 GMT 1998
	all done Tue Nov 10 10:34:27 GMT 1998
lowmarkrenumber begin Tue Nov 10 10:34:31 GMT 1998: (/opt/news/log/expire.lowmark)
lowmarkrenumber end Tue Nov 10 10:34:32 GMT 1998
	expireover start Tue Nov 10 10:35:09 GMT 1998
	expireover end Tue Nov 10 10:49:59 GMT 1998
	expirerm start Tue Nov 10 10:49:59 GMT 1998
	expirerm end Tue Nov 10 12:32:59 GMT 1998
----------------
Expire messages:
expire begin Mon Nov 16 23:10:15 GMT 1998: (-v1 -z/opt/news/log/expire.rm -Z/opt/news/log/expire.lowmark)
    Article lines processed   794725
    Articles retained         646284
    Entries expired           148441
    Files unlinked            167645
    Old entries dropped       424696
    Old entries retained     4484769
expire end Mon Nov 16 23:24:17 GMT 1998
	all done Mon Nov 16 23:24:17 GMT 1998
lowmarkrenumber begin Mon Nov 16 23:24:18 GMT 1998: (/opt/news/log/expire.lowmark)
lowmarkrenumber end Mon Nov 16 23:24:18 GMT 1998
	expireover start Mon Nov 16 23:24:45 GMT 1998
	expireover end Mon Nov 16 23:37:51 GMT 1998
	expirerm start Mon Nov 16 23:37:51 GMT 1998
	expirerm end Tue Nov 17 00:54:20 GMT 1998
----------------

I was thinking that I should put some more memory in, but it is now running
so nicely, that I may not bother.

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

Re: INN 2.x slower than 1.5.1 ?
#32995
Author: Geoff Gibbs
Date: Tue, 17 Nov 1998 00:00
40 lines
2507 bytes
In article <72fkvs$hs2$1@inn.do.mms.mt.nec.co.jp>,
	Katsuhiro Kondou <kondou@uxd.fc.nec.co.jp> writes:
> In article <72f54c$6vp$1@niobium.hgmp.mrc.ac.uk>,
> 	ggibbs@hgmp.mrc.ac.uk (Geoff Gibbs) wrote;
> 
> } You are correct. I have managed to reconfigure my test server in
> } this way, but is it possible to do this without re-running configure?
> } Can one just edit config/config.data and then do a make in an
> } apropriate directory? I think that I would then just need to
> } re-do the history files with makehistory?
> 
> As for switching tagged hash, it can be done with editing
> config/config.data.  But don't forget to make clean.  And
> then you just rebuild dbz files with makehistory.

This worked very smoothly. To be on the safe side I took a copy of
the 'site' directory, but the organisation of this directory seems
better than one might imagine. The 'make clean' appears to only
remove the files in 'site' which have not been edited, so that
only they are then safely replaced by the following 'make', leaving
the overall configuration still set up.

Having shutdown 'innd' I 'cded' to the 'db' directory and gave :-

makehistory -r -s `wc -l <history`

so that I then only had to 'mv' the '.{dir|index|hash}' files out of the way
and 'mv' the '.n' files into place.

It went so smoothly I wondered what I had overlooked!

Thanks for you 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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads