Article View: news.software.nntp
Article #7658Re: 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
68 lines
4620 bytes
4620 bytes
Brad Templeton wrote: > I seriously doubt you mean that. I mean you have a certain amount of > disk space, and you perhaps chose that amount of disk space to hold N days > of articles, but how can you possibly suggest that users want a time based > expire rather than simply the request that as many articles as will fit > in the disk space be kept. You can't possibly do better than filling > the allocated disk! If you want *every* group to have N days, you just > have one big circular buffer and you make it big enough to have 5 days. The reason I say that is because I have to hold the news long enough for them to have a reasonable chance of ever reading it :-) Generally that means I have to hold a minimum of 2 days of everything, and I try to hold 5-7 of everything but the binaries just to be sure. > If you make it 4 gb, and 10gb of news comes in in 5 days, what do your > users want, for your system to place an order for new disk drives in time > to handle the load? The current system stops new news from coming in > in this circumstance, and I don't think this is what users want. That's from your perspective, and from my perspective. From a user's perspective, if they don't have the news on-line that they want when they want it, they're not happy. I'm sure I'm not the only person who has heard the "I'm paying you good money" spiel. > Later you claim to want refined expiry -- if your users want 5 days for > every newsgroup you want little refinement at all. If they want more > for some newsgroups, you want some refinement, that's not hard. My users might want 5 days for every newsgroup (probably a lot more than 5 days, actually) but realistically they're not going to get it until an inexpensive way to use a lot of disks efficiently is available to me. That is why I need some ability to refine the expiration policy somewhat. In my case, I only need 3 unique TTLs. > Remember that the file descriptors are not a problem. If you have > 400 different files to handle, you can't keep 'em all open on some > systems but so what. You need an LRU cache of file descriptors. If you are continously rotating around disks to ensure that each disk's buffers get equal usage then you basically do need to keep all those files open continously. Unless you have a lot of TTLs that are rarely used, opening and closing descriptors would become a visible problem. I suppose one way to look at this is that if you're running a UNIX that can't handle a lot of open files, then you just won't be able to take advantage of some of the features (or will hopefully have an affordable hardware/software RAID solution to take care of it). If you used only 1 spool disk, then you only need enough file handles open for the number of unique TTLs. > Running over multiple disks is no big problem either. Of course an OS > that does striping is one simple method, but you could implement simple > striping fairly easily here as well, so that each circular buffer is > really striped over multiple disks. I would say the OS is a better > place for that. Sure, but BSD/OS doesn't do striping and I'm not buying a hardware RAID. I'm not really interested in a multi-disk system that uses the disks one at a time -- I would like all disks going all at once. Both the "lots of file descriptors" model and some of the MD5 hash variants can handle it. If the "lots of file descriptors" model would be acceptable to everyone then that's fine with me. I am certainly not going to complain against something that does everything I want with no negatives that I've thought of on my platform. I am just concerned that requiring a lot of open files would cause problems on a large percentage of the INN population. Evan
Technical Details
Message-ID:
<319BE206.5FF5@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> <319A7F0F.2633@synapse.net> <4ne3qm$il8@bushwire.mira.net.au> <319ABD82.20E2@synapse.net> <4nfvrt$7hl@fugue.clari.net>Show Full Headers
Complete Article Headers
Message-ID: <319BE206.5FF5@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> <319A7F0F.2633@synapse.net> <4ne3qm$il8@bushwire.mira.net.au> <319ABD82.20E2@synapse.net> <4nfvrt$7hl@fugue.clari.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-mail X-Deja-AN: 155239837 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)