🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21858

Re: *NEW* News Server Software!

#21858
From: Matt Dillon
Date: Wed, 24 Sep 1997 00:00
54 lines
3302 bytes
:In article <60bp69$q4k$1@info.cs.uofs.edu>,
:Bill Gunshannon <bill@cs.uofs.edu> wrote:
:...
:>Or what about this idea??  (And this is just off the top of my head 
:>with no real research.)
:>
:>Why not break the group/directories down by date??  Every 24 hours 
:>you create a new sub-directory for that 24 hour period.  It should
:>be fairly easy get INN to create the new directories and if the
:>filenames continue to be just an ascending set of numbers there
:>should not be any real deep changes to make.  NNRPD should be easy 
:>to fix as well. (Or so it seems to me, anyway.)

    This doesn't really change anything unless you store multiple articles
    in each file.  You are still creating roughly the same number of files
    and directories (you would have to create a directory every 5 or 10 
    minutes for the scheme to be efficient).

    Diablo actually did that in its first release... created a directory
    every 10 minutes and stored one article per file, but it became glaringly
    obvious that the right way to do it was to create a directory every
    10 minutes and one file per *session* rather then one file per *article*,
    resulting in the storage of multiple articles per file.  i.e. each incoming
    process has complete control over its own spool file.

    By doing it that way, internal kernel filesystem lock contention approaches
    zero when receiving articles, and namei winds up being completely 
    unburdened for reception and transmission due to the two orders of
    magnitude fewer files.  On news1.best.com with 80+ feeds and 150-200
    active processes (half diablo, half dnewslink), systat -vm shows between
    200 and 800 namei cache requests a second and a 99 to 100% cache hit rate.

    In contrast, nntp2.ba.best.com with around 150 nnrpd sessions handles
    between 200 and 1400 namei requests/sec with a 50% to 95% cache hit rate.
    The average is around 85% by my guess.  This may seem ok, but keep in mind
    that each cache miss can result in tens to hundreds of milliseconds
    worth of stall, which really hurts the serialized INND.  Not only that,
    but it wastes massive amounts of disk I/O scanning directories that could 
    otherwise be used reading articles.

						-Matt

:>bill
:>
:>-- 
>Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
:>bill@cs.uofs.edu         |  and a sheep voting on what's for dinner.
:>University of Scranton   |
:>Scranton, Pennsylvania   |         #include <std.disclaimer.h>   



Technical Details
Message-ID: <60c06f$jdc$1@flea.best.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
References: <5vpddn$qlb$1@news5.ais.net> <vxk3en1e2z0.fsf@pocari-sweat.jprc.com> <60blkj$im8$1@Mercury.mcs.net> <60bp69$q4k$1@info.cs.uofs.edu>

Show Full Headers
Complete Article Headers
Message-ID: <60c06f$jdc$1@flea.best.net>
Subject: Re: *NEW* News Server Software!
Date: Wed, 24 Sep 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <5vpddn$qlb$1@news5.ais.net> <vxk3en1e2z0.fsf@pocari-sweat.jprc.com> <60blkj$im8$1@Mercury.mcs.net> <60bp69$q4k$1@info.cs.uofs.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: 275272384
Distribution: inet
X-Trace: 875136017 21609 dillon 206.184.139.132
Organization: Best Internet Communications, Inc - 650 964 BEST
Newsgroups: news.software.nntp