Thread View: news.software.nntp
5 messages
5 total messages
Started by Joe Greco
Fri, 27 Jun 1997 00:00
ANNOUNCE: The Great Cancel Problem
Author: Joe Greco
Date: Fri, 27 Jun 1997 00:00
Date: Fri, 27 Jun 1997 00:00
31 lines
1834 bytes
1834 bytes
Okay, I just wanted your attention :-) Cancel volume has become a problem for many. A great deal of the problem is that the time required to scan a multi-hundred-kilobyte control/cancel directory is quite significant. Years ago, I ran into this same problem, when I was running news on a Sun 3/60 with some not-zippy SCSI-I 660MB drives, and I devised a solution. Because (almost) nobody uses NNRP to read control/cancel, I decided it would be acceptable to deviate from standard spool format. I wrote a simple patch to take a cancel filename like control/cancel/1234567890 and change it to control/cancel/56/78/1234567890. The choice of digits was to ensure locality of reference (I wanted it to stay in the same directory for a while and then switch). The number of directories, etc., is somewhat arbitrary. I _HAVE_NOT_TESTED_ this patch in years. I did bash it in and install it on a 1.4u4 machine this morning, and it seemed to work, but there are other patches on that 1.4u4 machine. YOU USE THIS PATCH AT YOUR OWN RISK. YOU NEED TO READ THE COMMENTS AT THE START OF THE PATCH. Now that I am done screaming the things you won't have listened to anyways, I'll mention that you may find the patches at http://www.nntp.sol.net/patches ... JG
Re: ANNOUNCE: The Great Cancel Problem
Author: Brian Murrell
Date: Fri, 27 Jun 1997 00:00
Date: Fri, 27 Jun 1997 00:00
46 lines
2289 bytes
2289 bytes
Joe Greco wrote: > > Okay, I just wanted your attention :-) You got it! > Cancel volume has become a problem for many. A great deal of the problem > is that the time required to scan a multi-hundred-kilobyte control/cancel > directory is quite significant. But it's not just limited to cancels. There are some other newsgroups which create quite large directories. > Because (almost) nobody uses NNRP to read control/cancel, I decided it > would be acceptable to deviate from standard spool format. I wrote a > simple patch to take a cancel filename like control/cancel/1234567890 > and change it to control/cancel/56/78/1234567890. > The choice of digits was to ensure locality of reference (I wanted it > to stay in the same directory for a while and then switch). The > number of directories, etc., is somewhat arbitrary. OK. So this scheme breaks nnrpd. Not difficult to fix if one wanted to expand beyond just control.cancel. I'm wondering about the feasibility of extending this patch to create a generic rule about when to start spreading a newsgroup into multiple subdirectories. The problem is of course, what metric can one use to decide that a newsgroup needs to be split? How does innd know when a directory is too large and to start to create subdirectories to put the articles into. Perhaps it's a manual flag that has to be set by the news admin when he/she finds a horribly large group. Thots? b. -- Brian J. Murrell Brian_Murrell@bctel.net BCTel Advanced Communications brian@ilinx.com Vancouver, B.C. brian@wimsey.com 604 454 5279
Re: ANNOUNCE: The Great Cancel Problem
Author: Chris Adams
Date: Fri, 27 Jun 1997 00:00
Date: Fri, 27 Jun 1997 00:00
25 lines
1683 bytes
1683 bytes
Joe Greco <jgreco@ns.sol.net> wrote: >Cancel volume has become a problem for many. A great deal of the problem >is that the time required to scan a multi-hundred-kilobyte control/cancel >directory is quite significant. I have been thinking about this in the more general case. On machines accessed only through NNRP, you could change the layout any way you want. Some have talked about using some type of database, but that is a pretty radical change. How about something like what you describe for the whole spool, except instead of /1234567890 -> /56/78/1234567890 have something like /1234567890 -> /5.6/7.8/1234567890 (just to make sure you don't conflict with valid article numbers). Then you could even have the old and new co-exist for a few weeks while you transition to the new format. Eventually, as news volume grows, other groups will have the same problem as the control/cancel group does now. Why not try to fix the problem before we get there? -- Chris Adams - cadams@ro.com System Administrator - Renaissance Internet Services I don't speak for anybody but myself - that's enough trouble.
Re: ANNOUNCE: The Great Cancel Problem
Author: Joe Greco
Date: Sat, 28 Jun 1997 00:00
Date: Sat, 28 Jun 1997 00:00
55 lines
2971 bytes
2971 bytes
In news.software.nntp article <5p17ds$7li@sh1.ro.com>, cadams@sh1.ro.com (Chris Adams) wrote: :Joe Greco <jgreco@ns.sol.net> wrote: :>Cancel volume has become a problem for many. A great deal of the problem :>is that the time required to scan a multi-hundred-kilobyte control/cancel :>directory is quite significant. : :I have been thinking about this in the more general case. On machines :accessed only through NNRP, you could change the layout any way you :want. Some have talked about using some type of database, but that is a :pretty radical change. How about something like what you describe for :the whole spool, except instead of /1234567890 -> /56/78/1234567890 have :something like /1234567890 -> /5.6/7.8/1234567890 (just to make sure you :don't conflict with valid article numbers). Then you could even have :the old and new co-exist for a few weeks while you transition to the new :format. : :Eventually, as news volume grows, other groups will have the same :problem as the control/cancel group does now. Why not try to fix the :problem before we get there? Because I'm inherently lazy, and some of us have moved beyond the realm of directory-per-group restrictions. However, I will note the following thing(s). It would not be impossible to extend this mechanism. Since we have not totally diverged from the traditional method, nnrpd will still scan all the entries in (f.e.) /news/control/cancel. If one were to change the format used to create the filenames to something like "control/cancel/1234567890"->"control/cancel/sub.56/sub.78/1234567890" you can then do something clever in nnrpd: in GRPscandir, you modify it to recurse into any directory beginning with "sub.*", and read all the articles in such a directory too. This would automatically pick up all files in "sub.56" (no files but more subdirectories) and "sub.78" (where all the files would be). That's the main problem, and it is solvable. Because you generate the subdirectory names in a deterministic manner, based on the message number, you won't have unsolvable problems elsewhere. This is horribly inefficient, but then again, so's doing a directory scan of a 1MB directory. That might be a good thing for all the *.jobs.offered groups. Then again, a good rmgroup would fix it too. ... JG
Re: ANNOUNCE: The Great Cancel Problem
Author: Darrell Fuhriman
Date: Mon, 30 Jun 1997 00:00
Date: Mon, 30 Jun 1997 00:00
29 lines
1517 bytes
1517 bytes
cadams@sh1.ro.com (Chris Adams) writes: > Eventually, as news volume grows, other groups will have the same > problem as the control/cancel group does now. Why not try to fix the > problem before we get there? There are other proposals that abandon the hierarchical storage method altogether. That is the only real long term solution. Scott Fritchie's CNFS is one example, and is the best idea going right now. One idea that was proposed, and I think Scott did some preliminary work on is hierarchical storage using an MD5 hash of the newsgroup name, so news.software.nntp == 88afb0f0b97cbc46a30955fef1b3f840 ..spool/news/software/nntp == ..spool/88/af/b0/f0/b9/7cbc46a30955fef1b3f840 which could be easily extended such that ..spool/news/software/nntp/12345 == ...3f840/12/34/5 However, it still makes more sense to abandon that storage method altogether. Darrell
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