🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39983

Re: news spool area exported from NFS

#39983
From: Joe Greco
Date: Sun, 19 Sep 1999 00:00
59 lines
3955 bytes
In news.software.nntp article <brad-1909991815200001@dialup261.brussels2.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:In article <37e504a1$0$11106@news.execpc.com>, jgreco@ns.sol.net (Joe
:Greco) wrote:
:
:>                                                                    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.
:
:    Obviously, I'm missing something here.  When talking about a 55GB/day
:full newsfeed, I thought that the average article size worked out to
:around 50KB.  Wouldn't that be more like 600KB a second?

Think about a histogram of the size of your articles.  Where's the vast,
vast, vast majority of articles?  Answer: .5KB-5KB, or, approximately, an
average of 3KB.  When you start considering those big guys, you're talking
about cache destroyers anyways, because your average CPU cache is maybe
256K or 512K.  You're not going to be concerned about that case since it is
not the normal case, and will be much harder to correctly optimize for at
a cache level.

:    Of course, I wouldn't be surprised if a machine had no problem moving
:around that kind of data, but if you've got 75 peers, each offering you
:something like 750,000 articles per day, that'd be something like 650
:history lookups per second.

And here's something where you actually have a meaningful volume where
optimizations might actually mean something.  But you're not feeding
650 articles per second into your filter, which is what we were talking
about.  :-)

Even so, in general, it's going to be impossible to keep sufficient
quantities of history in L1 or L2 cache.  Diablo offers between an 8MB (I
think) and 64MB hash table, and you're just not going to see many cache
hits on your average 512KB cache CPU.  So, again, the cache doesn't buy
you anything from the data perspective, although it buys you code execution
speed.

Now, shared memory, that's a different story, and using shared memory for
the history makes lots of sense, especially in a Diabloesque architecture,
since a competent VM system will optimize your available RAM to hold the
pages which are being hit most frequently - the best you can really hope
for.  And if you have a sucky VM implementation, your life sucks and you
need to compensate with additional RAM...

:> There are a hundred other more substantial (not to mention noticeable) 
:> factors that'll have a lot more impact on your performance.
:
:    I'd be very interested to hear what some of these other factors are.

Nearly anything.  You're never going to notice (or be able to measure,
performancewise) whether or not there was a CPU cache hit or miss for an
article en-route to a filter.  You will more likely notice increased
performance by doing any number of other things, like using better disk
I/O algorithms or using shared memory in creative ways.

... JG

Technical Details
Message-ID: <37e5631f$0$11115@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-mail
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com> <37e504a1$0$11106@news.execpc.com> <brad-1909991815200001@dialup261.brussels2.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <37e5631f$0$11115@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> <aDVE3.19285$N77.1445858@typ11.nn.bcandid.com> <37e504a1$0$11106@news.execpc.com> <brad-1909991815200001@dialup261.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: 527198484
Sender: jgreco@earth.execpc.com
X-Trace: K5Si:bCC31mI5[332>a9YkbfNiaEHUgJgRYcgIRLSUEmT0Edll>gWhd?M5IFk]b=?fbUU?DP=kj6dGhaMU<hZ^NgF4FfQ?Mh6Um
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com