Article View: news.software.nntp
Article #14431Re: Why does fastrm takes so long?
From: Christophe Wolfhugel
Date: Sun, 26 Jan 1997 00:00
Date: Sun, 26 Jan 1997 00:00
50 lines
3275 bytes
3275 bytes
Raul Zighelboim <mango@communique.,net> wrote: >Anyway, to make thge story short, the server can write ~8arts/s when not >expiring. fastrm would take 1/2 the day in general to remove articles. This delay is not unusual. Creation and removal of files is a pretty affair. From different tests, over all available file systems I've tested (UFS on Sun, DEC, *BSD, Advfs on DEC, Ext2fs on Linux), the Ext2fs is by far the most efficient, followed by Advfs (which is not adeaquate for a today newsspool for other reasons) and everything else is behind. This is the reason I do like Linux for doing news. In a testing configuration (less loaded machine, only incoming trafic, no readers), a standard INN-1.5.1 on a 486/66 box with one narrow SCSI disk is faster than many production servers I run. Fastrm is also by design faster on Linux, but anyhow unlinking 130k files is just a pain. One solution which could help and which shall be doable on systems with sources if to add a new system call : munlink (multiple unlink) which would allow in one run to remove several files from one directory. It has to be coded and tested. Many solutions have been evoqued, the most advanced and efficient today is probably the cyclic file system, one implementation is available for INN 1.4unoff4. This is the efficient way for reducing the IO load and limiting if not eliminating the expiration problem. It is my understanding that future versions on INN will use a generic storage API which will allow to have one or several cyclic storage models below. Other software do expiration on the fly : the article is removed when it has been sent to all its peers. See Cyclone Newsrouter for that, or wait a few days for nntpRelay recently announced as available soon. I've also started developing an intermediate solution : divide by 100 (or wathever treshold you want) the number of files in the spool, and so have faster IOs and faster expiration. This is in its beginning form (still on a good old 486/66 box running Linux) and does not allow readers, it's only for feeding machines. Changes to innd/art.c are less than 20 lines of code, and less than 10 lines in expire/fastrm.c. Modifying innxmit looks pretty trivial, for innfeed and nntplink I need to check. I do not, yet, care about other backends. With those changes, I average at 20 incoming arts/s (still no outgoing feeds setup yet) with peaks at 50 arts/s in good cases (presorted batch), still on my good old PC. Expiring 120k articles just takes a few minutes. -- Christophe Wolfhugel -+- Maison: wolf@schnok.fr.net
Technical Details
Message-ID:
<5cfdlb$3mq$1@schnok.fr.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-mailReferences:
<01bc0afb$f877ef90$827e1bcc@rodia>Show Full Headers
Complete Article Headers
Message-ID: <5cfdlb$3mq$1@schnok.fr.net> Subject: Re: Why does fastrm takes so long? Date: Sun, 26 Jan 1997 00:00:00 +0000 From: wolf@schnok.fr.net (Christophe Wolfhugel) References: <01bc0afb$f877ef90$827e1bcc@rodia> 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: 212308443 Content-type: text/plain; charset="iso-8859-1" Organization: Brok & Schnok Mime-version: 1.0 Newsgroups: news.software.nntp X-newsposter: Pnews 4.0-test45 (19 Oct 96)