🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38684

Diablo w/ history file on mfs?

#38684
From: Brad Knowles
Date: Wed, 14 Jul 1999 00:00
42 lines
2552 bytes
Folks,

    Has anyone here run Diablo with the history file on a memory-based
filesystem (not true SSD, where you would presumably have battery backup,
etc...)?

    Are there any particular pitfalls I need to be aware of, other than
the obvious "you really should copy the history file to rotating media
periodically, you should do expire with the history file on rotating
media, etc..."?


    On a related note, it is my understanding that Diablo will use mmap()
on the history file (which will cause the data to be pulled into the
buffer cache), up to a certain maximum size, and beyond that it will just
use lseek() (which should avoid having the rest of the file pulled into
buffer cache).

    However, my C skills are extraordinarily rusty, and I'm not able to
find any obvious HISTORY_MMAP_MAX definition within the source.  Can
anyone tell me what the appropriate section of code is that makes this
determination, and how it decides when to stop mmap()ing the history file
and to start lseek()ing it past that point?


    The reason I ask is that I've recently received the machine that will
be replacing our news peering server (currently a Pentium Pro 200 w/ 256MB
RAM).  On the new machine I've got 1GB of ECC RAM, of which I'm willing to
give up about 384MB worth to store a 256MB history file on an mfs and
guarantee that I never hit any disk latency when accessing the file, but I
don't want to give up another 256MB to also store the entire file in
buffer cache.

    Giving up 37.5% of my RAM to keep the whole file in RAM is okay, but I
don't want to give up 62.5% for that function, if there's any way at all
that I can avoid it.  ;-)

-- 
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-1407991926010001@brad.techos.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

Show Full Headers
Complete Article Headers
Message-ID: <brad-1407991926010001@brad.techos.skynet.be>
Subject: Diablo w/ history file on mfs?
Date: Wed, 14 Jul 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
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: 501000198
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 931973185 22568 195.238.1.121 (14 Jul 1999 17:26:25 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 14 Jul 1999 17:26:25 GMT
Newsgroups: news.software.nntp