Article View: news.software.nntp
Article #39892Re: news spool area exported from NFS
From: Russ Allbery
Date: Wed, 15 Sep 1999 00:00
Date: Wed, 15 Sep 1999 00:00
30 lines
2081 bytes
2081 bytes
Brad Knowles <brad@shub-internet.org> writes: > Jeremy <jeremy@exit109.com> wrote: >> Cleanfeed also uses significantly more CPU running on Cyclone than it >> does running on INN. > Is that because you have to suck in the entire article via stdin, as > opposed to using the INN perl interface? Well, for one thing, given the Cyclone interface to the Perl filters, you have to make at least two complete copies of the article to get it to the filter. (One into kernel memory or something equivalent to write it to the pipe and one back from there into user memory in the filter to read it from the pipe.) INN prior to 2.3 does a single copy of the article with a single memory allocation. INN 2.3 and later doesn't copy the article at all. This is primarily noticeable with large articles, of course; if you're not taking in binaries, or not sending binaries through the filter, it's not particularly exciting. If you are sending binaries through the filter though, even if the filter just does an immediate return, reducing the number of copies from one to zero gave me a 17% performance increase on a feed that isn't particularly binary-rich. Copying through a protection boundary is likely to be even more expensive. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylwvtrk8ps.fsf@windlord.stanford.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-mailReferences:
<7rhmg7$gmh$1@coco.singnet.com.sg> <ylhfkxov3q.fsf@windlord.stanford.edu> <wkbtb4wig1.fsf@shoggoth.rlyeh.net> <ylg10fom2j.fsf@windlord.stanford.edu> <ru0bmrro1iv15@news.supernews.com> <brad-1609990210150001@dialup880.brussels2.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <ylwvtrk8ps.fsf@windlord.stanford.edu> Subject: Re: news spool area exported from NFS Date: Wed, 15 Sep 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <7rhmg7$gmh$1@coco.singnet.com.sg> <ylhfkxov3q.fsf@windlord.stanford.edu> <wkbtb4wig1.fsf@shoggoth.rlyeh.net> <ylg10fom2j.fsf@windlord.stanford.edu> <ru0bmrro1iv15@news.supernews.com> <brad-1609990210150001@dialup880.brussels2.skynet.be> 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: 525654637 Organization: The Eyrie Newsgroups: news.software.nntp