Article View: news.software.nntp
Article #48864Re: Cyclic buffers changing size
From: Authentic Evil Fluffy
Date: Mon, 23 Oct 2000 23:43
Date: Mon, 23 Oct 2000 23:43
83 lines
4915 bytes
4915 bytes
On 53 Sep 19100, Dr. Rob Blake wrote: > > though. My *suspicion* is a defective mmap implementation, but I could be > > wrong. > > Bah! Curse this FreeBSD :-) Curse *which* FreeBSD? There have been some mmap changes from the time it was seriously b0rken, so you can't expect me to rant and spew and rage against the FreeBSD without telling us which one to put a curse upon... I had a FreeBSD box running for some months where the buffers never exceeded their allocated size, but I may have been running the precautions described below before I figured out why, although I'm pretty sure I chose to throw caution to the wind with the latest INN k0deZ... > > How much have they grown by? > Not much. Check out the ls output at the end of this message. They all > started off of size 524288000. There was a problem with overflows in the original CNFS k0dez, that I'm pretty sure was fixed in the process of creating the storage API. Basically, the old k0deZ applied a small fudge factor to the expected amount to be written before deciding if the buffer should be cycled or if there was space to spare, but the thing is that the actual amount returned as written was not the calculated amount. My workaround was to give enough free space on the partition to hold the largest article that the particular buffer there would expect to see past the end of the buffer, to allow it to overflow. Interestingly, the small-article buffers never overflowed, while the large-article buffers would regularly overflow soon, often several times. Later I allocated the appropriate amount of space but told INN in the config that the file was slightly smaller. Then they never overflowed past the end. The reason for this, and I repeat, it was with the older k0deZ, was that the length of the article was calculated based on the internal unix size, while when it was written, it was written in wireformat. Therefore the article was actually longer in bytes by the number of lines (to make up for the added CR). I fixed this in my own k0deZ by adding the linecount to the fudge and running some debuggery to show I had given plenty of space. No problems since then. This shouldn't be a problem with newer INN, even though I haven't verified it in the k0deZ, nor have I looked to see how easily I could hack the old k0deZ to work with wireformat everywhere and not break anything. > -rw-r--r-- 1 news news 524557420 Oct 23 16:19 buff1 > -rw-r--r-- 1 news news 524557755 Oct 23 16:19 buff13 > -rw-r--r-- 1 news news 524556317 Oct 23 16:19 buff14 > -rw-r--r-- 1 news news 524556724 Oct 23 16:19 buff15 > -rw-r--r-- 1 news news 524554332 Oct 23 16:19 buff16 > -rw-r--r-- 1 news news 524557420 Oct 23 16:19 buff19 > -rw-r--r-- 1 news news 524557826 Oct 23 16:19 buff2 > -rw-r--r-- 1 news news 524557794 Oct 23 16:19 buff20 > -rw-r--r-- 1 news news 524557742 Oct 23 16:19 buff21 > -rw-r--r-- 1 news news 524557662 Oct 23 16:19 buff3 > -rw-r--r-- 1 news news 524557702 Oct 23 16:19 buff4 > -rw-r--r-- 1 news news 524556976 Oct 23 16:19 buff5 > -rw-r--r-- 1 news news 524557060 Oct 23 16:19 buff6 > -rw-r--r-- 1 news news 524556713 Oct 23 16:19 buff7 > -rw-r--r-- 1 news news 524550016 Oct 23 16:19 buff8 > -rw-r--r-- 1 news news 524288000 Oct 23 16:19 buff9 Your oversized buffers here are all almost the same size over. Whereas what I was seeing for the broken-fudge bug was a wide variety of overflows. And the size of the overflows is far more than a linecount, I should hope. Please say something about your FreeBSD, so that if needed, someone can scold you and point you to one that works...
Technical Details
Message-ID:
<meowbot-AutoPost-6-43-406-12-7-32-783402-306-8402-7432-100000@netscum.dQ>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-02!sn-xit-03!supernews.com!news.tele.dk!212.74.64.35!colt.net!news.tele.dk!Free-PR0N.NetScum.DK.POSTED!vax.chrillesen.dk!barryReferences:
<8sn4gf$1tfe$1@dunlop.dowcarter.com> <yllmvkpsop.fsf@windlord.stanford.edu> <8t1lh8$1oia$1@dunlop.dowcarter.com>Show Full Headers
Complete Article Headers
Message-ID: <meowbot-AutoPost-6-43-406-12-7-32-783402-306-8402-7432-100000@netscum.dQ> Subject: Re: Cyclic buffers changing size Date: Tue, 24 Oct 2000 01:43:08 +0200 From: Authentic Evil Fluffy <meowbot@Free-Pr0n.NetScum.dQ> References: <8sn4gf$1tfe$1@dunlop.dowcarter.com> <yllmvkpsop.fsf@windlord.stanford.edu> <8t1lh8$1oia$1@dunlop.dowcarter.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-02!sn-xit-03!supernews.com!news.tele.dk!212.74.64.35!colt.net!news.tele.dk!Free-PR0N.NetScum.DK.POSTED!vax.chrillesen.dk!barry Newsgroups: news.software.nntp Organization: Binging Beerbellied Barry Bouwsma's Beerserver Lines: 82 NNTP-Posting-Host: 3167c9bec77aad169c717ee8739c7963.netscum.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: freebeer.netscum.dk 972344590 f8a242043d3906732e53ea65ce6a5194 X-Complaints-To: Department of Beer <bitbucket@news.inet.tele.dk> X-Sender: barry@vax.chrillesen.dk In-Reply-To: <8t1lh8$1oia$1@dunlop.dowcarter.com>