Thread View: news.software.nntp
17 messages
17 total messages
Started by Evan Champion
Thu, 09 May 1996 00:00
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Thu, 09 May 1996 00:00
Date: Thu, 09 May 1996 00:00
87 lines
4660 bytes
4660 bytes
jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) wrote:
>One could instead generate the directory based on the time of article
>arrival. By example suppose we generate the directory name based on the
>day of month, hour, and minute. It would store the typical few hundred
>articles that arrive during that minute on one directory. Then it would
>move on to the next directory.
For people running 1 disk that would probably be the best plan. What
about running more than 1 disk in a non-RAID configuration, however.
Storage by message ID will remove the dependence on symlinks and
depending on the method it has the potential to allow people to just
keep adding disks without having to worry about RAID hardware or
software.
Given the following spool directory tree
/var/news/spool/disk1 -> 128 directories -> 128 more etc
disk2 -> 128 directories -> 128 more etc
disk3 -> 128 directories -> 128 more etc
It should be more efficient to have INN spray the articles over disk
1, 2 and 3 first rather than by date or time.
>The advantage over the message ID is that articles are stored grouped
>by arrival time instead of by newsgroup. For a feed site this means that
>not only does storage result in less seeks but transmission as well. The
>queue of a newsfeed will also be generated in directory sequence without
>having to sort it.
That is certainly an advantage.
>The disadvantages are that:
> - It is no longer possible to go directly from message ID to
> article pathname. The history file would need to contain
> the generated pathname. (Actually the INN history contains
> the arrival date so that is part of the needed information.)
That isn't really an issue for me, and I assume it isn't for most
other admins. All that I ask is that in the news log, full article
paths still (optionally) get logged so I can easily track down user
spams, etc. (just like today with the nntplink support defined).
> - readers would be at a disadvantage as to them reading a group
> would require jumping all over.
Unless there is an obvious performance hit, a reader shouldn't really
notice.
Of the "less work" methods, I think storage by message ID (preferably
in a way favourable to multi-disk systems) is the best way to do it.
Of the "more work" methods, I think the best performance etc. gains
are to be made by creating an INN file system and including things
like overview data right in with the article, so no separate overview
files and no expireover program. It could use a raw filesystem, or
for systems where this is difficult (ie: can't do raw filesystem
access after the system enters multiuser mode), create 1 file per disk
that spans the entire disk and then use it the same way you would a
raw partition. No (low) filesystem overhead, INN can internally cache
the filesystem tables for fast access, maybe even have the filesystem
record that a message ID was expired (without fully removing the
message ID) so you wouldn't need a separate history file. mmap() the
"directory" for each disk and then when expire (and nnrpd, and other
programs too perhaps) runs it could just attach itself to the
directory index without having to build an in-memory index itself.
Lots of interesting possibilities here.
I see the "more work" case, however, as perhaps inn 2.0 :-) The more
I think about it, the more that case looks like a database engine with
various clients. If that is the basis, then instead of having the
system set up the way it is today, why not either build a database
engine or use an existing one and instead of having it talk SQL have
it talk NNTP. Servers connections would work just like reader
connections, except they would have a different command set available.
Expire would be a database client which just runs around marking
articles as deleted. The INN "server" would be nothing more than
something that waits for a connection and then fork/execs the
appropriate client.
Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: Heiko W.Rupp
Date: Thu, 09 May 1996 00:00
Date: Thu, 09 May 1996 00:00
27 lines
1865 bytes
1865 bytes
In <4mt0lg$eag@piano.synapse.net>, Evan Champion wrote:
:|jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) wrote:
:|> - readers would be at a disadvantage as to them reading a group
:|> would require jumping all over.
:|
:|Unless there is an obvious performance hit, a reader shouldn't really
:|notice.
I think - at that point one should divide just more as Rich already did
with his decision to separate reader and feeder. For hosts that mostly
feed one has to apply different strategies, that for hosts that have
mostly readers.
The Machine at work has about 80 outgoing feeds and perhaps two or
three local readers - this machine could be without loss optimized for
feed only. On the other hand there are machines that have some hundreds
of readers and one incoming and one outgoing feed. These have jsut
totally different needs. And the third group - the leaf sites which
only get a subset and one feed and also only have one reader can run
actual inn with actual fs still for several years ...
--
Heiko W.Rupp Gerwigstr.5 D-76131 Karlsruhe +49 721 9661524
A translated sentence from a Russian chess book: A lot of water
has been passed under the bridge since this variation has been played.
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Sun, 12 May 1996 00:00
Date: Sun, 12 May 1996 00:00
82 lines
4865 bytes
4865 bytes
Heiko W.Rupp wrote: > I think - at that point one should divide just more as Rich already did > with his decision to separate reader and feeder. For hosts that mostly > feed one has to apply different strategies, that for hosts that have > mostly readers. > The Machine at work has about 80 outgoing feeds and perhaps two or > three local readers - this machine could be without loss optimized for > feed only. On the other hand there are machines that have some hundreds > of readers and one incoming and one outgoing feed. These have jsut > totally different needs. And the third group - the leaf sites which > only get a subset and one feed and also only have one reader can run > actual inn with actual fs still for several years ... True, but I don't think that it is so "black and white" any more. If we're just looking at impact on NNTP readers (as opposed to local spool readers), an awful lot can be done to the server without them even noticing. As far as I'm concerned, as long as a reader isn't waiting around for the initial connection and isn't waiting around for an article to start sending, a reader will probably not notice any difference. In my case, the network speed difference between the server and client (100baseTX vs. 28.8 modem or ISDN) is such that once an article is found and the transfer begins, the client will always become the limiting factor to performance. I don't think either of those major requirements are limited to readers. To me, the differences between servers and clients are, in general: - clients access articles that have long since been purged from any caches; a lot of effort is put in to making sure that servers feed from cache - clients read directories one at a time, but within a directory read articles in random order (due to threading); servers read in received date order - clients receive a much smaller subset of articles than servers - clients can handle latency much better - clients are more concerned with newsgroups and article numbers than message IDs; servers only care about message IDs So, on a single disk (or RAID) configuration, a server-only system would want good article caching combined with articles stored by message ID in received date order. On a multi-disk (non-RAID) configuration, a server-only system would want articles evenly stored across all disks and by message ID. If there was some way to work in date sorting too, all the better. A reader-only system would want articles stored more or less as they are right now, except when multiple disks (non-RAID) are involved. In that case, probably the same setup used for a multi-disk (non-RAID) server-only configuration would be best. RAID systems are expensive but individual disks are cheap. Single disk news servers are becoming a thing of the past; you can't get disks that are big enough or fast enough to do either a reader-only or server-only configuration well enough. Thus, a configuration that is tilted more towards multi-disk (non-RAID) is probably a good idea. From my initial random thoughts on the matter :-) it would seem that if it is accepted that multi-disk (non-RAID) is the most realistic configuration, both servers and clients would benefit most from the same (or similar) filesystem. News readers that read by message ID and any server feeds would see big performance boosts; readers that read by newsgroup/article would see either no change (due to the overhead of having to translate newsgroup/articles in to message IDs and vice versa) or would see modest performance improvements from better spool management alone. I would expect that news readers that read by newsgroup/article would be revised to read by message ID if the changes we're talking about were made standard in an upcoming INN. I don't think there are many cases where as system would be worse off then right now except those who read the local spool directly. I think they form a very small minority of readers and they will be screwed anyway by any changes made to the spool filesystem. Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: Jerry Aguirre
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
21 lines
1633 bytes
1633 bytes
In article <4mt0lg$eag@piano.synapse.net> evanc@synapse.net (Evan Champion) writes: >Of the "more work" methods, I think the best performance etc. gains >are to be made by creating an INN file system and including things >like overview data right in with the article, so no separate overview >files and no expireover program. It could use a raw filesystem, or Storing the NOV in with the article seems like a giant step backwards. The entire purpose of the NOV files is to be able to quickly and efficiently supply the threading information of a group to a reader. The information in the overview files IS in the article. The point of extracting it to a common point is to avoid accessing the articles. The multi-articles in one file concept depends on storing the articles more or less in arrival order. Thus to extract NOV information for a group one would have to seek all over the disk to find the articles in the same group. And do this repeatedly for every reader for every group.
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
16 lines
1423 bytes
1423 bytes
Jerry Aguirre wrote: > Storing the NOV in with the article seems like a giant step backwards. Perhaps I said it poorly. What I meant was that in a raw INN filesystem of some sort, it would be advantageous to have the overview data available in a similar ease of access as things like permissions are in a UNIX filesystem -- I guess more like attributes associated with the file. There is little point in storing the NOV in the same physical file as an article -- If you're going to bother to open the article, why not just read the entire header and save the effort of having to come up with the NOV data. Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: Brad Templeton
Date: Tue, 14 May 1996 00:00
Date: Tue, 14 May 1996 00:00
61 lines
3329 bytes
3329 bytes
In article <3197E129.5327@synapse.net>, Evan Champion <evanc@synapse.net> wrote: >Jerry Aguirre wrote: >> Storing the NOV in with the article seems like a giant step backwards. > >Perhaps I said it poorly. What I meant was that in a raw INN filesystem >of some sort, it would be advantageous to have the overview data >available in a similar ease of access as things like permissions are in a >UNIX filesystem -- I guess more like attributes associated with the file. >There is little point in storing the NOV in the same physical file as an >article -- If you're going to bother to open the article, why not just >read the entire header and save the effort of having to come up with the >NOV data. > >Evan To decide what to do, examine the behaviour of the various systems: a) Incoming feeds wish to write out articles in arrival order as efficiently as possible. Once per article b) Outgoing feeds wish to read articles from a subset of the arrival order list, once per article per feed. Full feeds of course do the full set. c) Expiring systems wish to remove pointers to the articles, in expire order which is a variation of arrival order but may be quite different. They also need to make the space used by the articles available for use by the incoming feed system. d) Readers wish to read the headers of all the articles in a subscribed group since the last read, plus possibly some from the past. This is an extremely common operation. e) Readers also read the text of articles, but these are selected in a semi-random fashion in moderate to high volume groups, tending of course to be from the most recent set of articles, and almost always from the set of articles covered by (d). In low volume groups, readers read most or all of the articles. Consider these patterns in deciding the best scheme. It strikes me that: a) Reading in the overview for new articles must be the most efficient task, unless you have a site with very little reading. This is also the task that humans have to wait for. b) Reading actual articles does not need to be nearly so efficient, but since humans wait for it, it should be as efficient as reasonably possible. As noted in previous discussions, the best way to store articles is probably in large batches in what might be called expire order, which is to say in a series of circular buffers based on expire categories, calculated as articles come in. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Wed, 15 May 1996 00:00
Date: Wed, 15 May 1996 00:00
25 lines
1886 bytes
1886 bytes
Brad Templeton wrote: [a lot of stuff I agree with removed] > As noted in previous discussions, the best way to store articles is probably > in large batches in what might be called expire order, which is to say in > a series of circular buffers based on expire categories, calculated as > articles come in. That's fine. I'm not arguing with any of your logic. My major problem with that method is that it isn't really condusive to multiple disk (non-RAID) configurations. RAID is expensive, disks are cheap, and Usenet is growing beyond the bounds of any single disk configuration, so to me it makes a lot of sense to design a system with that in mind. There are distinct advantages to all the proposed systems, and any of them is an improvement over what we are using right now for perhaps all but a very small minority, irrespective of whether the server is primarily for readers, servers or some combination thereof. As was said last time this came around, if you've got an idea, produce a patch set to inn1.4unoff4 and let's see how it works. Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Wed, 15 May 1996 00:00
Date: Wed, 15 May 1996 00:00
37 lines
2593 bytes
2593 bytes
Mark Delany wrote: > I agree with Evan's other comments, but I beg to differ with this > one. Couldn't a circular buffer be defined to spans disks or > partitions? It could certainly be done (I am a firm believer that nothing is impossible :-). It just isn't as directly applicable to multi-disk configurations as some of the other ideas are. > define cycle1 alt.* /dsk1/somefile,500M /dsk2/somefile,2G /dsk3/.. > define cycle2 local.* /dsk5/somefile,200M > > The code complexity to handle news in a cyclic buffer is reasonably > large, so the code fragment needed to calculate an offset into an > array of files is not much of an additional burden. I don't like this particular method because you are saying that only a certain set of disks will be used to store particular hierarchies. That is effectively what happens in the current INN configuration with multiple disks, where you end up having an alt disk, an alt.binaries disk, a comp disk, etc. You end up wasting a lot of space if you are not prepared to constantly juggle things around. It becomes a real pain IMHO. A system that uses all disks equally is to me very desirable (more desirable than the expire benefits you get from circular buffers). 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. The problem is that if you have M active buffers (ie: buffers being updated) and N disks, you need M*N open files. It doesn't take much to get that to grow to a number that could cause some concern. Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: 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
Re: Storage of Usenet News Articles by MD5 Hash
Author: Mark Delany
Date: Thu, 16 May 1996 00:00
Date: Thu, 16 May 1996 00:00
34 lines
1831 bytes
1831 bytes
Evan Champion <evanc@synapse.net> writes: >Brad Templeton wrote: >[a lot of stuff I agree with removed] >> As noted in previous discussions, the best way to store articles is probably >> in large batches in what might be called expire order, which is to say in >> a series of circular buffers based on expire categories, calculated as >> articles come in. >That's fine. I'm not arguing with any of your logic. My major problem with >that method is that it isn't really condusive to multiple disk (non-RAID) >configurations. I agree with Evan's other comments, but I beg to differ with this one. Couldn't a circular buffer be defined to spans disks or partitions? define cycle1 alt.* /dsk1/somefile,500M /dsk2/somefile,2G /dsk3/.. define cycle2 local.* /dsk5/somefile,200M The code complexity to handle news in a cyclic buffer is reasonably large, so the code fragment needed to calculate an offset into an array of files is not much of an additional burden. Sort of an AID for news. (I'm not sure whether that pun is bad or terrible, probably both, sigh). Regards.
Re: Storage of Usenet News Articles by MD5 Hash
Author: 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
Re: Storage of Usenet News Articles by MD5 Hash
Author: Brad Templeton
Date: Thu, 16 May 1996 00:00
Date: Thu, 16 May 1996 00:00
47 lines
2843 bytes
2843 bytes
In article <319ABD82.20E2@synapse.net>, Evan Champion <evanc@synapse.net> wrote: >Mark Delany wrote: >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. 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. 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. 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. 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. This is still *MUCH* better than any one file per article system which requires a file open and disk space allocation for *every* article. MUCH MUCH MUCH MUCH better. 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. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Storage of Usenet News Articles by MD5 Hash
Author: Mark Delany
Date: Thu, 16 May 1996 00:00
Date: Thu, 16 May 1996 00:00
63 lines
3434 bytes
3434 bytes
Evan Champion <evanc@synapse.net> writes: >> define cycle1 alt.* /dsk1/somefile,500M /dsk2/somefile,2G /dsk3/.. >> define cycle2 local.* /dsk5/somefile,200M >> >> The code complexity to handle news in a cyclic buffer is reasonably >> large, so the code fragment needed to calculate an offset into an >> array of files is not much of an additional burden. >I don't like this particular method because you are saying that only >a certain set of disks will be used to store particular hierarchies. >That is effectively what happens in the current INN configuration >with multiple disks, where you end up having an alt disk, an >alt.binaries disk, a comp disk, etc. You end up wasting a lot of >space 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. >if you are not prepared to constantly juggle things around. It I agree. Everyone has their own article TTL policy and a generalized thing cannot hope to be prescient about such strategies. I would probably punt for one or two supplied rule mechanisms such as above and provide an escape hatch for user supplied strategies. It's just too hard and too variable to have a mechanism that solves everyone's needs. >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 problem is that if you have M active buffers (ie: buffers being >updated) and N disks, you need M*N open files. It doesn't take much >to get that to grow to a number that could cause some concern. 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? But yeah, it is potentially a problem for OSes running significant news systems on serious machines with multiple spindles (and maybe multiple controllers) that only support, say, 64 open fds per process. Regards.
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Fri, 17 May 1996 00:00
Date: Fri, 17 May 1996 00:00
51 lines
3514 bytes
3514 bytes
Brad Templeton wrote: > Today 5 days isn't hard, since 1gb of disk costs $200. Sure, for an IDE. It is around to CAN$1000 for the Barracuda 2 GB SCSI-2 fast/wide which is the smallest disk size I can buy (I would actually skip 2 GB entirely and buy the Barracuda 4 GBs, which I'm guessing is around CAN$1500). The problem isn't that I can't afford to buy more space, it is that I can't effectively use the space once I buy it. I refuse to do the symlink stupidity, so RAID is currently my only choice. No RAID internal controllers are supported by BSD/OS, which leaves external RAID cabinets. I'm not sure if you've ever looked in to what companies charge for RAID cabinets, but it is outrageous for what you are buying. I have seen *moderate* 5 disk cabinets where they charge CAN$2000 for just the box, not including the controller (the controller was about CAN$6000 in that model), and then you have to buy the disks on top. Don't even get me started on what StorageWorks and co. want for a RAID pack. The cheapest one I have seen so far would cost me something like CAN$6000 plus disks. Once you get to 5-7 disks on the RAID box, you have to buy another one anyway just because there's no more space in the cabinet, and unless you're doing wide you can't put any more disks on the bus even if there was more space in the cabinet. Even if you ran wide, I don't think there is any sane individual out there who thinks that they could run 15 modern hard drives off a 20 MB/s bus. I can think of a few new disks where _2_ of them on a SCSI-2 fast/wide bus would toast the bus at their _minimum_ transfer rate. At a certain point, not even RAID is the answer. > As for striping it's really not that hard to do. You can stripe pretty > easily at just about any level you want. Frankly I think you would be > better to store one article on one disk drive and distribute articles > over the drives. Striping blocks so one file is on many drives is good > if you want very fast access to the files, but news doesn't need that > at all. That's exactly what all the multi-disk condusive proposals do. I think that right now I am prepared to say "I will accept anything as long as it will handle many disks in an efficient manner." I would put 20-40 GB on-line tommorow if I could use it efficiently. At that point, I don't suppose I'd particularly care about tuning my expiration, so maybe a real circular buffer would be a good solution so long as it wrote the articles across disks. Just do everything you would normally do on a circular buffer, but have it continuously cycle file descriptors to write the articles over multiple disks. Evan
Re: Storage of Usenet News Articles by MD5 Hash
Author: Brad Templeton
Date: Fri, 17 May 1996 00:00
Date: Fri, 17 May 1996 00:00
26 lines
1794 bytes
1794 bytes
In article <319BE206.5FF5@synapse.net>, Evan Champion <evanc@synapse.net> wrote: >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. Sure, but you can't do better than having every block in use. I think you can tune the allocation of the binaries to get *better* retention than any time based expire. Today 5 days isn't hard, since 1gb of disk costs $200. As for striping it's really not that hard to do. You can stripe pretty easily at just about any level you want. Frankly I think you would be better to store one article on one disk drive and distribute articles over the drives. Striping blocks so one file is on many drives is good if you want very fast access to the files, but news doesn't need that at all. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Storage of Usenet News Articles by MD5 Hash
Author: Rich Salz
Date: Sun, 19 May 1996 00:00
Date: Sun, 19 May 1996 00:00
12 lines
1065 bytes
1065 bytes
In <319D11EE.396F@synapse.net> Evan Champion <evanc@synapse.net> writes: > I refuse to do the symlink stupidity, >so RAID is currently my only choice. ... The cheapest one I have seen so > far would cost me something like CAN$6000 plus disks. I don't understand the problem. You don't like symlinks (what's the "stupid" part?) and you don't like the alternative. Most times you don't get an alternative... /r$
Re: Storage of Usenet News Articles by MD5 Hash
Author: Evan Champion
Date: Sun, 19 May 1996 00:00
Date: Sun, 19 May 1996 00:00
15 lines
1290 bytes
1290 bytes
Rich Salz wrote: > I don't understand the problem. You don't like symlinks (what's the > "stupid" part?) and you don't like the alternative. Most times you > don't get an alternative... I consider it to be a "lesser of two evils" consideration, but since people are looking at changing the INN filesystem, why not take the opportunity to add a few more alternatives that may be more pleasing while not really sacrificing anything nor adding large amounts of additional complexity? Evan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads