🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Ulf Noren Thu, 26 Sep 1996 00:00
Problem with sharedactive on linux
#11177
Author: Ulf Noren
Date: Thu, 26 Sep 1996 00:00
29 lines
1535 bytes
I running inn1.4unoff4 under linux v2.0.21 with the 
latest libc's etc. It works very well but now I wanted
to install the shared active patch to make it even better...

No problem with installing it. It even works, to begin with.
After a couple of hours and 30-50 connections nnrpd begins
hanging on "connect". If I telnet to it I dont get the
usual greeting. It  just hangs. This leads to people
reconnecting over and over and eventually the proc table
gets full. 
I can't find anything in the logs except connections.
I guess it hangs when nnrpd tries to create the
grouplist.

Anyone have any ideas on  whats happening here?
FAQ's etc doesn't tell a thing.

/Ulf

-- 
Ulf Noren, Systems engineer   | Phone: +46 (0)66057899
Mid Sweden University         | Fax  : +46 (0)66057805
Dept of Industrial technology | Email: Ulf.Noren@ind.mh.se
Jarnvagsgatan 3               | <URL:http://www.ind.mh.se>
S-891 18 Ornskoldsvik, Sweden | <URL:http://www.ind.mh.se/~ulf>


Re: Problem with sharedactive on linux
#11174
Author: Chris Adams
Date: Thu, 26 Sep 1996 00:00
36 lines
2198 bytes
In article <52er05$b2a@skarjeke.ind.mh.se>, Ulf Noren <ulf@ind.mh.se> wrote:
>I running inn1.4unoff4 under linux v2.0.21 with the 
>latest libc's etc. It works very well but now I wanted
>to install the shared active patch to make it even better...
>
>No problem with installing it. It even works, to begin with.
>After a couple of hours and 30-50 connections nnrpd begins
>hanging on "connect". If I telnet to it I dont get the
>usual greeting. It  just hangs. This leads to people
>reconnecting over and over and eventually the proc table
>gets full. 
>I can't find anything in the logs except connections.
>I guess it hangs when nnrpd tries to create the
>grouplist.

I just had the same great idea - use the shared active patch to make
news better (reduce memory usage/swapping/load).  I am running
inn1.4unoff4 under Linux kernel 2.0.9.

I got the exact same results (except I got 30-50 connections in the
first 30 minutes to an hour :-).

I used the "new" shared active patch from Dave Barr's page.
I have my config setup to MMAP the active file and to use Unix domain
sockets.  My active file is about 1.2 meg and has almost 29,000 groups
in it (I need to get rid of some of the non-local heirarchies I know).
I had to up the numbers in the shared active patch to match this.  Is
that the correct thing to do?
-- 
Chris Adams - cadams@ro.com - System Admin - Renaissance Internet Services
"So, if anybody wants to have hardware sent to them: don't call me, but
instead write your own unix operating system.  It has worked every time
for me." - Linus Torvalds, author of Linux (Unix-like) OS

Re: Problem with sharedactive on linux
#11233
Author: Chris Adams
Date: Sun, 29 Sep 1996 00:00
17 lines
1307 bytes
In article <52mb8o$qko@papaioea.manawatu.gen.nz>,
Alan Brown <alan@papaioea.manawatu.gen.nz> wrote:
>The bug is elsewhere, believe it or not.
>
>Update your syslog to sysklogd-1.3 and things should behave again.

Well, if there is a bug there, it is not what is causing my problems.  I
am already running sysklogd 1.3.  I still get new in.nnrpd processes
getting stuck in 'connect'.
-- 
Chris Adams - cadams@ro.com - System Admin - Renaissance Internet Services
"So, if anybody wants to have hardware sent to them: don't call me, but
instead write your own unix operating system.  It has worked every time
for me." - Linus Torvalds, author of Linux (Unix-like) OS

Re: Problem with sharedactive on linux
#11238
Author: Greg Rumple
Date: Mon, 30 Sep 1996 00:00
42 lines
2715 bytes
hj@globecom.net wrote:
: On 30 Sep 1996, Alan Brown wrote:
: > 
: > The bug is elsewhere, believe it or not.
: > 
: > Update your syslog to sysklogd-1.3 and things should behave again.
: > 
: > FWIW I have XSEM_UNDO set to SEM_UNDO rather than 0, but this was done 
: > well before I discovered that the real bug was elswhere and I haven't 
: > gotten round to setting it back to test if it'll still work.
: 
: Are you sure? Because this behaviour don't start unless you apply the
: shared-active patch. So the bug is at least introduced in the
: shared-active patch. I will look at that syslogd-1.3 though.
: 

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.

