🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #871

min field newsgroup size prediction (Re: xrn taking up lots of memory)

#871
From: Felix Lee
Date: Fri, 08 Nov 1991 13:55
45 lines
2671 bytes
On the reliability of the min article number as an indication of
newsgroup size, here's some data from the local news host.

   size as predicted by min
   |    actual size
   |    |    gap in size
1977  214 1763 comp.sys.mac.programmer
1866  194 1672 comp.windows.x
2100  448 1652 alt.folklore.urban
1725  200 1525 rec.travel
1822  354 1468 rec.autos
1586  200 1386 comp.sys.mac.hardware
1560  359 1201 rec.arts.tv
1296  275 1021 misc.forsale

These are the 8 groups with gaps greater than 1000.  There are 64
groups with gaps greater than 100.  90% of the groups have gaps less
than 10.

The current expire policy here is to keep moderated groups 10 days,
most groups 5 days, and soc,talk 3 days.  Expires headers are honored
up to 60 days, except soc,talk gets cut off at 5 days.

If Expires: were honored for a year, which is not unreasonable for
seminar and conference announcements, the size of large gaps might
quadruple.

Given that memory is cheap, a gap of 10000 or so in a bit array is no
big deal.  Keeping an array of more substantial information will be
more expensive, but if you use an array of pointers rather than an
array of structures, you're only wasting 40K.  This is insignificant
given that the working-set for gooey programs these days hovers around
a megabyte or so.

Updating the min field at least once a month should be enough to keep
the gaps manageable.  By the time gaps reach 1 000 000, kilobytes
should be cheaper than potato chips, and no one will think twice about
wasting 4M of space in arrays.

And in any case, on a paging vm system the cost of a huge unused array
is merely swap space.  None of it should be resident in ram.

If you're on a PDP-11, well...
--
Felix Lee	flee@cs.psu.edu
Technical Details
Message-ID: <2ucH_q2o3@cs.psu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!uwm.edu!psuvax1!news
References: <1991Oct30.185507.20043@objy.com> <sherman.689246642@foster> <1991Nov5.024522.11311@athena.mit.edu> <wGd_ar-@engin.umich.edu> <1991Nov6.132447@mccall.com> <1991Nov7.112250.236@eua.ericsson.se>

Show Full Headers
Complete Article Headers
Message-ID: <2ucH_q2o3@cs.psu.edu>
Subject: min field newsgroup size prediction (Re: xrn taking up lots of memory)
Date: Fri, 08 Nov 1991 13:55:59 +0000
From: flee@cs.psu.edu (Felix Lee)
References: <1991Oct30.185507.20043@objy.com> <sherman.689246642@foster> <1991Nov5.024522.11311@athena.mit.edu> <wGd_ar-@engin.umich.edu> <1991Nov6.132447@mccall.com> <1991Nov7.112250.236@eua.ericsson.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!uwm.edu!psuvax1!news
Newsgroups: news.software.readers,news.software.b
Sender: news@cs.psu.edu (Usenet)
Organization: Penn State Computer Science
Lines: 45
Nntp-Posting-Host: dictionopolis.cs.psu.edu