Article View: news.software.nntp
Article #34935Re: NNTP revision - it's about time?
From: Andrew Gierth
Date: Fri, 22 Jan 1999 00:00
Date: Fri, 22 Jan 1999 00:00
32 lines
2159 bytes
2159 bytes
>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes: [apache's preforking trick] bill> I've never been sure that was a good idea, either, at least on bill> all systems. You might want to look at Stevens UNP (2nd ed) volume 1, which has some comparisons of this kind of thing. bill> The overhead of a fork is basically copying the page tables and bill> setting the copy on write bit as you go. While the overhead of bill> passing a socket is low, I'm not sure in practice it matters. No passing of sockets is required (or used) in the apache model. Each preforked server does its own calls to accept(). (Some systems require locking around the accept calls, some don't.) bill> In theory it would be a big win if you had socket passing but bill> not a working vfork(), You seem to be misunderstanding vfork(), which is bugger-all use for the nnrpd-daemon situation (it's only ever useful if you're going to immediately follow the fork with an exec() call, because it suspends the parent process until either that happens or the child dies.) You need a full-blown fork() in this case. -- Andrew.
Technical Details
Message-ID:
<87g1939f3h.fsf@erlenstar.demon.co.uk>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-mailReferences:
<77nr30$15t$1@taliesin.netcom.net.uk> <77qfel$kb@meow.invalid> <782g8m$ardu$1@newssvr03-int.news.prodigy.com> <slrn7a9u1l.pgt.meowing@meowhost.meow.invalid> <78annp$8pac$1@newssvr03-int.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <87g1939f3h.fsf@erlenstar.demon.co.uk> Subject: Re: NNTP revision - it's about time? Date: Fri, 22 Jan 1999 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <77nr30$15t$1@taliesin.netcom.net.uk> <77qfel$kb@meow.invalid> <782g8m$ardu$1@newssvr03-int.news.prodigy.com> <slrn7a9u1l.pgt.meowing@meowhost.meow.invalid> <78annp$8pac$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 X-Deja-AN: 435771700 X-Mayan-Date: Long count = 12.19.5.15.16; tzolkin = 3 Cib; haab = 9 Muan X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.01 alpha