Thanks in advance

-- 
|-----------------------------------------------------|
|  Greg Rumple                     grumple@magg.net   |
|                                                     |
|  M.A.G. Information Services System Administrator   |
|                                                     |
| http://www.magg.net  South Florida's I-Net Provider |
|  (561) 964-9841           Accounts from 19.95       |
|-----------------------------------------------------|


Re: Problem with sharedactive on linux
#11244
Author: Fu Bar
Date: Mon, 30 Sep 1996 00:00
31 lines
2159 bytes
On Mon, 30 Sep 1996, Fu Bar wrote:

> 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.
>
> 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.

Ok...several hours later, in.nnrpd with the shared active patch crapped
out.  Normally, I have about 16 or less readers.  I just checked the
server and had 67 copies of in.nnrpd loaded, most of which seemed
non-functional.  Trying to telnet to port 119 gave this:

503 NNTP server unavailable. Try later.
Connection closed by foreign host.

The odd thing was that doing an strace -p on one of the hung in.nnrpd's
would cause that in.nnrpd to die.


Re: Problem with sharedactive on linux
#11261
Author: hj
Date: Mon, 30 Sep 1996 00:00
26 lines
1767 bytes
On 30 Sep 1996, Alan Brown wrote:
> 
> The bug is elsewhere, believe it or not.
> 
> Update your syslog to sysklogd-1.3 and things should behave again.
> 
> FWIW I have XSEM_UNDO set to SEM_UNDO rather than 0, but this was done 
> well before I discovered that the real bug was elswhere and I haven't 
> gotten round to setting it back to test if it'll still work.

Are you sure? Because this behaviour don't start unless you apply the
shared-active patch. So the bug is at least introduced in the
shared-active patch. I will look at that syslogd-1.3 though.

Henrik Johansson


 -----=<->=-----=</>=-----=<->=-----=<|>=-----=<->=-----=<\>=-----=<->=-----
  Henrik Johansson     email: hj@globecom.net      tel: +46 (0)31-775 00 90   
   Systems Manager   mobile: +46 (0)706-25 15 45   fax: +46 (0)31-775 00 85
  GlobeCom Network "When communicating is your need"   http://globecom.net/
 -----=<->=-----=<\>=-----=<->=-----=<|>=-----=<->=-----=</>=-----=<->=-----


Re: Problem with sharedactive on linux
#11263
Author: Alan Brown
Date: Mon, 30 Sep 1996 00:00
26 lines
1613 bytes
In article <52etrh$6dk@sh1.ro.com>, Chris Adams <cadams@sh1.ro.com> wrote:
>In article <52er05$b2a@skarjeke.ind.mh.se>, Ulf Noren <ulf@ind.mh.se> wrote:

>>No problem with installing it. It even works, to begin with.
>>After a couple of hours and 30-50 connections nnrpd begins
>>hanging on "connect". If I telnet to it I dont get the

>I got the exact same results (except I got 30-50 connections in the
>first 30 minutes to an hour :-).

The bug is elsewhere, believe it or not.

Update your syslog to sysklogd-1.3 and things should behave again.

FWIW I have XSEM_UNDO set to SEM_UNDO rather than 0, but this was done 
well before I discovered that the real bug was elswhere and I haven't 
gotten round to setting it back to test if it'll still work.

AB

-- 
One net to rule them all, one net to find them, one net to bring them all,
using Unix to bind them.

Re: Problem with sharedactive on linux
#11265
Author: 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.



Re: Problem with sharedactive on linux
#11304
Author: Alan Brown
Date: Tue, 01 Oct 1996 00:00
12 lines
1167 bytes
On Mon, 30 Sep 1996 hj@globecom.net wrote:

> Are you sure? Because this behaviour don't start unless you apply the
> shared-active patch. So the bug is at least introduced in the
> shared-active patch. I will look at that syslogd-1.3 though.

It'll also manifest itself if you're running low traffic nntplinks.

AB

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