🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11265

Re: Problem with sharedactive on linux

#11265
From: Fu Bar
Date: Mon, 30 Sep 1996 00:00
37 lines
2863 bytes
On 30 Sep 1996, Greg Rumple wrote:

> Well after reading these messages I to got brave enough to install the sharedactive patch on
> my quite stable inn1.4unoff4 installation.  I applied the patch with no problems, modified the
> #defines at the top since my active file is about 1.4 megs in size, and I carry about 28000+
> groups to allow for a active file of 2000000 bytes and 40000 groups.  I rebuilt and installed
> it and no readers can connect (it just hangs at connect).  I then rebuilt with XSEM_UNDO
> defined as SEM_UNDO instead of 0 and got the exact same behaviour.  This is on a system that
> has sysklogd-1.3 installed (running redhat 3.0.3 with all updates applied).  I then went back
> to my original install and all is well again (besides the fact that I have to have 256 megs of
> ram since each in.nnrpd process has a RSS footprint of 2.5 megs).  So if anyone knows how to
> fix this let me know, because I would kill to have this.  Oh the kernel is 2.0.0.

Get a better line wrapping news client.  I just decided to try
shared-active again, and used the following settings:

+ #  define MAX_ACTIVE_SIZE     800000  /* Max size of active file*/
+ #  define MAX_GROUPS          30000   /* Max number of groups in active*/
+ #  define RELOAD_DELAY        30      /* min #secs before reloading
                                           active */
+ #  define XSEM_UNDO           0       /* Don't use kernel undo*/

So far (only a few minutes), it seems to work.  My active is 645k and has
14783 groups.  Maybe I should increase active_size to more like 1mb.

Here's what unshared and shared nnrpd's look like:
  PID TTY MAJFLT MINFLT   TRS   DRS  SIZE  SWAP   RSS  SHRD   LIB  DT COMMAND
 5538  ?      79    296    52  1120  1592   152  1440   876   268 298 -port-
 5067  ?    1483    303    56  1148  1468     0  1468   244   264 305 -port-

I'm running Linux 2.0.21 all a.out.  I've tried sysklogd 1.3 and it was
unreliable, so I'm using 1.2 (or something) and plan to try 1.3.3 soon.



Technical Details
Message-ID: <Pine.LNX.3.95.960930171654.214q-100000@yoda.fdt.net>
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
References: <52er05$b2a@skarjeke.ind.mh.se> <52etrh$6dk@sh1.ro.com> <52mb8o$qko@papaioea.manawatu.gen.nz> <Pine.OSF.3.95.960930120706.4713F-100000@via.one.se> <52ombq$954@dopey.magg.net>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.95.960930171654.214q-100000@yoda.fdt.net>
Subject: Re: Problem with sharedactive on linux
Date: Mon, 30 Sep 1996 00:00:00 +0000
From: Fu Bar <fubar@gnv.fdt.net>
References: <52er05$b2a@skarjeke.ind.mh.se> <52etrh$6dk@sh1.ro.com> <52mb8o$qko@papaioea.manawatu.gen.nz> <Pine.OSF.3.95.960930120706.4713F-100000@via.one.se> <52ombq$954@dopey.magg.net>
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: 186305739
Distribution: inet
X-sender: fubar@yoda.fdt.net
Content-type: TEXT/PLAIN; charset=US-ASCII
Organization: Florida Digital Turnpike
Mime-version: 1.0
Newsgroups: news.software.nntp