Article View: news.software.nntp
Article #7197Re: expire performance enhancement
From: Robin Chen
Date: Fri, 03 May 1996 00:00
Date: Fri, 03 May 1996 00:00
50 lines
2670 bytes
2670 bytes
T. William Wells (bill@twwells.com) wrote: : Ever notice how it seems to take *forever* to run through the : history file? Well, last night, I was hacking on expire and noted : that it has a hash table for newsgroups. However, there are only : 128 buckets in the table. I set it to 2048 and cut the processing : time to what looks to be about half of the original. I didn't : experiment to see what the best size would be. : : BTW, the hack I added: a flag X in expire.ctl that says that if : an article matches that line then the article gets expired in : _all_ the groups it's cross-posted to. This is a space-saver for : when someone cross-posts between binaries and non-binaries; it's : especially useful if you use -l. That it also zaps small posts : cross-posted into the binaries groups doesn't bother me in the : slightest.... Hello, Your implementation of the X flag is a really great idea. I've always wanted to limit the crossposting of the binaries newsgroups as I have them set on a faster expire time than others. Having them crossposting to newsgroups that stays around defeats the limit on expire time set for binaries. Great job! However, here's the problem. I tried to put in your patch to Unoff4 and could not get it to go through, so I decided to patch it manually. Using a diff on the patch file I later made, I found it was some problem with the spacing. Probably because of different tab setting. Anyway, it compiled without problem, but when I expired, I got one extra line that I don't see before. Bad entry, "" Is this normal, or did I mess up on the manual patching? Another question I have is my expire time from the expire.log used to says it's in the 6 minutes range. After increasing the NGH_SIZE, it is still in the 6 minutes range. Should I increase it to higher number, or does it only work for larger amount of articles? I'm running on dx4-100 with 24M ram. Expire 4 times a day with about 40k to 60k files unlinked in each run using news.daily delayrm expireover, with norotate flag for 3 of the expires. Robin
Technical Details
Message-ID:
<4mdrdc$jp6@cancer.vividnet.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-mailReferences:
<Dqp091.7q3@twwells.com>Show Full Headers
Complete Article Headers
Message-ID: <4mdrdc$jp6@cancer.vividnet.com> Subject: Re: expire performance enhancement Date: Fri, 03 May 1996 00:00:00 +0000 From: robinche@mail.vividnet.com (Robin Chen) References: <Dqp091.7q3@twwells.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 X-Deja-AN: 152850772 Organization: Vivid Internet Production Newsgroups: news.software.nntp