Article View: news.software.nntp
Article #28059Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th)
From: 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
Technical Details
Message-ID:
<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-mailReferences:
<6isp36$rm2$1@Mars.mcs.net> <6it3j2$1q2$1@Mars.mcs.net> <6it719$ocg$1@flea.best.net> <6it8uv$37k$1@Mars.mcs.net>Show Full Headers
Complete Article Headers
Message-ID: <6itova$3ni$1@flea.best.net> Subject: Re: DIABLO problems with FreeBSD-Current (3.0 as of ~April 20th) Date: Thu, 07 May 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6isp36$rm2$1@Mars.mcs.net> <6it3j2$1q2$1@Mars.mcs.net> <6it719$ocg$1@flea.best.net> <6it8uv$37k$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-mail X-Deja-AN: 351296115 Distribution: inet X-Trace: 894592811 4493 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. Newsgroups: news.software.nntp