🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16438

Re: Inn-1.5.1's file space recovery problem

#16438
From: Jerry Aguirre
Date: Fri, 28 Mar 1997 00:00
36 lines
2398 bytes
In article <5hcdj5$lao$1@news3.texas.net>,
Michael Douglass  <mikedoug@texas.net> wrote:
>Am I the only one to thing that this is ridiculous?  I did an lsof on the
>history file and found that only a very few number of the nnrpd processes
>had the history file open at all; if this is the case, then why do the ones
>that have it open, have it open?  To avoid this problem, should nnrpd not
>be written to close the history file as soon as possible?

It is not "ridiculous" though not entirely correct either.  News
readers have the option to do article access by message ID.  As a
simple example consider an article with a refferences header.  The
reader might want to find the parent article and so would look it up by
message ID.

Some "pull" type newsfeeds also open the history file to find all the
newly arrived articles.  This is the dreaded "newnews" command.

If nnrpd were "written to close the history file as soon as possible"
then it would close it after each such access.  If the client were
making many such requests this would definitely be a lot of extra
overhead to open and close it each time.

It is perhaps reasonable to have nnrpd close the history file after some
period of time.  Say every hour it would close the history file if it
was open.  Feel free to write the code.

This is not a complete fix though.  Someone could be running a local
news reader that directly accessed the history file.  Or someone could
just be doing a "more history" and leave it running.

The method of zeroing the old file before removing it is reliable and
handles all those cases.  If someone had the history file open that long
after expire has run then the data is old anyway.

Technical Details
Message-ID: <5hfb23$nll$1@fes.whowhere.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: <01bc36e6$03f38440$e4e893cf@valued-cu> <5h7hok$4h7@uni00nw.unity.ncsu.edu> <5h80l7$6bi$1@stealth.eng.pyramid.com> <5hcdj5$lao$1@news3.texas.net>

Show Full Headers
Complete Article Headers
Message-ID: <5hfb23$nll$1@fes.whowhere.com>
Subject: Re: Inn-1.5.1's file space recovery problem
Date: Fri, 28 Mar 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <01bc36e6$03f38440$e4e893cf@valued-cu> <5h7hok$4h7@uni00nw.unity.ncsu.edu> <5h80l7$6bi$1@stealth.eng.pyramid.com> <5hcdj5$lao$1@news3.texas.net>
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: 228996073
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp