Article View: news.software.nntp
Article #51286Sv.: No resources available for overchan
From: 'BOUSWMA Barry MCSE, Te1e Denmar...
Date: Sat, 17 Mar 2001 03:48
Date: Sat, 17 Mar 2001 03:48
211 lines
11979 bytes
11979 bytes
"'foo@sjuft.dk'" <foo@sjuft.dk> skrev i en nyhedsmeddelelse:slrn9afde2.d7l.foo@crackwhore.bash.dk... > I'm experiencing some very nagging problems writing overview-data on our > feeder/reader box. Disclaimer: It is ruthless tooth-and-nail competitive company policy to sabotage all opposition and mercilessly crush any and all by any means necessary, up to and including and especially by providing false and misleading information designed to put the competition at any sort of disadvantage, while gleefully giggling that any sucker would be so foolish as to believe anything. Have you tried `format c:' yet? If so, try turning the power to your computer on and off repeatedly as fast as possible to clear out the stuck overview data that is having difficulty crossing the corroded contacts on your power switch. Also I'm currently blasting my eardrums with a live rave birthday/CD-release party on the radio so it may be difficult for me to understand you or for you to understand me clearly. > We're running INN 2.3.0 with tradindexed overview and cnfs for the spool. The newer INN is totally dependant on overview for everything, so it needs to be a much beefier layout than you may have been able to get away with in the past, where most reader commands hit the spool more heavily than the overview data. > During each overnight expire I start seeing the following in news.err: I'm assuming you started to expire at 05.00h, and that these are the first of the errors to appear, rather than a random grab from the middle of a slew of errors. This is a reasonable time to run expire. Note that I've never (hang on, must check, oh bugger, yes I have, twice in the last 11 days) had problems with the traditional overview like you are seeing, on a relatively beefy RAID-ed overview partition. I had seen these problems far more severely with the buffindex overview to the point where it provided unacceptable performance, and while I never saw these problems with ovdb to the point of affecting performance, there were other issues that caused that overview method to be a totally unacceptable solution at the time. On a lark earlier today for some reason, I took a look at the Sleepycat web site for the first time in something like four months or more, and I see there's a much newer BerkeleyDB available, and the changelog does include a number of mutex-related bugfixes that could be related to the problems I'd experienced. Maybe if I get motivated, I'll see if this has done anything about the stale mutex locks that plagued me. > Mar 8 05:01:19 <news.err> news innd: overalt!:107:proc:53061 cant write > Resource temporarily unavailable > Mar 8 05:01:19 <news.err> news innd: overalt!:107:proc:53061 blocked > sleeping 60 Ugh. This is your default for sleeping, if you haven't increased the sleep time by blocking several times before this? First, what this means is that for whatever reason, your (Slowaris? FreeBSD?) box was unable to update the overview info during the expire with an EAGAIN, and then waits before trying to do anything further for a minute (or 60x30 art/sec or 1800 articles, more or less). > Mar 8 05:02:50 <news.err> news innd: overalt!:107:proc:53061 cant write > Resource temporarily unavailable > Mar 8 05:02:50 <news.err> news innd: overalt!:107:proc:53061 blocked > sleeping 60 60 seconds later, the process starts to write, having accumulated however many hundreds of articles worth of overview data. But after about 30 seconds, again it can't write the data, and again sleeps for 60 seconds. Hard to say how much of these hundreds of articles it's been able to write during this time. Probably not very many if you're waiting on the expire/expireover disk I/O and don't have a lot of spindles to scatter it over. First, what I'd do for your overview feed, just like I recommended in general long long ago for innfeed, is to drop the time you spend sleeping on a blocked channel way way down, like to a second or two. This way, as soon as the channel is able to write again, it will continue to update the data in a second or two, rather than accumulating tons of data. If you're lucky enough, you can write fast enough to clear out the internally-buffered data, which, as you see below (and I discovered here after running two months without any problems) you couldn't. > This will usually continue for 5 hours or more and eventually output Does your expireover run for all those five hours? I hope not. Our expireover finishes in two hours with traditional overview; buffindex took something like most of a day if I remember or something, and I don't remember how long ovdb took, but it was a few hours. > Mar 8 14:53:29 <news.err> news innd: overalt!:107:proc:53061 cant flush > count 16207925 Resource temporarily unavailable > Mar 8 14:53:29 <news.err> news innd: overalt! spooling 16207925 bytes This happened when a control message came in that caused your feeds to close. Up to this time, innd was internally buffering the data for overchan, which was pulling off what it could, but not fast enough to catch up (also meaning newly-arrived articles were not being made available to readers for some time). When the control message or reload or whatever came in, the internally- buffered data had to be written out since innd needed to start a new overview process. If this, nearly ten hours after what I hope was the start of your expire process, is well after expire has run, then you need much beefier overview spool storage to be able to write the data much faster. On the other hand, if your overchan processes are stepping on each other or expireover and then not doing anything for a minute of incoming news, then you are losing a lot of time that your disks could be doing something just by sleeping so long. > Does this mean that writing the overview-data has been dropped? It seems > that large parts of overview-data on the server are often missing. Yes. This overview data couldn't be written in time, and in addition, probably one article has been completely lost if its overview data only partially appears in the spooled data. > In /var/news/spool/outgoing large overview-spools keep hanging around: > -rw-rw-r-- 1 news news 134088179 Feb 5 21:53 overview! > -rw-rw-r-- 1 news news 147998758 Mar 8 14:53 overalt! > -rw-rw-r-- 1 news news 94543964 Mar 8 14:53 overrest! Sometime around 05.Feb you made the switch from a single overchan process to split ones. You are trying to do somewhat more work on the alt overchan process, whereas I've divided by size and see a slightly more equal distribution, but not significantly given the unpredicatbility of which process blocks. These files contain most of the missing overview data. Any time you find them, you should process them by feeding them to overchan (you may want to rename them first, at the rate they get dumped, since at this size it will take some time to process them and this will also further slow your other overchan processes. If not, then after you process them, you should delete them if they haven't been appended to further by additional overchan barfage. If they have grown and have updated timestamps, then start from the beginning again). This will cause the missing articles, apart from those with only partial overview data (you'll see junk spit to stderr about that for each corrupt bit of overview), to reappear. Well, to appear for the first time. But with files of this size, um, geez, expect it to take many hours to chew through them all, probably. Decreasing the time you block (and there are probably other parameters you can tweek to minimize how much you sleep, but I'd have to dig for them and I'm lazy) will probably keep the size of these files down, in the future, if not eliminate them entirely. However, seeing that we have been expireover-ing for the last hour and a half and I get nary a match for `sleep' or `block' in the news logfile in all this time tells me that you probably need to do more work too, if you block in a minute or two after starting to expire. We have a small but dedicated readership of about 30 readers at this time, down from about 50 when we had this swerver open to the world, I'm not sure how your 5am readership levels compare. Our two dumps are dated during expireover, unsurprisingly. It's possible that they happend during the newgroup floods before I caught them, but their size is no more than a few hundred k. Let me process them right now and make the missing articles magically appear: There. 8 seconds for 100k (no partial data), 28 seconds for 300k, and again no partial data. If this weren't another reason to shut down this machine permanently, I'd try to keep a closer eye on this spool rather than pretend the problem doesn't exist with traditional overview. /path/to/overchan /var/news/spool/outgoing/overview-data no command arguments needed. > To just rebuild overview: > makehistory -O -x -F > Will this require a throttle of INN, or will I be able to rebuild the > overview pretty much transparent to the readers? I've done this with tradindex after the last fatal crash without throttling, but I don't know if that or the crash itself was the cause of the problems that seem to have appeared since that time and are more of my reason for wanting to yank the power to this machine and give it its long-promised airplane-ride on the roof. If you wanted to be completely safe, you could remove the old overview data, which I did not do, that perhaps has something to do with the problems I've experienced. Then innd is generating overview data for new articles (if it's running) and the old article data is recreated from the spool proper. You should be able to run overchan on the dropped data without any problems, that will give you most articles back. Any missing articles caused by corrupt overview data spooled will require the makehistory command above to rebuild all article overview data. This, if needed, can be done transparently without major fatal flaws. There may be some inaccuracies with the active data, but almost all reader clients should have no problems with this, and as far as the problems I've seen myself, I really don't know if they're at all related to the parallel rebuilding/running of overview, or if they're a result of corruption caused by an unclean shutdown and OS panic. BOUSWMA Barry, MCSE Disclaimer: as we are a purely 100% microsoft shop, the above info is applicable only to the windows port of INN.
Technical Details
Message-ID:
<E75A9257CB5903.1856AC9D957F0B@microsoft.com>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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!nautilus.visp-europe.psi.com!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2newsReferences:
<slrn9afde2.d7l.foo@crackwhore.bash.dk>Show Full Headers
Complete Article Headers
Message-ID: <E75A9257CB5903.1856AC9D957F0B@microsoft.com> Subject: Sv.: No resources available for overchan Date: Sat, 17 Mar 2001 03:48:31 +0000 From: "'BOUSWMA Barry MCSE, Te1e Denmark Internet'" <pedophile@te1edanmark.dk> References: <slrn9afde2.d7l.foo@crackwhore.bash.dk> 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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!nautilus.visp-europe.psi.com!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news Organization: Te1e Denmark Internet Newsgroups: news.software.nntp X-Pedophile: BARRY BOUWSMA IS AN ANALRETENTIVE ANALYTICAL PEDOPHILE!!! Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Mail-To-News-Contact: postmaster@nym.alias.net Lines: 210