🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41301

Re: INN history API (was: NoCeM & INN2.3)

#41301
From: bill davidsen
Date: Thu, 04 Nov 1999 00:00
31 lines
2227 bytes
In article <ylso2m514t.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| bill davidsen <davidsen@tmr.com> writes:
| > Russ Allbery  <rra@stanford.edu> wrote:

| > But there are lots of problems with it, not least of which is the memory
| > and storage it takes to do expire.
| 
| I'm not sure this is really an issue on modern systems; INN and expire
| should be able to share the same memory region given that they're mmaping
| the same file, yes?  It's an issue if you don't have mmap, but if you
| don't have mmap you lose in general.

Maybe you have a machine large enough so that you can fit two copies of
the history file (call that 3GB) in physical memory while accepting
articles and serving readers, and avoid paging the sox off the machine,
but I certainly can't! Expire makes a total copy of the history file,
less articles it doesn't keep, and there's just no reason for all that
i/o and CPU to be done at one time. I'd rather spread it over a full
day, or better yet not do it at all.

There's no algorithm to do anything which is as fast as finding a way
not to do it at all.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Technical Details
Message-ID: <7vt49u$elf$1@newssvr02.news.prodigy.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: <3819A774.9C57FDCA@boerde.de> <ylk8o0l9zd.fsf_-_@windlord.stanford.edu> <7vq298$9h3$1@newssvr02.news.prodigy.com> <ylso2m514t.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7vt49u$elf$1@newssvr02.news.prodigy.com>
Subject: Re: INN history API (was: NoCeM & INN2.3)
Date: Thu, 04 Nov 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <3819A774.9C57FDCA@boerde.de> <ylk8o0l9zd.fsf_-_@windlord.stanford.edu> <7vq298$9h3$1@newssvr02.news.prodigy.com> <ylso2m514t.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-mail
X-Deja-AN: 544590319
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr02.news.prodigy.com 941757566 15023 199.4.137.118 (4 Nov 1999 23:19:26 GMT)
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com