🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18834

Re: actived

#18834
From: Joe Greco
Date: Sat, 28 Jun 1997 00:00
45 lines
2780 bytes
In news.software.nntp article <5ou6lb$1bm@dfw-ixnews1.ix.netcom.com>, bugs@freebsd.netcom.com (Mark Hittinger) wrote:
:"R. Joyner" <rjoyner@ais.net> writes:
:>> > fcntl(5, F_SETLK, 0xEFFFF284)                   Err#11 EAGAIN
:>> You haven't said what file is descriptor 5.  fcntl will get an EAGAIN if
:>> it tries to work on an already-locked file, so it would help if you could
:>> tell what file is open as number 5.  Methinks this might have something to
:>> do with my replacement of the daemon() call with a fork().
:>It looks like FD 5 is the active file...I'm going to have to truss it
:>again to make sure.  The man page for fcntl() is a bit vague on which
:
:This would make a lot of sense.  I tested actived under very heavy load
:a couple of weeks ago and it eventually hung.  I also logged a lot of
:errors from nnrpd's receiving packets with a sequence id that they were
:not expecting.

I get one or two of those a day.

There's some test code in the directory, one of the programs (I think)
allows you to bash on actived...  I can get it to do well over a thousand
requests per second here.  The average workload for 150 clients seems to
be in the mid to upper double digits...  which doesn't really count as
very high load.

:This is under Solaris 2.5.  It may be that the actived use of udp packets
:really isn't going to work under load on Solaris.  I'm worried about dropped
:packets under load.  Haven't done enough work on it to be sure yet.
:
:We are working on a different technique that involves nnrpd mmap'ing the 
:active file and mmap'ing a pre-built hash file (i.e., actived just creates
:a hash file for the nnrpd's).

That works too, but I don't know, I just didn't like the technique in
general.  This also lets me see how much memory I'm _really_ using, one
of my many little gripes about mmap-sharing of data.

:I also am very appreciative of Joe's work (and anyone else stubborn enough
:to continue working on inn :-) ).

You seen my control/cancel stuff yet?  (That's an olllldddddd patch - but
it seems applicable these days).

... JG

Technical Details
Message-ID: <5p40tt$goc$1@earth.execpc.com>
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: <33A6B41D.3382@iconnet.net> <5os14e$c87$1@synthemesc.insync.net> <33B29529.6C34@ais.net> <5ou6lb$1bm@dfw-ixnews1.ix.netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <5p40tt$goc$1@earth.execpc.com>
Subject: Re: actived
Date: Sat, 28 Jun 1997 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <33A6B41D.3382@iconnet.net> <5os14e$c87$1@synthemesc.insync.net> <33B29529.6C34@ais.net> <5ou6lb$1bm@dfw-ixnews1.ix.netcom.com>
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: 253431860
Sender: jgreco@earth.execpc.com
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp