🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38702

Re: Diablo w/ history file on mfs?

#38702
From: Brad Knowles
Date: Thu, 15 Jul 1999 00:00
24 lines
1912 bytes
In article <874sj7hzfj.fsf@erlenstar.demon.co.uk>, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:

> What it does, AIUI, is to mmap() the file header and hashtable that
> appears at the start of the file (there's a define somewhere that sets
> the size of the hashtable), and use lseek/read/write for the actual
> history entries.

    So, whatever the size is of the header and hashtable, I'd pay that
cost in RAM twice (once on mfs and once in buffer cache), but for the rest
of the history file this would be a *huge* win as you would then be doing
lseek/read/write against memory without any disk access.  Did I get that
right?

    What about copying the history file to rotating media periodically
(say, every five minutes), and making sure that the history file is
resident on rotating media during an expire?  Are those both good ideas? 
Is there anything else you can think of that I might need to be aware of?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Technical Details
Message-ID: <brad-1507990054410001@dialup105.brussels.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
References: <brad-1407991926010001@brad.techos.skynet.be> <874sj7hzfj.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <brad-1507990054410001@dialup105.brussels.skynet.be>
Subject: Re: Diablo w/ history file on mfs?
Date: Thu, 15 Jul 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
References: <brad-1407991926010001@brad.techos.skynet.be> <874sj7hzfj.fsf@erlenstar.demon.co.uk>
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: 501114605
X-Complaints-To: abuse@skynet.be
X-Trace: news1.skynet.be 931992931 31487 195.238.19.105 (14 Jul 1999 22:55:31 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 14 Jul 1999 22:55:31 GMT
Newsgroups: news.software.nntp