Article View: news.software.nntp
Article #7665Re: Storage of Usenet News Articles by MD5 Hash
From: Evan Champion
Date: Thu, 16 May 1996 00:00
Date: Thu, 16 May 1996 00:00
72 lines
4835 bytes
4835 bytes
Mark Delany wrote: > Space is never wasted as such in the above scheme. It may not be being > used in a way that matches your desired article TTL strategy > however... > > What the above configuration is saying is to use X amount of disk > space for group Y, if that means the articles get to hang around for 2 > months (or 2 days) all well and good. But, you allocate how much space > per group pattern and that's all that's ever used. Ahh, that makes more sense. Unfortunately, allocating based on amount of disk space used isn't necessarily a viable option. For example, I have been mandated by my users that I have to hold a certain number of days in every newsgroup, irrespective of how much disk is used. > >The best I could come up with for a circular buffer model that is > >more condusive to multi-disk (non-RAID) systems would be to have > >files for all the buffers existing on all the disks. Articles would > >be written to each disk in some sort of round-robin fashion. > > Could that be solved thus? > > define cycle2 * /dsk1/somefile,2G /dsk2/somefile/,2G /dsk3/somefile/,2G ... > > But then all articles would have the same TTL which isn't what most > people want. The one I was thinking of used the same expire.ctl notation (more or less) as is used today. So you'd tell it to keep around alt.* for 2 days and comp.* for 5. The spool would be set up as files named something like 19960516 19960517 etc., and the article would be stored at the end of the file with the name corresponding to the date that the article is to be _removed_. So an incoming alt.* (expiry of 2 days) would be stored in the file 19960518, two days from now. That way you can still have the different TTLs for different hierarchies. The problem was that in order to get it to spread out the spool over all your disks, you either need to say that you want the spool written to this disk first, then this one, etc. (using the disks one at a time) _OR_ you could create the file called 19960518 on ALL the spool disks and as articles came in for alt.* they would go in to the 19960518 file on a sequential disk to spread out the articles so each disk should, over time, get an equal number of articles and disk usage (at least statistically that should happen). In the second (and more useful IMHO) case, that means potentially a lot of open filehandles. (Just a note here -- I would rather have the files get down to hour granularity, like 1996051800 to 1996051823, so that much more refined expiry methods can be defined. I would really like to be able to effectively "continuously expire", where a program would run every hour or so and see if there is anything it could remove.) > I'm sortof expecting largish files, so fd usage would be of the order > of 20-30. You might, eg, have one file/partition per TTL rule. How > many different TTL rules do you want to apply to your news? In my scenario, it isn't the number of rules or the size of the files, but rather the number of different TTLs and the number of disks in use. If you take my present configuration as an example, I have one spool disk with expiry times of 1, 2 and 5 days (3 TTLs) and therefore I'd only need 3 files open. I would increase that to 10 disks in a flash if someone implemented a multi-disk condusive filesystem :-) so using the above model I'd need 30 files open. On a system that can handle only 64 open files per process, this method is definitely a problem. On one that can get up to 256, it's not quite so bad. On some UNIXen (BSD/OS is one and I'm sure there are others), you have effectively as many file descriptors per process as you want, up to the maximum number of descriptors for the entire system (which you can increase too), so there are some options there for really systems with lots of disks and TTLs. Evan
Technical Details
Message-ID:
<319ABD82.20E2@synapse.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:
<4mrljr$ho@olivea.ATC.Olivetti.Com> <4mt0lg$eag@piano.synapse.net> <4n883e$o6m@olivea.ATC.Olivetti.Com> <3197E129.5327@synapse.net> <4naukm$8lf@fugue.clari.net> <3199EB10.7C5C@synapse.net> <4ndn5k$hr6@bushwire.mira.net.au> <319A7F0F.2633@synapse.net> <4ne3qm$il8@bushwire.mira.net.au>Show Full Headers
Complete Article Headers
Message-ID: <319ABD82.20E2@synapse.net> Subject: Re: Storage of Usenet News Articles by MD5 Hash Date: Thu, 16 May 1996 00:00:00 +0000 From: Evan Champion <evanc@synapse.net> References: <4mrljr$ho@olivea.ATC.Olivetti.Com> <4mt0lg$eag@piano.synapse.net> <4n883e$o6m@olivea.ATC.Olivetti.Com> <3197E129.5327@synapse.net> <4naukm$8lf@fugue.clari.net> <3199EB10.7C5C@synapse.net> <4ndn5k$hr6@bushwire.mira.net.au> <319A7F0F.2633@synapse.net> <4ne3qm$il8@bushwire.mira.net.au> 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: 155061573 Content-type: text/plain; charset=us-ascii Organization: Synapse Internet [www.synapse.net] Mime-version: 1.0 Newsgroups: news.software.nntp X-mailer: Mozilla 3.0b3 (WinNT; I)