Article View: news.software.nntp
Article #39977Re: news spool area exported from NFS
From: Joe Greco
Date: Sun, 19 Sep 1999 00:00
Date: Sun, 19 Sep 1999 00:00
41 lines
3190 bytes
3190 bytes
In news.software.nntp article <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com>, cmadams@fly.hiwaay.net (Chris Adams) wrote: :Once upon a time, Stephen R. van den Berg <srb@cuci.nl> said: :>Russ Allbery <rra@stanford.edu> wrote: :>>Out of curiousity, do you take a speed hit from using shared memory rather :>>than normal process-specific memory on most platforms implementing shared :>>memory? It's an aspect of IPC that I don't know a great deal about. The real answer: no, except perhaps for any mutex/locking stuff you need to do to maintain overall coherency. The speed benefit in a Usenet news operation, if any, is that you do not need to directly involve the kernel in IPC operations. And that's meaningless, except for binaries, or _maybe_ if you have a really-close-to-the-edge machine. :>No. It's even a speed boost in most cases, because the shared pages :>should be in the same cache between contexts. : :Although if you have multiple CPUs and the news feed process is running :on one CPU and the filter process is on another CPU, the pages won't be :in the CPU cache on the second CPU. If the system has a third level :cache (outside the CPUs) the pages may be there though, helping some. Oh, please. Really, this is inane. The _real_ situation is that you're going to be shuffling the data around and you're not going to make use of CPU caching even on a uniprocessor machine, because the machine is too busy thrashing around doing other things in its spare time to still have that same data in cache when the filter process comes up to run state. And nobody's going to care or be sad, because even my slowest machines have no problem moving around the 3K times 12 articles per second == 36K per second from main memory to the CPU cache, many more times per second than is needed. There are a hundred other more substantial (not to mention noticeable) factors that'll have a lot more impact on your performance. Now, if this were an application where I was moving multimegabytes per second between two processes which had the majority of CPU run time, I'd agree that you could be legitimately concerned with caching side effects of a SMP environment, because you'd be likely to notice a few percent (or maybe more) speed improvement for such details. ... JG
Technical Details
Message-ID:
<37e504a1$0$11106@news.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-mailReferences:
<7rhmg7$gmh$1@coco.singnet.com.sg> <ylvh99g3fz.fsf@windlord.stanford.edu> <7s09j5$d26$1@zeus.fw.cuci.nl> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com>Show Full Headers
Complete Article Headers
Message-ID: <37e504a1$0$11106@news.execpc.com> Subject: Re: news spool area exported from NFS Date: Sun, 19 Sep 1999 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <7rhmg7$gmh$1@coco.singnet.com.sg> <ylvh99g3fz.fsf@windlord.stanford.edu> <7s09j5$d26$1@zeus.fw.cuci.nl> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.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: 527063089 Sender: jgreco@earth.execpc.com X-Trace: K5Si:bCC31MI5[332>a9YKbfNiaEHUgJGRYcgIRLSUEMH>Qbc8G822ILVH;QGXEJ0BHFnVQ;I2EDGGhaMU<hZ^NGF4FfQ?Mh6UM Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com