kls@ditka.UUCP (Karl Swartz) (03/16/90)
A few weeks ago there was a brief discussion of C news on the AT&T 3B1/7300. Unfortunately I was busy at the time and those messages expired before I got to them. Last weekend I spent a number of hours trying to get it working and mostly ended up with a deep hatred for the awful configuration script. Could someone tell me how to get C news up on one of these machines, if it's doable? (Post if you think the information will be of general interest though given the recent discussion I suspect e-mail would be best.) If C news isn't feasible, what about B news with mdbm? I have been running 2.11.8 with the hashed history files but wanted to get some extra speed and so tried to use the mdbm posted by Dave Ihnat, upgrading to 2.11.14 in the process, now that the lost inode bug is fixed in the kernel. Unfortunately expire keeps exploding and then everything goes to hell with messages about history.dir and history.map not being linked. Having already wasted quite a few hours on C news I really didn't feel like a long debugging session so I reverted to the old, slow, 2.11.8 and hashing. Any and all suggestions will be greatly appreciated. -- Karl Swartz |UUCP uunet!apple!zygot!ditka!kls 1-408/223-1308 |INet zygot!ditka!kls@apple.com "I never let my schooling get in |BIX kswartz the way of my education."(Twain) |Snail 1738 Deer Creek Ct., San Jose CA 95148
adam@cs.UAlberta.CA (Michel Adam; Gov't of NWT) (03/17/90)
In article <22541@ditka.UUCP> kls@ditka.UUCP (Karl Swartz) writes: >A few weeks ago there was a brief discussion of C news on the >AT&T 3B1/7300. Unfortunately I was busy at the time and those >messages expired before I got to them. Last weekend I spent a >number of hours trying to get it working and mostly ended up >with a deep hatred for the awful configuration script. Could >someone tell me how to get C news up on one of these machines, >if it's doable? (Post if you think the information will be of >general interest though given the recent discussion I suspect >e-mail would be best.) I would also be interested in any and all info on this, as I am about to try to install it. Please post, or e-mail me. Thanks in advance. Michel Adam Yellowknife, N.W.T. !alberta!adam or !alberta!iceman!michel
levin@magnus.Hotline.Com (Michael M Levin) (03/20/90)
In article <22541@ditka.UUCP> kls@ditka.UUCP (Karl Swartz) writes: >...Could >someone tell me how to get C news up on one of these machines, >if it's doable? It's a pain in the rear end, and it seems too big and clunky for a little 'ole 3B1. >If C news isn't feasible, what about B news with mdbm? I've been running with mdbm for over a year, and the trick to it is in the expire.c program. The problem is that mdbm makes itself look kind of like dbm, but not quite-- there are two files for each of the data and index files. SOoo.... what you do is hack expire.c, as well as making your sure that your system recognizes the plain dbm header file. I think what you'll need to do is to link libmdbm.a to libdbm.a. You also mentioned wanting to upgrade to 2.11b-14. Actually the very latest and greatest is 2.11b-18 (which I _think_ may have included the necessary hacks for using mdbm). In any case, if you'd like, email me and I can send you the expire.c hack (although I don't have the patch- files for 15-18, since once I applied them I trashed them). I s'pose I could even send you the whole thing, but as a compressed tar it is over 350K in length. Let me know if I can help. Mike Levin -- _ _ | | ___ ___ |_| ___ Michael Levin SilentRadio Headquarters- Los Angeles | |/ ._\| | || || \ 20732 Lassen Street, Chatsworth CA 91311 U.S.A. |_|\___/ \_/ |_||_|_| E-Mail: levin@Hotline.Com {att|csun|srhqla}!magnus!mml
bdb@becker.UUCP (Bruce Becker) (03/21/90)
In article <647@magnus.Hotline.Com> levin@magnus.Hotline.Com (Michael M Levin) writes: |In article <22541@ditka.UUCP> kls@ditka.UUCP (Karl Swartz) writes: |>...Could |>someone tell me how to get C news up on one of these machines, |>if it's doable? | | It's a pain in the rear end, and it seems too big and clunky for a | little 'ole 3B1. The 3B1 is an easy port for C News, I'm told. A friend put it up months ago with few headaches, and is an active "evangelist" for it as a result. The 3B1 isn't so "little 'ole", in any case 8^)... -- ,u, Bruce Becker Toronto, Ontario a /i/ Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu `\o\-e UUCP: ...!uunet!mnetor!becker!bdb _< /_ "Paranoia is its own reward" - W. Disney
kls@ditka.UUCP (Karl Swartz) (03/22/90)
In article <647@magnus.Hotline.Com> levin@magnus.Hotline.Com (Michael M Levin) writes: >In article <22541@ditka.UUCP> I write: >>Could someone tell me how to get C news up on one of these machines > It's a pain in the rear end, and it seems too big and clunky for a > little 'ole 3B1. Urk? I thought C news was supposed to be ever so much faster than B news, and thus should be better for a little 'ole 3B1?! >>If C news isn't feasible, what about B news with mdbm? Well, a neighbor (scott@zorch.sf-bay.org) sent me dbz 1.9, and I built B news 2.11.14 with that. At first, it built a very nice looking history file and an utterly empty dbz index to it. Turns out I had defined INCORE, which causes dbz to cache as much of the index as it can in memory, with stuff only flushed to disk when you cause dbmclose. B news hasn't a clue what dbmclose is and so everything is happily built in memory and left there. The right solution would have been to put in the calls to dbmclose (do the newer patch levels do this?) but for now I just took out the INCORE definition. With that, news is running happily and swiftly. I'd still like to take a look at C news but time is short at the moment and with dbz working ditka can handle the current load with aplomb. Besides, if it t'aint broke, why fix it? :-) The modification time on the inews I was running until last weekend was Feb 8 1988, so having the latest and greatest isn't *that* big a deal for me! Also, I hear the C news folks are completely redoing the config- uration script, and waiting until that is done seems like a truly marvelous idea -- I'd just as soon never see the current obnoxious script again. -- Karl Swartz |UUCP uunet!apple!zygot!ditka!kls 1-408/223-1308 |INet zygot!ditka!kls@apple.com "I never let my schooling get in |BIX kswartz the way of my education."(Twain) |Snail 1738 Deer Creek Ct., San Jose CA 95148
henry@utzoo.uucp (Henry Spencer) (03/23/90)
In article <22843@ditka.UUCP> kls@ditka.UUCP (Karl Swartz) writes: >Urk? I thought C news was supposed to be ever so much faster than >B news, and thus should be better for a little 'ole 3B1?! Well, it ran fine on our little 'ole pdp11/44, and we've heard from satisfied customers running it on 3B1s, so there's no inherent problem. >Also, I hear the C news folks are completely redoing the config- >uration script... The revamping of the configuration stuff happened in January. No major changes are planned for it in the near future, although some minor improvements are on the to-do list. -- US space station: 8 years | Henry Spencer at U of Toronto Zoology and still no hardware built. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
jeffl@berick.uucp (Jeff Lawhorn) (03/24/90)
Yes, some of us do have C news running on a little 'ol 3b1. And I am very pleased with it. I've had far fewer problems with it than when I ran B news. If there is enough interest I will make an installable copy of C news available for uucp. Keep an eye out here in the next week or two for a list of things I will have available for anon uucp (including gcc & g++). -- Jeff Lawhorn This way to the Great, jeffl@berick.uucp the Stupendous, \ ucsd!sdsu!berick!jeffl the One and Only =========> *** Egress *** / -- Jeff Lawhorn This way to the Great, jeffl@berick.uucp the Stupendous, \ ucsd!sdsu!berick!jeffl the One and Only =========>
clewis@eci386.uucp (Chris Lewis) (03/24/90)
In article <22843@ditka.UUCP> kls@ditka.UUCP (Karl Swartz) writes: | In article <647@magnus.Hotline.Com> levin@magnus.Hotline.Com (Michael M Levin) writes: | >In article <22541@ditka.UUCP> I write: | >>Could someone tell me how to get C news up on one of these machines | | > It's a pain in the rear end, and it seems too big and clunky for a | > little 'ole 3B1. | | Urk? I thought C news was supposed to be ever so much faster than | B news, and thus should be better for a little 'ole 3B1?! | | >>If C news isn't feasible, what about B news with mdbm? | | Well, a neighbor (scott@zorch.sf-bay.org) sent me dbz 1.9, and I | built B news 2.11.14 with that. | | With that, news is running happily and swiftly. ecicrl (at 3b1) is running B-news 2.11.19 with absolutely no changes whatsover (except for the well known 2.11.19 batcher bug) using the B-news 2.11 built-in multiple file history support (/usr/lib/news/history.d/*[0-9]). Eg: no dbm/sdbm/dbz/ndbm/mdbm whatsoever. And runs quite happily and swiftly. Even when catching up on 8 or more Mb of news in one continuous UUCP slurp. As it did with 2.11.14. Admittedly, ecicrl doesn't receive a full USENET feed, but it's history files are very large because I keep a month's worth of expiry information, and there's a *lot* of internal news traffic (400K+/day). My nightly news management script has 5 or 6 full B-news expire passes, they take, in total, about 10-20 minutes. Mind you, 8Mb of news *in* plus three outgoing feeds has my modem utilized >12 hours/day. And my disk throttles working overtime.... The moral: in B-news, on System V, unless you have a dbm package already around, use the B-news multiple-file history. It works quite nicely and you don't have to muck with the code in any way. The overhead of B-news is *not* DBM lookup, it's the reforking of rnews on each *article*. That's where C-news gets its main speed increment from. The main problem with C-news is that it's history mechanism for those times when you *don't* have a DBM is considerably slower than B-new's non-DBM solution. A C-news site next to ours (a biggish 3b2) was brought up without dbz, it ran about 4 articles/minute. My piddly little 3b1 without dbm was running about 15 or more articles/minute. Without dbz even a biggish 3b2 cannot keep up to a fullish feed, but I have no doubt that my 3b1 running vanilla 2.11.19 could (except for modems and disk space ;-) But, *nothing* I've seen yet can beat a C-news site with a proper DBM. -- Chris Lewis, Elegant Communications Inc, {uunet!attcan,utzoo}!lsuc!eci386!clewis Ferret mailing list: eci386!ferret-list, psroff mailing list: eci386!psroff-list
kls@ditka.UUCP (Karl Swartz) (03/25/90)
In article <1990Mar23.182241.24840@eci386.uucp> clewis@eci386.UUCP (Chris Lewis) writes: >ecicrl (at 3b1) is running B-news 2.11.19 with ... no >dbm/sdbm/dbz/ndbm/mdbm whatsoever. >And runs quite happily and swiftly. Even when catching up on 8 or >more Mb of news in one continuous UUCP slurp. Well, ditka was doing ok until I upgraded to a full feed. Also, as a belt-and-suspenders kind of guy I have several ihave/sendme feeds. Those two combined to make performance without db* unacceptable. I first noticed a serious problem while waiting for a batch to fully unpack so I could power down without interrupting anything. After over 30 minutes working on *one* article (an ihave for 692 article ids) I gave up. Later on I clocked a 96 id ihave (which generated a sendme for 57 of the articles) at 12 minutes, or 8 ids per minutes. Since switching to dbz I haven't done any timings on these suckers, but the hourly run of 'rnews -U' finishes before the next one starts, where before there was a backlog of batches that often approached an entire day's worth of incoming traffic. -- Karl Swartz |UUCP uunet!apple!zygot!ditka!kls 1-408/223-1308 |INet zygot!ditka!kls@apple.com "I never let my schooling get in |BIX kswartz the way of my education."(Twain) |Snail 1738 Deer Creek Ct., San Jose CA 95148
vern@zebra.UUCP (Vernon C. Hoxie) (03/26/90)
In article <23021@ditka.UUCP>, kls@ditka.UUCP (Karl Swartz) writes: > In article <1990Mar23.182241.24840@eci386.uucp> clewis@eci386.UUCP (Chris Lewis) writes: > >ecicrl (at 3b1) is running B-news 2.11.19 with ... no > >dbm/sdbm/dbz/ndbm/mdbm whatsoever. I have missed something in this discussion. Can someone fill in the blanks for dbm/sdbm/dbz/ndbm? Are these commercial/netware packages? What are they supposed to do to C-news beyond the capability of the software in the package? I am not presently attempting to install C-news but garnering info for that fateful event. Thanks!! -- Vernon C. Hoxie {ncar,nbires,boulder,isis}!scicom!zebra!vern 3975 W. 29th Ave. voice: 303-477-1780 Denver, Colo., 80212 TB+ uucp: 303-455-2670
clewis@eci386.uucp (Chris Lewis) (03/27/90)
In article <195@zebra.UUCP> vern@zebra.UUCP (Vernon C. Hoxie) writes: > In article <23021@ditka.UUCP>, kls@ditka.UUCP (Karl Swartz) writes: > > In article <1990Mar23.182241.24840@eci386.uucp> clewis@eci386.UUCP (Chris Lewis) writes: > > >ecicrl (at 3b1) is running B-news 2.11.19 with ... no > > >dbm/sdbm/dbz/ndbm/mdbm whatsoever. > What are they supposed to do to C-news beyond the capability of the > software in the package? Nothing. C-news (and B-news for that matter) need a simple key-value database to maintain a "history" of what articles have been seen already so that duplicate articles get rejected and that various programs can associate an article Message-id with the actual file. The key is the Message-Id, the value is some sort of pointer (eg: file name or history line - depends on news version) to the actual article file. Each of the *dbm's are a set of library routines with pretty similar interface routines. Each of them have substantially different characteristics, none of which particularly matter when used with news. But not all of them are fully compatible with dbm, so your milage when using them elsewhere varies. When discussing news, the term "dbm" is taken both as a generic software package (including all 5 of the ones I've mentioned) as well as a specific implementation. dbm: original simple database mechanism found in V7 UNIX and (I think) still in BSD. Dropped from System V. sdbm: Ozan Yigit's implementation. (Hey Ozan! When's this going to be released again? I want to get it integrated with perl!) PD. dbz: a stripped-down PD version, mostly suitable for news only. It's shipped with C-news, but (at least until recently) Henry hasn't officially blessed it, and I don't think it's part of the "standard" C-news automated build procedure. ndbm: Chris Torek's version, but I *think* you need some sort of AT&T or BSD licensing on the machine that uses it. mdbm: Don't know much about it, but it doesn't sound sufficiently like dbm to be used for anything but news without hacking. [Though, I'm sure I'll be corrected on some of the above...] The reason why you keep hearing about it is that many vendors have dropped dbm from their UNIX releases, and that people need something like it for news. Without a *dbm available, B-news has an alternate history mechanism that works reasonably well except for slowish machines with very large feeds. On the other hand, C-news is unacceptably slow without a *dbm on any substantially sized newsfeed. So you may end up having to futz around trying to install a *dbm that will speed up your news system. If you want more detail, try looking up dbm(3) in Version 7 or Xenix documentation. That will give you a pretty good idea what it looks like. -- Chris Lewis, Elegant Communications Inc, {uunet!attcan,utzoo}!lsuc!eci386!clewis Ferret mailing list: eci386!ferret-list, psroff mailing list: eci386!psroff-list
henry@utzoo.uucp (Henry Spencer) (03/28/90)
In article <195@zebra.UUCP> vern@zebra.UUCP (Vernon C. Hoxie) writes: >> >dbm/sdbm/dbz/ndbm/mdbm whatsoever. > >I have missed something in this discussion. Can someone fill in the >blanks for dbm/sdbm/dbz/ndbm? The news software wants to maintain an index into the history file in some fashion. The original (well, more or less original) method was to use the dbm library found in Version Seven Unix. Unfortunately, dbm was one of the things that got left out of System V, which has created some demand for alternatives. Probably the best of the various alternatives is Jon Zeeff's dbz; an improved version is under test right now for release in the next C News patch. (ETA for that patch is a week or two, barring disasters.) -- Apollo @ 8yrs: one small step.| Henry Spencer at U of Toronto Zoology Space station @ 8yrs: .| uunet!attcan!utzoo!henry henry@zoo.toronto.edu