🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88554

Re: buffindexed overview

#88554
From: Julien ÉLIE
Date: Sun, 17 Jan 2021 10:18
140 lines
5550 bytes
Hi,

> ovmethod is buffindexed. How much size should have buffer files?
> INN 2.6.3

An update to my previous message.
I've now done the comparison using standard overview date.  Here are a 
few elements that will permit to choose the appropriate size and 
overview storage method.

In 2020, the volume for a full-text Usenet feed is about 18,000 articles 
/ day, with peaks to 1,200 articles / hour.
Article storage size is about 65 MB / day.

Source:
   https://www.eternal-september.org/stats/
   https://news.aioe.org/stats/innreport-reports/


As for overview storage size, if you store more header fields in 
overview data than standard ones, the space needed to store overview 
data will be superior than what follows.  It is configured in the 
extraoverviewadvertised and extraoverviewhidden inn.conf parameters.



Benchwark with:
  - 3,278,095 overview records stored
  - corresponding to about 2,852,200 news articles (each newsgroup an 
article is crossposted to counts for 1 overview record)
  - for 620 newsgroups (I do not carry a full-text Usenet feed)
  - on a slow Intel Atom CPU N2800 1.86GHz with 2GB RAM

With better hardware, time of overview rebuild and expiration will of 
course be faster.


buffindexed
-----------

% inndf -no
3278095 overview records stored
58.31% overview space used

I set up 2 buffers of 1,57 GB, so the fixed used space on disk is 3,15 GB.

overview rebuild in 26 mn
expireover in 14:30 mn
used space on disk is fixed, and equal to the space allocated to buffers 
(3,15 GB in this case, though only 1,83 GB is really used)

On a previous test with 5 buffers of 1,57 GB, for a total space of 7,86 
GB, overview rebuild lasted 32 mn and expireover 41 mn.  The advice is 
therefore not to allocate too much spare space for buffindexed, and add 
new buffers when needed.



tradindexed
-----------

overview rebuild in 17 mn
expireover in 5:00 mn
used space on disk is 2,01 GB after rebuild, and 1,77 GB after first run 
of expireover



ovdb
----

overview rebuild in 38 mn
expireover in 4:00 mn
used space on disk is 3,19 GB



compressed ovdb
---------------

overview rebuild in 40 mn
expireover in 3:55 mn
used space on disk is 2,61 GB (overview data < 600 bytes are kept 
uncompressed)



ovsqlite (new storage method in INN 2.7.0)
--------

overview rebuild in 34 mn
expireover in 6:30 mn
used space on disk is 2,67 GB



compressed ovsqlite (new storage method in INN 2.7.0)
-------------------

overview rebuild in 36 mn
expireover in 5:20 mn
used space on disk is 1,12 GB (all overview data is compressed)




 From inn.conf documentation:

   - buffindexed, which stores overview data and index information
     into preconfigured large files like CNFS.  Fast at writing, the
     buffindexed overview storage method can keep up with a large feed
     more easily and never consumes additional disk space beyond that
     allocated to these buffers.  The downside is that these buffers
     are hard to recover in case of corruption and somewhat slower for
     readers and the expiry process;

   - ovdb, which stores overview information into a Berkeley DB database,
     whose development pace has stalled these last years.  This method
     is fast and very robust, but may require more disk space, unless
     compression is enabled.  Overview data is fetched one article at a
     time, which makes this method a bit slower than ovsqlite for readers;

   - ovsqlite, which stores overview information into an SQLite database,
     known for its long-term stability and compatibility.  Robust and
     faster than ovdb at reading ranges of overview data (since overview
     data is transferred in 128-kilobyte chunks between ovsqlite-server
     and nnrpd) but somewhat slower at writing, this method may require
     more disk space, unless compression is enabled;

   - tradindexed, which uses two files per newsgroup, one containing
     the overview data and one containing the index.  Fast for readers,
     but slow to write to because it has to update two files for each
     incoming article.  Its main advantage is to be the best tested,
     the most reliable and the method with the best recovery tools.

-- 
Julien ÉLIE

« Il n'y a pas moyen de contenter ceux qui veulent savoir le pourquoi
   des pourquoi. » (Leibniz)
Technical Details
Message-ID: <ru12ud$5mq$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20210113181032.3b948c785dc5d6e08aca056e@host.net>

Show Full Headers
Complete Article Headers
Message-ID: <ru12ud$5mq$1@news.trigofacile.com>
Subject: Re: buffindexed overview
Date: Sun, 17 Jan 2021 11:18:48 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20210113181032.3b948c785dc5d6e08aca056e@host.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Jan 2021 10:18:53 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="lfbn-idf3-1-527-171.w86-252.abo.wanadoo.fr:86.252.110.171"; logging-data="5850"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.1
In-Reply-To: <20210113181032.3b948c785dc5d6e08aca056e@host.net>
Content-Language: fr