Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 1997 10:41:24 -0500 (EST)
From:      Charles Henrich <henrich@crh.cl.msu.edu>
To:        freebsd-questions@freebsd.org
Subject:   INN .overview and FFS on FreeBSD
Message-ID:  <199701291541.KAA04537@crh.cl.msu.edu>

next in thread | raw e-mail | index | archive | help
According to the INN FAQ:

    2.  (this is more important than #1) Move the .overview files out of
    the /var/spool/news hierarchy.

        [snip]

    Why does doing all this speed up overchan?  overchan works by opening
    the proper ".overview" file, appending 1 line to it, then closing the
    file.  If you have the ".overview" file in the same directory as 10000
    articles then opening the ".overview" file will take a huge amount of
    time.  The open() call literally searches though about 5000 (half of
    10000) file names to find ".overview".  If you move your ".overview"
    files so that each one is in it's own directory, (say,
    /usr/spool/news/over.view/{group}/{name}/.overview) then open() is
    searching through 3 files ( ".", "..", and ".overview") to find 1
    file.  ( O(N/2) where N=10000 vs. N=3... and you thought those first
    year CS classes would never be useful!)

Does this hold true with FreeBSD?

-Crh

       Charles Henrich     Michigan State University     henrich@msu.edu

                         http://pilot.msu.edu/~henrich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701291541.KAA04537>