🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17512

Re: Inn Performance Questions...

#17512
From: Jeff Garzik
Date: Sat, 03 May 1997 00:00
24 lines
1741 bytes
Michael Hucka wrote:
> >>>>> On 02 May 1997, Jeff Garzik <admin@news.iarc.com> wrote:
>   admin> Put it on a RAM disk and point _PATH_HISTORY in config.data to it.

> I think this would be too dangerous.  What will happen when the server
> crashes?  (Or are there implementations of ram disks that somehow copy-through
> every write to a disk file?)

Well, silly, you're supposed to copy history onto hard storage at
periodic intervals.  For example, each night after you run expire, have
rc.news NOT unlink the expdir history, but instead move it into your
"history backup directory".  Then do something like a

	tail -f /var/ramdisk/history > /var/news/history/history.tail

Then simply cat the expire version and the history.tail together to form
the whole, and rebuild the DBZ file, in the event of an OS crash. 
Better solutions would figure out some way to avoid rebuilding the DBZ,
like simply copying it to the backup directory at certain intervals.

	Jeff

Technical Details
Message-ID: <336B6C83.13A9B62D@spinne.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: <5kabnj$hn8@smash.gatech.edu> <5kadtn$e6b$1@news.theriver.com> <5kapv3$a69$1@fes.whowhere.com> <5kb3l2$b82@smash.gatech.edu> <336A0FC0.18319F93@news.iarc.com> <82pvv9416p.fsf@manic.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <336B6C83.13A9B62D@spinne.com>
Subject: Re: Inn Performance Questions...
Date: Sat, 03 May 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <5kabnj$hn8@smash.gatech.edu> <5kadtn$e6b$1@news.theriver.com> <5kapv3$a69$1@fes.whowhere.com> <5kb3l2$b82@smash.gatech.edu> <336A0FC0.18319F93@news.iarc.com> <82pvv9416p.fsf@manic.eecs.umich.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: 239129495
To: Michael Hucka <hucka@eecs.umich.edu>
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp