🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250951

Re: leafnode: running texpire weekly instead of daily?

#250951
From: John F. Morse
Date: Tue, 24 Jul 2012 20:31
232 lines
11298 bytes
Fritz Wuehler wrote:
> Adam Funk <a24061@ducksburg.com> wrote:
>> (I posted this in the leafnode-users mailing list a little while ago,
>> but no-one replied there.  Apologies to those who are seeing it again
>> here.)
>>
>> I have a fairly long retention period in my leafnode configuration,
>> and the cron.daily/leafnode job takes about 1 hour to run.  (I'm
>> running leafnode-2.0.0.alpha20110807b.luascript, and the cron script
>> might have been copied from an old Debian/Ubuntu package.)
>>
>> Is the texpire job's running time related more to the size of the
>> spool or the number of articles that it decides to delete?
>>     
>
> It seems to be directly related to the size of the spool. My daily texpire
> runs in the middle of the night but it also takes a long time. It doesn't
> take an hour though. maybe 20 minutes. How big is your spool? Mine is about
> 8G right now. I have other problems with leafnode and I'm going to switch to
> INN when I get the time.
>   


Running INN is precisely what I was going to suggest.

Without knowing what Adam's computer's hardware capabilities are, the 
times given are not of much value for comparison. But here is what some 
of my servers did at midnight.

My oldest INN server, using a 266 MHz AMD-K6 CPU and only 256 MB of RAM, 
can expire a "full Usenet text feed" plus a few binary groups, in less 
than two hours.

That would be 88,798 articles from a spool containing 7,985,227 articles 
as shown below:

Expire messages:
expireover start Tue Jul 24 00:04:42 CDT 2012: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
    Article lines processed    51109
    Articles dropped               0
    Overview index dropped         0
expireover end Tue Jul 24 01:29:43 CDT 2012
lowmarkrenumber begin Tue Jul 24 01:29:43 CDT 2012: (/var/log/news/expire.lowmark)
lowmarkrenumber end Tue Jul 24 01:29:45 CDT 2012
expire begin Tue Jul 24 01:30:16 CDT 2012: (-v1)
    Article lines processed  7985277
    Articles retained        7896479
    Entries expired            88798
expire end Tue Jul 24 01:45:13 CDT 2012
all done Tue Jul 24 01:45:13 CDT 2012



Total time is 01:45:13 which includes everything (expiring the overview 
database, checking and renumbering the lowmark, expiring articles, and 
making and mailing the report).

This server uses a 40 GB hard drive, which is 95% full.

An identical computer with the same hardware except it has a 20 GB hard 
drive and 84% full, finishes in 37:54 expirint 71,708 articles.


Expire messages:
expireover start Tue Jul 24 00:04:39 CDT 2012: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
    Article lines processed    51104
    Articles dropped               0
    Overview index dropped         0
expireover end Tue Jul 24 00:32:13 CDT 2012
lowmarkrenumber begin Tue Jul 24 00:32:13 CDT 2012: (/var/log/news/expire.lowmark)
lowmarkrenumber end Tue Jul 24 00:32:14 CDT 2012
expire begin Tue Jul 24 00:32:44 CDT 2012: (-v1)
    Article lines processed  2649036
    Articles retained        2577328
    Entries expired            71708
expire end Tue Jul 24 00:37:54 CDT 2012
all done Tue Jul 24 00:37:54 CDT 2012



Here is another server using a slower 233 MHz AMD-K6 with only a 4.3 GB 
hard drive, takes six minutes, but it is a transit only server (has no 
active file and won't serve readers):


Renumbering active file.
Expire messages:
expire begin Tue Jul 24 00:05:19 CDT 2012: (-v1 -z/var/log/news/expire.rm)
    Article lines processed   363582
    Articles retained         290295
    Entries expired            73287
expire end Tue Jul 24 00:06:12 CDT 2012
all done Tue Jul 24 00:06:12 CDT 2012



Still another transit server, which has an Intel 1.6 GHz Dual Core 
Celeron E2100, 4 GB RAM and a 160 GB hard drive:


Expire messages:
expireover start Tue Jul 24 00:00:20 CDT 2012: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
    Article lines processed     5152
    Articles dropped               0
    Overview index dropped         0
expireover end Tue Jul 24 00:04:38 CDT 2012
lowmarkrenumber begin Tue Jul 24 00:04:38 CDT 2012: (/var/log/news/expire.lowmark)
lowmarkrenumber end Tue Jul 24 00:04:38 CDT 2012
expire begin Tue Jul 24 00:05:08 CDT 2012: (-v1)
    Article lines processed  3089660
    Articles retained        3015844
    Entries expired            73816
expire end Tue Jul 24 00:05:35 CDT 2012
all done Tue Jul 24 00:05:35 CDT 2012



Over three million articles in 05:35.

I can only guess that Adam's computer is old, slow, or is being used by 
other processes.

Or he pulls/sucks many groups, or large groups. (Hint: Use filtering if 
available.)

Or his retention is too lengthy. (Hint: Download and save interesting 
articles locally.)

Or Leafnode leaves a lot to be desired (I've never used Leafnode so I'll 
not judge it).

I should also point out that I use CNFS for the spool, which is a set 
size of spool buffers. Old articles are overwritten, saving deletion 
(removal) time.

With CNFS, retention can vary by incoming load, and by server 
configuration. Junk groups come and go within days or maybe hours, while 
groups that contain useful information can remain for many months and 
even years. You get to choose which groups are assigned to which class, 
how many cycbuffs serve each class, and their sizes.

Transit servers do not need to keep articles very long, maybe ten days 
at the most, just in case a downstream peer has been offline for awhile. 
Most servers will not accept articles older than ten days anyway.

Reader servers should keep articles for a minimum of 16 days, which 
would allow someone on a two-week vacation to read, or at least download 
the news (this includes both weekends).

For an example, the first server shown above has the following expiry 
configuration results:


Class veryfast for groups matching 
"control.cancel,*.test,news.lists.filters"
 Buffer 001, size:  64.0 MBytes, position:  16.2 MBytes  67.25 cycles
  Newest: 2012-07-24 15:00:10,    0 days,  0:04:21 ago
  Oldest: 2012-06-29 15:45:02,   24 days, 23:19:29 ago

Class fastbins for groups matching "*.bina*,!local.binaries"
 Buffer 002, size:   256 MBytes, position:  23.0 MBytes  75.09 cycles
  Newest: 2012-07-24 14:59:44,    0 days,  0:04:48 ago
  Oldest: 2012-05-16 16:51:34,   68 days, 22:12:58 ago

Class fasttext for groups matching 
"news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers,alt.alt.spamtrap"
 Buffer 003, size:   512 MBytes, position:  43.8 MBytes  56.09 cycles
  Newest: 2012-07-24 14:59:44,    0 days,  0:04:48 ago
  Oldest: 2012-06-30 19:37:22,   23 days, 19:27:10 ago

Class slowbins for groups matching "local.binaries"
 Buffer 004, size:  2.00 GBytes, position:   132 MBytes  0.06 cycles
  Newest: 2012-07-22 17:25:39,    1 days, 21:38:53 ago
  Oldest: 2009-07-01  2:03:46, 1119 days, 13:00:46 ago

Class slowtext for groups matching "*,!junk"
 Buffer 005, size:  2.00 GBytes, position:   528 kBytes  6.00 cycles
  Newest: 2012-06-16  8:51:43,   38 days,  6:12:49 ago
  Oldest: 2012-06-04 16:27:58,   49 days, 22:36:34 ago
 Buffer 006, size:  2.00 GBytes, position:   528 kBytes  6.00 cycles
  Newest: 2012-06-27 10:32:16,   27 days,  4:32:16 ago
  Oldest: 2012-06-16  8:51:52,   38 days,  6:12:40 ago
 Buffer 007, size:  2.00 GBytes, position:   528 kBytes  6.00 cycles
  Newest: 2012-07-09 13:23:31,   15 days,  1:41:02 ago
  Oldest: 2012-06-27 10:32:29,   27 days,  4:32:04 ago
 Buffer 008, size:  2.00 GBytes, position:   528 kBytes  6.00 cycles
  Newest: 2012-07-21 10:32:27,    3 days,  4:32:06 ago
  Oldest: 2012-07-09 13:23:39,   15 days,  1:40:54 ago
 Buffer 009, size:  2.00 GBytes, position:   566 MBytes  5.28 cycles
  Newest: 2012-07-24 15:04:22,    0 days,  0:00:11 ago
  Oldest: 2012-01-31 15:46:29,  174 days, 22:18:04 ago
 Buffer 011, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-02-23 17:35:50,  151 days, 20:28:43 ago
  Oldest: 2012-02-10 12:37:27,  165 days,  1:27:06 ago
 Buffer 012, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-03-08 11:09:25,  138 days,  2:55:09 ago
  Oldest: 2012-02-23 17:35:56,  151 days, 20:28:38 ago
 Buffer 013, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-03-22 13:03:23,  124 days,  2:01:11 ago
  Oldest: 2012-03-08 11:09:32,  138 days,  2:55:02 ago
 Buffer 014, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-04-07 10:15:24,  108 days,  4:49:10 ago
  Oldest: 2012-03-22 13:03:37,  124 days,  2:00:57 ago
 Buffer 015, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-04-22 15:58:14,   92 days, 23:06:20 ago
  Oldest: 2012-04-07 10:15:34,  108 days,  4:49:00 ago
 Buffer 016, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-05-07  8:44:55,   78 days,  6:19:40 ago
  Oldest: 2012-04-22 15:58:14,   92 days, 23:06:21 ago
 Buffer 017, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-05-22  7:30:03,   63 days,  7:34:32 ago
  Oldest: 2012-05-07  8:45:02,   78 days,  6:19:33 ago
 Buffer 018, size:  2.00 GBytes, position:   528 kBytes  5.00 cycles
  Newest: 2012-06-04 16:27:50,   49 days, 22:36:45 ago
  Oldest: 2012-05-22  7:30:03,   63 days,  7:34:32 ago

Class junk for groups matching "junk"
 Buffer 019, size:   256 MBytes, position:   136 MBytes  149.53 cycles
  Newest: 2012-07-24 15:04:21,    0 days,  0:00:15 ago
  Oldest: 2012-07-23 17:24:49,    0 days, 21:39:47 ago


Note the "Oldest:" lines above.

Hope that helps.


-- 
John

When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <jun0mq$hbb$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!mauve.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
References: <1eb2e9x1fg.ln2@news.ducksburg.com> <207a529cfd6ab7a92196e0819007696f@msgid.frell.theremailer.net>

Show Full Headers
Complete Article Headers
Message-ID: <jun0mq$hbb$1@n102.xanadu-bbs.net>
Subject: Re: leafnode: running texpire weekly instead of daily?
Date: Tue, 24 Jul 2012 15:31:43 -0500
From: "John F. Morse" <john@example.invalid>
References: <1eb2e9x1fg.ln2@news.ducksburg.com> <207a529cfd6ab7a92196e0819007696f@msgid.frell.theremailer.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!mauve.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Xanadu BBS
Lines: 232
Reply-To: dont.bother
NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Tue, 24 Jul 2012 20:31:22 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
In-Reply-To: <207a529cfd6ab7a92196e0819007696f@msgid.frell.theremailer.net>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 11028