Article View: news.software.nntp
Article #28058Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
From: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
93 lines
5524 bytes
5524 bytes
In article <6itova$3ni$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <6it8uv$37k$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote: >:> >:>FreeBSD 3.0-current from ~April 21st (which is stable in a number of other >:>uses, including over a half-dozen INN and NNTP machines, NFS servers, etc). >:> >:>We do a lot of our own internal stuff on the source tree with regards to >:>FreeBSD; I basically have to run -CURRENT of one flavor or another due to >:>internal requirmeents. :-) >:> >:>Diablo 1.16 (server only; I'm not trying for the reader side yet) > > Right. No known NUL bugs there. > > You can try ktracing the diablo processes to see if the NUL's are > being propogating from whoever is feeding you. If you can catch the > NUL's in the act, that will tell you for certain whos responsible. I don't think I'm being fed them. >:>I'm not convinced this is NOT an OS problem - not in the least. To >:>"accidentially" produce what I am seeing in the filesystem by a coding botch > > If you are running FreeBSD-current, it could very well be an OS problem. > > FreeBSD-current is going through some major, major vnode cleanup. I do not > consider it stable for heavy I/O stuff. Well, the extract in question was prior to the latest mess, and post the last filesystem DISASTER (which it really was). I'm very much on top of this, as I have to be - we have -current required things around here, and as such I pretty much have to be running that branch. But the actual kernel itself is rather custom and full of stuff that is local to our systems (we have a custom security and privileges package that sits inside the kernel, among other changes). > Diablo beats the shit out of the VM and VN/IO system. It mixes mmap()ing > of files with discrete I/O. I use discrete lseek()/write() calls to write > to files, and (for the spool files) read-only mmap()'s to read them. The > VM/VNIO buffer cache code has always been FreeBSD's weak point. It could > very well be more broken then usual in -current. That shouldn't break. The problem is that the files THEMSELVES are damaged; its not a fsck'd MMAP read that's failing to return proper data. The data that is being returned is what's there - which is the NULLs. The problem is happening during the *writing* of the spool files. I know that because the data itself, on the disk, is damaged. That you are using lseek/write is good - that means I can ignore possible problems in the STDIO library (thank GOD; you don't want to hear some of the horror stories I could tell you about pop daemons and SVR4 brain-damage in that area many years ago, before I was source-enabled :-) > Yup, same configuration as our news machine pretty much. Except I'm > running 2.2.6 (with a few hacks) on the machine. It's VERY stable... > runs until it gets hit with the biodone() panic (a fix for which just got > comitted to the -stable branch, yahhhhh). I think I'm going to pull my "warm spare" RAID controller and install that in the box, re-gen the disks to RAID 0 (striped) on it (which will pull the CCD component out of the loop), and see if the problem disappears. I might also try swapping in one of my mongo 9G drives for the two 4G CCD disks that are in there now too - that I can do without pulling or reformatting the others - and just move the news spool directory onto the other drive. That might hose me on throughput, but it would be ok to do for a test. I wouldn't be at all surprised to find out that the real issue is in the ccd driver; I'm running the CAM code, which is extremely stable and FAST in the general I/O department (far more than the standard SCSI stuff; tagged queueing is completely hosed in the standard branch, as is SCB paging; both are dangerous to use, and tagged queueing, done correctly, is such a huge win that CAM ends up being almost twice as fast overall for I/O in most of our high-bandwidth applications). However, CAM and CCD may interact in a bad way - since I've never used CCD before, and I have BIG NFS and INN servers (both of which are incredibly busy, with the INN machine using MMAP'd history files) running this same kernel - and they're not exhibiting the file corruption problem. For that reason I highly doubt that the filesystem or SCSI code is responsible for the trouble. -- -- Karl Denninger (karl@MCS.Net)| MCSNet - Serving Chicagoland and Wisconsin http://www.mcs.net/ | T1's from $600 monthly / All Lines K56Flex/DOV | NEW! Corporate ISDN Prices dropped by up to 50%! Voice: [+1 312 803-MCS1 x219]| EXCLUSIVE NEW FEATURE ON ALL PERSONAL ACCOUNTS Fax: [+1 312 803-4929] | *SPAMBLOCK* Technology now included at no cost
Technical Details
Message-ID:
<6itrot$76e$1@Mars.mcs.net>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!not-for-mailReferences:
<6isp36$rm2$1@Mars.mcs.net> <6it719$ocg$1@flea.best.net> <6it8uv$37k$1@Mars.mcs.net> <6itova$3ni$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <6itrot$76e$1@Mars.mcs.net> Subject: Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th) Date: Thu, 07 May 1998 00:00:00 +0000 From: karl@MCS.COM (Karl Denninger) References: <6isp36$rm2$1@Mars.mcs.net> <6it719$ocg$1@flea.best.net> <6it8uv$37k$1@Mars.mcs.net> <6itova$3ni$1@flea.best.net> 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!not-for-mail X-Deja-AN: 351303819 Distribution: inet Organization: /usr/lib/news/organi[sz]ation Newsgroups: news.software.nntp