🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41306

Re: NoCeM & INN2.3

#41306
From: bill davidsen
Date: Thu, 04 Nov 1999 00:00
34 lines
2421 bytes
In article <slrn821emt.edk.andrew+news@uk21.supernews.com>,
Andrew <andrew@supernews.com> wrote:

| The main problem with fcntl and threads is that fcntl locks don't
| work between threads in the same process; any lock acquired via
| fcntl belongs to the whole process, not to the calling thread.

I assume you mean user level threads (MIT style) rather than kernel
thread (Linux style). But the problem is there for sure.

| I've used SysV semaphores for some fairly demanding applications (in
| a former life, doing non-Usenet stuff). The system call overhead was
| not a major issue in those cases; in fact, the ability to recover
| from a process failure without deadlocks was well worth the cost in
| that particular application. (Which, incidentally, was a record
| locking and transaction management system built on top of an existing
| ISAM-style database, so I do have some experience in this field.)

Running ctxbench (a context switching benchmark) I see 15k+
switches/sec on an old Pentium 90 using semiphores, that number being
switch to other process and back to the counting process, so it's
arguably off by two. In any case probably a hint that it would be fast
enough for news at the moment. Obviously the numbers are higher on real
computers.

I think this is a good (read as fast and portable) IPC to consider.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Technical Details
Message-ID: <7vt2nm$dkv$1@newssvr02.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: <3819A774.9C57FDCA@boerde.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <slrn821emt.edk.andrew+news@uk21.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <7vt2nm$dkv$1@newssvr02.news.prodigy.com>
Subject: Re: NoCeM & INN2.3
Date: Thu, 04 Nov 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <3819A774.9C57FDCA@boerde.de> <ylg0yomrmj.fsf@windlord.stanford.edu> <7vpog2$2qm$1@nnrp1.deja.com> <slrn821emt.edk.andrew+news@uk21.supernews.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: 544581031
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr02.news.prodigy.com 941755958 13983 199.4.137.118 (4 Nov 1999 22:52:39 GMT)
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com