From owner-freebsd-hackers Mon Oct 23 15:08:22 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA01685 for hackers-outgoing; Mon, 23 Oct 1995 15:08:22 -0700 Received: from apollo.COSC.GOV (root@apollo.COSC.GOV [198.94.103.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id PAA01675 for ; Mon, 23 Oct 1995 15:08:13 -0700 Received: (from vince@localhost) by apollo.COSC.GOV (8.6.12/8.6.9) id PAA07427; Mon, 23 Oct 1995 15:06:07 -0700 Date: Mon, 23 Oct 1995 15:06:07 -0700 (PDT) From: -Vince- To: Stefan Esser cc: hackers@freebsd.org Subject: Re: machine reboot & kernel maxusers option Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk On Sat, 7 Oct 1995, Stefan Esser wrote: > On Oct 7, 4:45, -Vince- wrote: > } Subject: machine reboot & kernel maxusers option > } > } I am experiencing the following problem and the machine just > } reboots under FreeBSD-current, anyone have any ideas? > > There have been no functional changes to the driver > for nearly a month now ... > > Did you rebuild your kernel within that time ? yes I did... > } MAND FAILED (4 28) @f0b4aa00. > } assertion "cp" failed: file "../../pci/ncr.c", line 5560 > } sd0(ncr0:0:0): COMMAND FAILED (4 28) @f0b4aa00. > > Hmm, the 28 in the message above means "Queue Full", i.e. > there were too many commands issued by the generic SCSI > driver. But the maximum number of commands to issue is a > parameter known to the generic SCSI code, so this should > never happen ... Hmmm, is there anyway around this? > In fact, there was a change one month ago, which did change > the size of the command queue. But in fact, the queue size > was increased ... Hmm, okay... > You may want to try changing back the line (ncr.c:132): > > #define MAX_START (MAX_TARGET + 7 * SCSI_NCR_MAX_TAGS) > > into its previous form: > > #define MAX_START (7 * SCSI_NCR_MAX_TAGS) Okay, I'll give that a try... > I'll look into this, but I need more information: Thanks in advance! > 1) Complete verbose boot message log, if possible > (I.e. Boot with "-v" option, send "/sbin/dmesg" output). Here you go: FreeBSD 2.2-CURRENT #0: Fri Sep 29 01:43:02 PDT 1995 vince@apollo.COSC.GOV:/usr/src/sys/compile/GALAXY CPU: 90-MHz Pentium 735\\90 (Pentium-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping=5 Features=0x1bf real memory = 25165824 (24576K bytes) avail memory = 20131840 (19660K bytes) BIOS Geometries: 0:03f7793f 0..1015=1016 cyl, 0..121=122 heads, 1..63=63 sects 0 accounted for Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 at 0x260-0x27f irq 5 on isa ed0: address 00:40:05:16:77:85, type NE2000 (16 bit) ed1 not found at 0x300 sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2 not found at 0x3e8 sio3 not found at 0x2e8 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 not found at 0xffffffff lpt2 not found at 0xffffffff pca0 on motherboard pca0: PC speaker audio driver fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc1 not found at 0x170 bt0 not found at 0x330 uha0 not found at 0x330 ahc1 not found ahb0 not found aha0 not found at 0x330 aic0 not found at 0x340 nca0 not found at 0x1f88 nca1 not found at 0x350 sea0 not found wt0 not found at 0x300 mcd0: timeout getting status mcd0 not found at 0x300 mcd1: timeout getting status mcd1 not found at 0x340 matcdc0 not found at 0xffffffff scd0 not found at 0x230 ie0 not found at 0x360 ep0 not found at 0x300 ix0 not found at 0x300 le0: no board found at 0x300 le0 not found at 0x300 lnc0 not found at 0x280 lnc1 not found at 0x300 ze0 not found at 0x300 zp0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface gus0 at 0x220 irq 11 drq 1 on isa gus0: pcibus_setup(1): mode1res=0x80000000 (0x80000000), mode2res=0xff (0x0e) pcibus_setup(2): mode1res=0x80000000 (0x80000000) pcibus_check: device 0 is there Probing for devices on the PCI bus: configuration mode 1 allows 32 devices. chip0 rev 2 on pci0:0 chip1 rev 2 on pci0:7 ncr0 rev 2 int a irq 10 on pci0:11 mapreg[10] type=1 addr=0000e400 size=0100. mapreg[14] type=0 addr=fbfef000 size=0100. reg20: virtual=0xf3ca2000 physical=0xfbfef000 size=0x100 ncr0: restart (scsi reset). ncr0 scanning for targets 0..6 (V2 pl23 95/09/07) ncr0 waiting for scsi devices to settle (ncr0:0:0): "DEC DSP5400S 427L" type 0 fixed SCSI 2 sd0(ncr0:0:0): Direct-Access sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. 3814MB (7812870 512 byte sectors) sd0(ncr0:0:0): with 3055 cyls, 26 heads, and an average 98 sectors/track vga0 rev 0 on pci0:12 mapreg[10] type=0 addr=fb000000 size=800000. pci0: uses 8388864 bytes of memory from fb000000 upto fbfef0ff. pci0: uses 256 bytes of I/O space from e400 upto e4ff. changing root device to sd0a sd0s1: type 0x6, start 63, end = 1106783, size 1106721 : OK sd0s2: type 0xa5, start 1106784, end = 7808975, size 6702192 : OK > 2) When does this happen ? > At boot time, or when the system had been heavily loaded ? Only when the system has lots of sendmail processes... > Which devices are connected ? active ? Just the 4.0 GIG Sequel Hard Drive... > There is a timeout function in the driver, which should > reset the NCR chip after some 10 seconds of no progress > on any outstanding command. > > This ought to clear the error condition ... Hmmm, how do I do that exactly? > } Also, can someone tell me what the maxusers option in the kernel > } config file does exactly? > > Look for uses of MAXUSERS in "/sys/conf/param.c". I did but didn't know what it's used for exactly... Cheers, -Vince- vince@apollo.COSC.GOV - GUS Mailing Lists Admin UC Berkeley AstroPhysics - Electrical Engineering (Honorary B.S.) Chabot Observatory & Science Center - Board of Advisors Running FreeBSD - Real UN*X for Free! Linda Wong/Vivian Chow/Hacken Lee/Danny Chan Fan Club Mailiing Lists Admin