🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38612

Re: Submitting to Freenix

#38612
From: bill davidsen
Date: Mon, 12 Jul 1999 00:00
79 lines
4874 bytes
In article <931605626-1026466000-1@dp-news.maxwell.syr.edu>,
Chris Sedore <cmsedore@maxwell.syr.edu> wrote:
| 
| bill davidsen wrote in message
| <7lu3k8$2m0a$1@newssvr03-int.news.prodigy.com>...

| >I'm certainly interested, assuming that this process generates enough
| >tracks. one of the problems I face is that non-INN solutions don't
| >always leave a good audit trail. INN babbles enough to add measurable
| >overhead, but I can always tell if and when I got a message-id, if
| >someone else offered it to me later, and to which queues it was added.
| >
| >This saves more time placating management than debugging, but it's
| >useful for both.
| 
| This isn't too difficult to address, though some of us would want it to be
| setable.  I don't pay quite that level of attention to news flows, and would
| be happy not to pay the CPU and IO price for that level of detail.

Settable logging, by feature rather than someone's idea of levels, would
be great. I wouldn't even complain if they could be disabled at compile
time to avoid even the overhead of checking a flag. But at some
installations I really have a requirement to be able to track in and out
by message-id. On others I have no such interest. I'm not sure how much
overhead logging generates as a percentage, but I suspect the answer is
not much.

| >You could probably find a user level threads for Linux, but it isn't in
| >any of the regular libraries which use the kernel threads. I don't know
| >about maturity, all the posix threads apps I have work as I got them.
| 
| Well last I looked at Linux kernel threads (about 6-8 months ago), they were
| the ugly stepchildren.  I (ahem) keep waiting for Unix to catch up with NT
| on this front.  I know that FreeBSD (and think that Linux) threads are
| actually just processes that share vm and fds.  This is somewhat less
| efficient that true threads.  I'll have to look again at Linux.

I think you may be right, but I'm not sure this is bad. Having yet
another level of cpu dispatch may be conceptually elegant, but there
were some measurements of overhead from fork() vs. thread init, and of
context overhead with several threads sharing data with various methods
of IPC, and there was not much to choose there.

| This is actually a good thing from an efficiency standpoint.
| Response/scheduling problems are probably more a result of blocking calls in
| the processing loop that happens after a socket has been flagged than
| because of select().  You have to have quite a number of descriptors to
| select() with a non-blocking loop before I would expect scheduling to be a
| major problem (like 300-400).

Someone posted a note taken from real data which indicated that separate
processes were faster and lower overhead at a much lower number, like
12-15. I didn't save it, and it wasn't my measurement, but I don't think
select() is low overhead inherently, since it checks a lot of
descriptors and the cost goes up linearly or worse with the number of
descriptors open.

Original poster of the data please chime in if you see this.


| >I played with splitting innd with fork() for certain operations, and the
| >overhead was well worth it using SMP. The reliability and portability
| >were what you expect in a proof of concept, but I did see enough to
| >suggest that gains can be made.
| 
| I've thought about modifying innd so that just the article writes were done
| with aio.  This might be doable and should resolve the scheduling problem,
| modulo this new overview scheme which would require a fair bit more work for
| the same result.

Multiple solutions are nice, they give the next implementor a chance to
pick a different set of solutions to the news problem set.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.

Technical Details
Message-ID: <7md5ts$tgi$1@newssvr03-int.news.prodigy.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: <7g24e7$ckh$1@info.cs.uofs.edu> <9303290311991906734-1@dp-news.maxwell.syr.edu> <7lu3k8$2m0a$1@newssvr03-int.news.prodigy.com> <931605626-1026466000-1@dp-news.maxwell.syr.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7md5ts$tgi$1@newssvr03-int.news.prodigy.com>
Subject: Re: Submitting to Freenix
Date: Mon, 12 Jul 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7g24e7$ckh$1@info.cs.uofs.edu> <9303290311991906734-1@dp-news.maxwell.syr.edu> <7lu3k8$2m0a$1@newssvr03-int.news.prodigy.com> <931605626-1026466000-1@dp-news.maxwell.syr.edu>
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: 500161092
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 931797756 30226 199.4.137.118 (12 Jul 1999 16:42:36 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 12 Jul 1999 16:42:36 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com