🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #47419

Re: Test farm up, no restrictions, knock yourselves out.

#47419
From: Curt
Date: Tue, 08 Jun 2004 23:13
47 lines
4038 bytes
news:7k0bc0d8524jieajirjst3qp720f5helhs@4ax.com: 

> On Tue, 08 Jun 2004 06:07:06 GMT, Curt
><curt.hartung_NOSPAM@AT_highwinds-software.com> wrote:
> 
>>PROBLEM: Create a data structure which can insert at least 100 ID's
> Flip the problem around, as NetApp does. Store by message-id (probably
> using the hashed directory setup Squid does for cache spools), then
> create a datastructure for tracking the article#->message-id mapping
> for each newsgroup. Since these numbers increase monotonically and
> message-ids have a relatively small bounded size, a ringbuffer should
> suffice - and of course, you're already iterating over the groups
> posted to for numbering purposes.
> 
> Of course, assuming an average two groups per article, that would
> appear to imply 15,000 disk I/O operations per second (updating two
> group ring buffers, plus writing the article itself) when catching up
> on a feed - enough to ruin the day of even a big fast RAID array, even
> before you factor in filesystem metadata. Fortunately, you can buffer
> the group ring buffer updates for write coalescing, and structure the
> article storage to allow multiple articles to be stored per I/O
> operation there...

Okay. umm.. well you're sort of on the right track. I really wish I could 
say more, but unfortunately I can't. It sucks because I love to teach, 
especially programming, and the trade secrets in Highwinds Software are 
on the one hand the coolest stuff I work with, and on the other hand the 
one thing I can't tell people about.

I can tell you that my solution uses only 512 bytes of stack per 
insert/read, involves no caching, can index about 30,000 articles per 
second (intel hardware running a 14-disk JBOD), expires them properly, 
and can scale to 2 trillion message ID's. When engaged the system load is 
too small to observe, and the disk utilization percentage was under 1% 
over 14 spindles. Worst and best case seeks are identical; requiring a 
single read from disk which can be located in a single 64-bit hash 
computation; even on a heavily loaded system the message-id lookup time 
is trivial compared to article fetching.

Its like a magic trick, its only magic so long as you don't know how its 
done. If I posted the c++ class (about 5 pages of code) along with the 
notes you would read it and think 'thats it? thats simple'.

Like I said, with I could post the code. Its really fun to write :)

-Curt
Technical Details
Message-ID: <Xns9502C330CFF1Fcurharthighsoftw@63.223.5.254>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20140909.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!c03.atl99!news.usenetserver.com!fe18.usenetserver.com.POSTED!7ba983cc!not-for-mail
References: <Xns9500CE3DBA6C3cunohighsger@216.77.188.18> <Xns9500E14851821vegasedvegasedvegase@63.223.5.254> <Xns9501EEACB410cunohighsger@216.77.188.18> <dvh8c0p99nbqhup10mcj80d2t9lct7idbo@4ax.com> <s_Zwc.6135478$iA2.705535@news.easynews.com> <kqr8c0hscgmju3s6bv6nmgocv4ofp2k73b@4ax.com> <3ot8c09aip1lb2r1j29efj3mke1m33ogma@192.168.1.3> <Xns95017384463B1vegasedvegasedvegase@63.223.5.254> <epg9c0tap8oc816bjq89stoqocl59fl1ps@192.168.1.3> <Xns9502168C6B10Acunohighsger@216.77.188.18> <7k0bc0d8524jieajirjst3qp720f5helhs@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9502C330CFF1Fcurharthighsoftw@63.223.5.254>
Subject: Re: Test farm up, no restrictions, knock yourselves out.
Date: Tue, 08 Jun 2004 23:13:37 GMT
From: Curt <curt.hartungN@SPAMhighwinds-software.com>
References: <Xns9500CE3DBA6C3cunohighsger@216.77.188.18> <Xns9500E14851821vegasedvegasedvegase@63.223.5.254> <Xns9501EEACB410cunohighsger@216.77.188.18> <dvh8c0p99nbqhup10mcj80d2t9lct7idbo@4ax.com> <s_Zwc.6135478$iA2.705535@news.easynews.com> <kqr8c0hscgmju3s6bv6nmgocv4ofp2k73b@4ax.com> <3ot8c09aip1lb2r1j29efj3mke1m33ogma@192.168.1.3> <Xns95017384463B1vegasedvegasedvegase@63.223.5.254> <epg9c0tap8oc816bjq89stoqocl59fl1ps@192.168.1.3> <Xns9502168C6B10Acunohighsger@216.77.188.18> <7k0bc0d8524jieajirjst3qp720f5helhs@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20140909.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!c03.atl99!news.usenetserver.com!fe18.usenetserver.com.POSTED!7ba983cc!not-for-mail
Newsgroups: alt.free.newsservers
Organization: Highwinds-Software
User-Agent: Xnews/06.08.25
Lines: 46
X-Complaints-To: abuse@usenetserver.com
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly.
NNTP-Posting-Date: Tue, 08 Jun 2004 19:13:37 EDT