Thread View: news.software.nntp
10 messages
10 total messages
Started by Karl Denninger
Thu, 07 May 1998 00:00
DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
68 lines
3066 bytes
3066 bytes
Hi folks. I've got a Diablo server running, and seeing some ODD stuff. In no particular order, here it is. 1. In general it works fine. Its very fast, and 99% of the groups are being properly propagated to the system which does readers (I've got another INN machine internal which we use for that). Basically, the structure is this: DIABLO ----- INN1.5 | |--- NNTP systems for readers the NNTP systems mount the INN1.5 machine's spool and so do the shell machines, so you can read with either "traditional" tools or NNTP. Works great, less filling. 2. HOWEVER, nothing in a few groups is being propagated from DIABLO to the INN machine! alt.sex.* is completely empty. I have a feed definition of "*" for the passthrough - and the feed sites have confirmed they are sending it. alt.binaries.* is similar (we filter most of those at the INN level, but Diablo, again is set up to take everything it is offered). What's going on? This makes no sense at all. I thought the spam filter might be getting overzealous, so I turned it off. No change. The line in the diablo.hosts file is: inews.mcs.net inews And the correspond "dnewsfeeds" file entry is: label inews alias ddsw1 alias news.mcs.net addgroup * delgroup control.* end So how can I POSSIBLY not be getting these propagated? 3. I am getting a LOT of lines in my log of the form: 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604 00:46:27 01:10:18 4 article batch corrupted: /news/spool/news/D.00e37bd2/B.006e @ 70515,1459 04:02:05 05:54:16 4 article batch corrupted: /news/spool/news/D.00e3781c/B.3197 @ 22416,1020 02:01:24 02:09:33 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 40408,1713 02:01:17 02:09:22 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 38688,1719 02:01:16 02:08:53 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 36991,1696 This doesn't look good. Ideas? -- -- 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
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
52 lines
2769 bytes
2769 bytes
In article <EsLnuK.7M2@spcuna.spc.edu>, Terry Kennedy <terry@spcunb.spc.edu> wrote: >Karl Denninger <karl@MCS.COM> writes: >> 2. HOWEVER, nothing in a few groups is being propagated from DIABLO to >> the INN machine! alt.sex.* is completely empty. I have a feed >> definition of "*" for the passthrough - and the feed sites have >> confirmed they are sending it. >> >> alt.binaries.* is similar (we filter most of those at the INN level, >> but Diablo, again is set up to take everything it is offered). > > Look in /news/dexpire.ctl. The factory default is rather strange and causes >the sort of thing you're seeing. I use "*:100:c0.95:m2m" as the only non- >comment line in that file. Oh, ok. Found it, fixed it :-) >> 3. I am getting a LOT of lines in my log of the form: >> >> 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604 > > I can't say, because I've never seen that. Well, I know why its happening, but not what is causing it. I'm seeing ~600 nulls in the spool files (!) once in a great while. Of course, you get multiple bitches about each of these occurances. The odd thing is, its not an even multiple of the block size (which would indicate that something odd is happening in the file system abstraction or somesuch). Nor have I *ever* seen this anywhere else. Now I am using CCD for the spool disks, which is new - I've not used ccd before (hardware RAID was my previous desired solution). The reason is that if I lose this spool, its no big deal (since its transport only, and the customers never see it directly, losing it costs nothing once the articles are queued over to the INN box). I'm beginning to wonder if I found a CCD bug... -- -- 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
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Terry Kennedy
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
30 lines
2107 bytes
2107 bytes
Karl Denninger <karl@MCS.COM> writes:
> 2. HOWEVER, nothing in a few groups is being propagated from DIABLO to
> the INN machine! alt.sex.* is completely empty. I have a feed
> definition of "*" for the passthrough - and the feed sites have
> confirmed they are sending it.
>
> alt.binaries.* is similar (we filter most of those at the INN level,
> but Diablo, again is set up to take everything it is offered).
Look in /news/dexpire.ctl. The factory default is rather strange and causes
the sort of thing you're seeing. I use "*:100:c0.95:m2m" as the only non-
comment line in that file.
> 3. I am getting a LOT of lines in my log of the form:
>
> 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604
I can't say, because I've never seen that. I had a *very* bad time bringing
up Reference NNTP+Stream on a customers FreeBSD box a few months ago, though -
FreeBSD's stdio can't walk and chew gum at the same time (fflush has no effect
under certain cases). I wound up building on BSD/OS and providing static link-
ed binaries to my FreeBSD customer. You might want to try that if nobody else
has any better ideas.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Matt Dillon
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
53 lines
3249 bytes
3249 bytes
:In article <6itrot$76e$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote:
:>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:
:>
:>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 :-)
Oh yah... I started having problems with STDIO immediately as people
began to run Diablo on various vendor's machines. I finally gave up and
wrote my own.
:>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.
Hmm. Well tagged queueing did have a bunch of problems for a while
but that's been fixed in -stable as far as I know. We use it without
problems though, of course, the -stable I/O subsystem is not the best
suited to take advantage of the capability. I don't trust SCB paging,
though.
CAM sounds interesting.
-Matt
:>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%!
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
58 lines
3549 bytes
3549 bytes
In article <6it719$ocg$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:>Basically, it looks like an lseek() is being done beyond the end of the file, >:>and then data being written but not at the start of the buffer (ie: you lseek > > I'm pretty sure it isn't an OS issue, unless you are running > FreeBSD-current instead of FreeBSD-stable. We have FreeBSD-stable > (2.2.6) running on over 40 machines now, most medium loaded, and it's rock > solid. And news1.best.com is FreeBSD-2.2.6 and also rock solid with > 70+ full feeds going into it. > > There's something else going on here, but I'll be damned if I know what. > What version of Diablo are you running ? Of FreeBSD ? > > -Matt 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) 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 would require that the software either (1) seek to the end of the file, write nulls in place of the data that was supposed to be written on the first call, then write the real data, or (2) seek BEYOND the end of the file and start writing in the *MIDDLE* of the data that was supposed to be written. I rate the probability of either of these happening due to a Diablo bug to be rather, uh, small. :-) What I'd love to understand is the interaction between the various processes and the system that is causing this. It makes no sense at all, I can't reproduce it in a test case, and worse, I have not seen this in any of our other applications with the same kernel (we're running our standard "news" kernel on this machine). The only real difference in terms of configuration is that I'm using CCD for the spool (per the recommendations) because its not worth burning a $3k RAID controller on this application - I don't care if I lose the data in a crash, as once its on the INN machine (which does have a RAID controller) its "safe" from my point of view; the only people who can get hurt by the loss of the disk then are news peers (who I hope have more than one feed!) -- -- 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
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Matt Dillon
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
71 lines
4046 bytes
4046 bytes
:In article <6isp36$rm2$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote:
:>Hi folks.
:>
:>I've got a Diablo server running, and seeing some ODD stuff.
:..
:>2. HOWEVER, nothing in a few groups is being propagated from DIABLO to
:> the INN machine! alt.sex.* is completely empty. I have a feed
:> definition of "*" for the passthrough - and the feed sites have
:> confirmed they are sending it.
:>
:> alt.binaries.* is similar (we filter most of those at the INN level,
:> but Diablo, again is set up to take everything it is offered).
Gak. Like the other guy just said: check dexpire.ctl. I'm changing
it in the master source now since so many people have gotten confused
over it (my sample dexpire.ctl was supposed to just be a sample, not a
working copy!). It's a working copy now.
:>3. I am getting a LOT of lines in my log of the form:
:>
:> 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604
:> 00:46:27 01:10:18 4 article batch corrupted: /news/spool/news/D.00e37bd2/B.006e @ 70515,1459
:> 04:02:05 05:54:16 4 article batch corrupted: /news/spool/news/D.00e3781c/B.3197 @ 22416,1020
:> 02:01:24 02:09:33 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 40408,1713
:> 02:01:17 02:09:22 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 38688,1719
:> 02:01:16 02:08:53 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 36991,1696
:>
:> This doesn't look good.
:>
:>Ideas?
This is a more serious problem. Did you by chance do an rm -rf
of your D. directories? If so, don't! You must use dexpire. The
problem is that if you simply remove the directories, diablo may
re-create them and re-create previously-existant files, causing
it to reuse ID's and article offsets in the history file.
If your outgoing feed then tries to dump an article using an
obsolete offset, it will think it's a valid offset because
the data file was deleted and then recreated.
However, dnewslink has a failsafe - it looks for an out-of-band
NUL terminator in the diablo data file at the expected offset+articlesize
seek position, and if it doesn't find it it generates the above message.
This is to prevent dnewslink from actually propogating the corrupted
article to another host.
Diablo must also be able to use record locks on /news/spool/* (as it
requires record locks on just about every file it accesses). Otherwise
you might wind up with several diablo processes writing to the same
spool file. But I don't think that's your problem.
-Matt
:>--
:>--
:>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
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Karl Denninger
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
78 lines
4580 bytes
4580 bytes
In article <6it2m3$f15$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <6isp36$rm2$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote: >:>3. I am getting a LOT of lines in my log of the form: >:> >:> 03:08:03 03:20:34 4 article batch corrupted: /news/spool/news/D.00e37c54/B.71c1 @ 45721,604 >:> 00:46:27 01:10:18 4 article batch corrupted: /news/spool/news/D.00e37bd2/B.006e @ 70515,1459 >:> 04:02:05 05:54:16 4 article batch corrupted: /news/spool/news/D.00e3781c/B.3197 @ 22416,1020 >:> 02:01:24 02:09:33 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 40408,1713 >:> 02:01:17 02:09:22 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 38688,1719 >:> 02:01:16 02:08:53 3 article batch corrupted: /news/spool/news/D.00e37d44/B.37a0 @ 36991,1696 >:> >:> This doesn't look good. >:> >:>Ideas? > > This is a more serious problem. Did you by chance do an rm -rf > of your D. directories? If so, don't! You must use dexpire. The > problem is that if you simply remove the directories, diablo may > re-create them and re-create previously-existant files, causing > it to reuse ID's and article offsets in the history file. > > If your outgoing feed then tries to dump an article using an > obsolete offset, it will think it's a valid offset because > the data file was deleted and then recreated. > > However, dnewslink has a failsafe - it looks for an out-of-band > NUL terminator in the diablo data file at the expected offset+articlesize > seek position, and if it doesn't find it it generates the above message. > This is to prevent dnewslink from actually propogating the corrupted > article to another host. > > Diablo must also be able to use record locks on /news/spool/* (as it > requires record locks on just about every file it accesses). Otherwise > you might wind up with several diablo processes writing to the same > spool file. But I don't think that's your problem. > > -Matt No, I don't touch the spool directory directly; dexpire does all of it. What I'm seeing is blocks of 0x00s in the files once in a while. dnewslink throws up on this, as it should, because it sees an offset that shouldn't be there. And yes, the data involved is DEFINITELY corrupted (the 0x00s are in place of the legitimate start of an article). This is really, seriously bad stuff - and I don't have the foggiest idea of what is causing it. I've never seen anything like this one before, and I've got a lot of systems running kernels contemporary to this one in other applications (believe me, this kind of problem would have been found a long time ago around here!) Its also not a multiple of 512 bytes (block size) when it happens - which leads me to believe that something is screwy either with the I/O system (which would be really odd, as I'd expect to see trouble with a whole lot of things if that was true) or worse, with the ccd driver itself (which could explain it). Basically, it looks like an lseek() is being done beyond the end of the file, and then data being written but not at the start of the buffer (ie: you lseek to the intended place, but the first write(2) is being ignored but the file pointer is moved). Odd stuff, and very, very sporadic. Attempts to replicate this using what diablo appears to be using as its operational paradigm abstracted into a 50-line "C" program have failed. Yes, the disks involved are local, etc etc etc. -- -- 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
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: 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
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Matt Dillon
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
127 lines
7068 bytes
7068 bytes
:In article <6it8uv$37k$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote:
:>In article <6it719$ocg$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:>>:>Basically, it looks like an lseek() is being done beyond the end of the file,
:>>:>and then data being written but not at the start of the buffer (ie: you lseek
:.
:>>
:>> I'm pretty sure it isn't an OS issue, unless you are running
:>> FreeBSD-current instead of FreeBSD-stable. We have FreeBSD-stable
:>> (2.2.6) running on over 40 machines now, most medium loaded, and it's rock
:..
:>
:>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'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.
We use FreeBSD-stable on all of BEST's machines, though of course we also
keep track of the CVS tree and install the incremental changes as they
are comitted.
I run FreeBSD-current at home, of course. Gotta stay bleeding edge! But
I definitely don't put our paying customers on -current boxes. Maybe
in a few months.
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.
:>I rate the probability of either of these happening due to a Diablo bug to
:>be rather, uh, small. :-)
:>
:>What I'd love to understand is the interaction between the various processes
:>and the system that is causing this.
:>
:>It makes no sense at all, I can't reproduce it in a test case, and worse, I
:>have not seen this in any of our other applications with the same kernel
:>(we're running our standard "news" kernel on this machine).
:>
:>The only real difference in terms of configuration is that I'm using CCD
:>for the spool (per the recommendations) because its not worth burning a $3k
:>RAID controller on this application - I don't care if I lose the data in a
:>crash, as once its on the INN machine (which does have a RAID controller)
:>its "safe" from my point of view; the only people who can get hurt by the
:>loss of the disk then are news peers (who I hope have more than one feed!)
:>
:>--
:>--
:>Karl Denninger (karl@MCS.Net)| MCSNet - Serving Chicagoland and Wisconsin
:>http://www.mcs.net/ | T1's from $600 monthly / All Lines K56Flex/DOV
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).
news1:/news> df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 127151 54737 62242 47% /
/dev/sd0d 63567 1505 56977 3% /var
/dev/sd0e 465940 45856 382809 11% /var/log
/dev/sd0f 232474 4 213873 0% /var/tmp
/dev/sd0g 1017327 423903 512038 45% /usr
/dev/sd0h 1705391 513679 1055281 33% /news
/dev/ccd0c 8176355 6569169 953078 87% /news/spool/news
procfs 4 4 0 100% /proc
news1:/news> vmstat 1
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr s0 s1 s2 in sy cs us sy id
994 0 360.8 21.4 219 16 85 1 111 1032 42 59 59 1182 3039 986 17 23 59
5 7 0 364.1 22.7 511 21 80 0 575 0 52 79 61 1260 4624 1971 24 30 46
213 0 365.1 22.0 208 19 119 0 80 0 15 68 73 1936 4122 1462 27 42 31
6 6 0 350.1 21.4 148 22 102 0 100 0 9 52 56 1461 3011 1082 11 39 50
6 3 0 362.1 26.8 123 12 70 30 70 12213 39 45 27 1214 2234 731 11 32 56
6 9 0 353.4 26.4 343 12 73 0 216 0 13 145 36 1358 3391 837 14 29 58
1311 0 358.5 26.3 189 14 61 0 201 0 21 133 19 1155 2412 695 13 22 65
^C
news1:/news> iostat 1
tty sd0 sd1 sd2 cpu
tin tout sps tps msps sps tps msps sps tps msps us ni sy in id
0 1 732 42 0.0 896 59 0.0 895 59 0.0 17 0 15 8 59
0 68 320 14 0.0 731 53 0.0 848 48 0.0 13 0 9 7 71
0 67 362 20 0.0 953 53 0.0 796 60 0.0 18 0 15 8 60
0 671274 92 0.0 1551 115 0.0 800 62 0.0 12 0 12 8 68
^C
news1:/news> netstat -in 1
input (Total) output
packets errs bytes packets errs bytes colls
947 0 348365 1162 0 1204164 26
1014 0 391978 1221 0 1418641 25
593 0 59198 776 0 971056 10
795 1 314872 1036 0 1002044 26
468 0 75474 645 0 656953 5
550 0 42511 847 0 934084 18
783 0 144579 1139 0 1100439 16
^C
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
Author: Matt Dillon
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
53 lines
3153 bytes
3153 bytes
:In article <6it3j2$1q2$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote:
:>In article <6it2m3$f15$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:>>:In article <6isp36$rm2$1@Mars.mcs.net>, Karl Denninger <karl@MCS.COM> wrote:
:>>:>3. I am getting a LOT of lines in my log of the form:
:..
:>> -Matt
:>
:>No, I don't touch the spool directory directly; dexpire does all of it.
:>
:>What I'm seeing is blocks of 0x00s in the files once in a while. dnewslink
:>throws up on this, as it should, because it sees an offset that shouldn't be
:>there. And yes, the data involved is DEFINITELY corrupted (the 0x00s are in
:>place of the legitimate start of an article).
:>
:>This is really, seriously bad stuff - and I don't have the foggiest idea of
:>what is causing it. I've never seen anything like this one before, and I've
:>got a lot of systems running kernels contemporary to this one in other
:>applications (believe me, this kind of problem would have been found a long
:>time ago around here!)
:>
:>Its also not a multiple of 512 bytes (block size) when it happens - which
:>leads me to believe that something is screwy either with the I/O system
:>(which would be really odd, as I'd expect to see trouble with a whole lot of
:>things if that was true) or worse, with the ccd driver itself (which could
:>explain it).
:>
:>Basically, it looks like an lseek() is being done beyond the end of the file,
:>and then data being written but not at the start of the buffer (ie: you lseek
I'm pretty sure it isn't an OS issue, unless you are running
FreeBSD-current instead of FreeBSD-stable. We have FreeBSD-stable
(2.2.6) running on over 40 machines now, most medium loaded, and it's rock
solid. And news1.best.com is FreeBSD-2.2.6 and also rock solid with
70+ full feeds going into it.
There's something else going on here, but I'll be damned if I know what.
What version of Diablo are you running ? Of FreeBSD ?
-Matt
:>Yes, the disks involved are local, etc etc etc.
:>
:>--
:>--
:>Karl Denninger (karl@MCS.Net)| MCSNet - Serving Chicagoland and Wisconsin
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
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