🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Peter Miles Mon, 25 Mar 1996 00:00
nnrpd sharedactive patch stops accepting connections
#6003
Author: Peter Miles
Date: Mon, 25 Mar 1996 00:00
33 lines
1640 bytes
Hi,

I'm using the nnrpd sharedactive patch from INN1.4 UNOFF4 and have come across
a problem.

When more than about 130 users are connecting to the news server at once,
nnrpd ceased to start up correctly. If you telnet to port 119, it just sits
there waiting (telnet gets through, but the nnrp banner is not printed, and
no nntp commands can be run) and "ps -ax" just shows "connect" for any new 
sessions (existing sessions appear to continue to work). No errors in syslog 
or any of the news logs.

It APPEARS that even if some of the working sessions go away, new nnrpd sessions
will still not start properly.

I end up with loads of nnprd "connect" processes sitting in memory.

Is there some limit with shared memory (or another resource) that my system 
could be hitting which may cause this?

I've tried compiling with XSEM_UNDO set to 0 and SEM_UNDO but this
happens both ways.

The machine is running BSDI 2.01 with plenty of memory (128MB).

All comments and/or suggestions gratefully received!

		-- Pete
-- 
Pete Miles			pmiles@dircon.co.uk
				...pipex!dircon!pmiles

Re: nnrpd sharedactive patch stops accepting connections
#6066
Author: michael butler
Date: Wed, 27 Mar 1996 00:00
21 lines
1201 bytes
Peter Miles (pmiles@tdc.dircon.co.uk) wrote:

: I'm using the nnrpd sharedactive patch from INN1.4 UNOFF4 and have come
: across a problem.

 [ .. ]

: When more than about 130 users are connecting to the news server at once,
: nnrpd ceased to start up correctly.

I didn't quite have this problem (I don't have that many readers) but it
will, intermittently, just stop and hog the CPU :-(.

I should also add that the "robustness" patch for innxmit posted in here
recently does almost the same thing .. stops sending and hogs the CPU until
either a) I notice and kill it or b) the trnsfer timeout elapses,

	michael


Re: nnrpd sharedactive patch stops accepting connections
#6086
Author: Mike Bird
Date: Thu, 28 Mar 1996 00:00
27 lines
1539 bytes
imb@asstdc.scgt.oz.au (michael butler) wrote:

>I should also add that the "robustness" patch for innxmit posted in here
>recently does almost the same thing .. stops sending and hogs the CPU until
>either a) I notice and kill it or b) the trnsfer timeout elapses,

>	michael

Would very much appreciate any details you can supply, e.g. OS
version.  Do you have any indication as to whether it is the
"robustness" patch or the same problem that causes your NNRPD to loop?

The only way I see for the "robustness" patch to hog CPU is if a bug
in TCP's select reports input ready or output buffer space free when
it is not.  Running with "-d" should show if this is the case.

TIA,

--Mike

----------------------------------------------------------
 Mike Bird          Tel: 209-742-5000   FAX: 209-966-3177
 President          POP: 209-742-5333   NOC: 209-742-9979 
 Iron Mtn Systems      http://www.ims.mariposa.ca.us/


Re: nnrpd sharedactive patch stops accepting connections
#6087
Author: Operator
Date: Thu, 28 Mar 1996 00:00
30 lines
2003 bytes
I had a problem like this with the shared memory patch also..Added some
debugging code to it, and it seemed to get in this state when a nnrpd
process would be terminated without releasing the lock and the new processes
would just sit there and wait to obtain a lock on the shared memory.
I hacked it to work by removing all the locks and haven't yet
had a problem with corrupting the shared memory area (fingers crossed)
but probably the best way to fix it though would be to add a timeout
period when getting the lock, so that after X time waiting to obtain a lock
it would go ahead and assume the current one was stale and remove it..

YMMV
-Luke
Peter Miles (pmiles@tdc.dircon.co.uk) wrote:

: I'm using the nnrpd sharedactive patch from INN1.4 UNOFF4 and have come across
: a problem.

: When more than about 130 users are connecting to the news server at once,
: nnrpd ceased to start up correctly. If you telnet to port 119, it just sits
: there waiting (telnet gets through, but the nnrp banner is not printed, and
: no nntp commands can be run) and "ps -ax" just shows "connect" for any new 
: sessions (existing sessions appear to continue to work). No errors in syslog 
: or any of the news logs.

: It APPEARS that even if some of the working sessions go away, new nnrpd sessions
: will still not start properly.

: I end up with loads of nnprd "connect" processes sitting in memory.

Re: nnrpd sharedactive patch stops accepting connections
#6104
Author: Piers Cawley
Date: Thu, 28 Mar 1996 00:00
26 lines
1501 bytes
In article <4j8v94$rbj@asstdc.scgt.oz.au>,
	imb@asstdc.scgt.oz.au (michael butler) writes:
>Peter Miles (pmiles@tdc.dircon.co.uk) wrote:
>
>: I'm using the nnrpd sharedactive patch from INN1.4 UNOFF4 and have come
>: across a problem.
>
> [ .. ]
>
>: When more than about 130 users are connecting to the news server at once,
>: nnrpd ceased to start up correctly.
>
>I didn't quite have this problem (I don't have that many readers) but it
>will, intermittently, just stop and hog the CPU :-(.

Ah... I'm not the only person to have had this then. Linux 1.2.13,
libc-4.6.27.

-- 
   Piers Cawley - Systems Sheriff on the Frontier Internet Service
	    Purveyors of fine connections to the Internet
	  0D 02 A0 20 54 E0 60 02   2B 77 F8 D1 8B EB 3F 36
     finger pdcawley@mercury.ftech.net for PGP key and Geek Code


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