From owner-freebsd-bugs Thu May 14 06:13:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25706 for freebsd-bugs-outgoing; Thu, 14 May 1998 06:13:48 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA25687 for ; Thu, 14 May 1998 06:13:45 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA12421; Thu, 14 May 1998 06:10:01 -0700 (PDT) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA23881 for ; Thu, 14 May 1998 06:04:55 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from salomon.mchp.siemens.de (salomon.siemens.de [139.23.33.13]) by david.siemens.de (8.8.8/8.8.8) with ESMTP id PAA03884 for ; Thu, 14 May 1998 15:03:25 +0200 (MDT) Received: from curry.mchp.siemens.de (daemon@curry.mchp.siemens.de [146.180.31.23]) by salomon.mchp.siemens.de (8.8.8/8.8.5) with ESMTP id PAA24622 for ; Thu, 14 May 1998 15:03:24 +0200 (MDT) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.8/8.8.8) id PAA23268 for ; Thu, 14 May 1998 15:03:24 +0200 (CEST) Message-Id: <199805141303.PAA16254@internal> Date: Thu, 14 May 1998 15:03:22 +0200 (CEST) From: Andre Albsmeier To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/6633: buffer in sys/sys/msgbuf.h became rather small Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6633 >Category: kern >Synopsis: buffer in sys/sys/msgbuf.h became rather small >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 14 06:10:01 PDT 1998 >Last-Modified: >Originator: Andre Albsmeier >Organization: >Release: FreeBSD 2.2.6-STABLE i386 >Environment: my (and probably many other) 2.2-STABLE and -CURRENT systems >Description: Since FreeBSD is the ideal platform for highend servers (as we know for sure :-)), it is obviuos to plug a lot of hardware in it. When booting verbose, the kernel internal dmesg buffer is often far to small to keep all of the boot messages. This becomes a little problematic when you want to see the messages for diagnostic purposes. >How-To-Repeat: Boot a machine with lots of hardware in verbose mode, e.g. this one has 12k: Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.6-STABLE #0: Fri Apr 3 19:00:08 CEST 1998 root@bali.us.tld:/src/src-2.2/sys/compile/SERVER Calibrating clock(s) ... i586 clock: 199449597 Hz, i8254 clock: 1193290 Hz CPU: Pentium (199.45-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 67108864 (65536K bytes) Physical memory chunk(s): 0x00001000 - 0x0009ffff, 651264 bytes (159 pages) 0x0020e000 - 0x03ffbfff, 64937984 bytes (15854 pages) avail memory = 63729664 (62236K bytes) pcibus_setup(1): mode 1 addr port (0x0cf8) is 0x8000005c pcibus_setup(1a): mode1res=0x80000000 (0x80000000) pcibus_check: device 0 is there (id=12508086) Probing for devices on PCI bus 0: configuration mode 1 allows 32 devices. chip0 rev 3 on pci0:0:0 chip1 rev 1 on pci0:7:0 I/O Recovery Timing: 8-bit 3 clocks, 16-bit 2 clocks Extended BIOS: disabled Lower BIOS: disabled Coprocessor IRQ13: enabled Mouse IRQ12: disabled Interrupt Routing: A: IRQ15, B: IRQ11, C: IRQ10, D: IRQ9 MB0: disabled, MB1: chip2 rev 0 on pci0:7:1 mapreg[20] type=1 addr=0000f000 size=0010. Primary IDE: disabled Secondary IDE: disabled ahc0 rev 0 int a irq 15 on pci0:13:0 mapreg[10] type=1 addr=00006000 size=0100. mapreg[14] type=0 addr=e0000000 size=1000. reg20: virtual=0xf4d9d000 physical=0xe0000000 size=0x1000 ahc0: Reading SEEPROM...done. low byte termination enabled, high byte termination enabled ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs ahc0: Resetting Channel A ahc0: Downloading Sequencer Program...ahc0: 373 instructions downloaded Done ahc0: Probing channel A Choosing drivers for scbus configured at 0 ahc0: target 0 synchronous at 10.0MHz, offset = 0xf ahc0: target 0 Tagged Queuing Device (ahc0:0:0): "IBM DPES-31080 S31Q" type 0 fixed SCSI 2 sd is configured at 0 sd0(ahc0:0:0): Direct-Access 1034MB (2118144 512 byte sectors) sd0(ahc0:0:0): with 4903 cyls, 4 heads, and an average 108 sectors/track ahc0: target 1 synchronous at 10.0MHz, offset = 0xf ahc0: target 1 Tagged Queuing Device (ahc0:1:0): "Quantum XP34300 L915" type 0 fixed SCSI 2 sd is configured at 1 sd1(ahc0:1:0): Direct-Access 4101MB (8399520 512 byte sectors) sd1(ahc0:1:0): with 3907 cyls, 20 heads, and an average 107 sectors/track ahc0: target 2 synchronous at 10.0MHz, offset = 0xf ahc0: target 2 Tagged Queuing Device (ahc0:2:0): "Quantum XP34300 L915" type 0 fixed SCSI 2 sd is configured at 2 sd2(ahc0:2:0): Direct-Access 4101MB (8399520 512 byte sectors) sd2(ahc0:2:0): with 3907 cyls, 20 heads, and an average 107 sectors/track ahc0: target 3 synchronous at 20.0MHz, offset = 0xf ahc0: target 3 Tagged Queuing Device (ahc0:3:0): "QUANTUM XP39100S LXY4" type 0 fixed SCSI 2 sd is configured at 3 sd3(ahc0:3:0): Direct-Access 8682MB (17781520 512 byte sectors) sd3(ahc0:3:0): with 5899 cyls, 20 heads, and an average 150 sectors/track ahc0: target 4 synchronous at 20.0MHz, offset = 0xf ahc0: target 4 Tagged Queuing Device (ahc0:4:0): "QUANTUM XP39100S LXY4" type 0 fixed SCSI 2 sd is configured at 4 sd4(ahc0:4:0): Direct-Access 8682MB (17781520 512 byte sectors) sd4(ahc0:4:0): with 5899 cyls, 20 heads, and an average 150 sectors/track ahc1 rev 0 int a irq 11 on pci0:14:0 mapreg[10] type=1 addr=00006400 size=0100. mapreg[14] type=0 addr=e0001000 size=1000. reg20: virtual=0xf4d9e000 physical=0xe0001000 size=0x1000 ahc1: Reading SEEPROM...done. low byte termination enabled, high byte termination enabled ahc1: aic7880 Single Channel, SCSI Id=7, 16 SCBs ahc1: Resetting Channel A ahc1: Downloading Sequencer Program...ahc1: 373 instructions downloaded Done ahc1: Probing channel A Choosing drivers for scbus configured at 1 ahc1: target 0 synchronous at 4.4MHz, offset = 0xf (ahc1:0:0): "IMPRIMIS 94601-15 4202" type 0 fixed SCSI 1 sd is configured at 10 sd10(ahc1:0:0): Direct-Access 992MB (2031705 512 byte sectors) sd10(ahc1:0:0): with 1931 cyls, 15 heads, and an average 70 sectors/track ahc1: target 1 synchronous at 4.4MHz, offset = 0xf (ahc1:1:0): "IMPRIMIS 94601-15 4202" type 0 fixed SCSI 1 sd is configured at 11 sd11(ahc1:1:0): Direct-Access 992MB (2031705 512 byte sectors) sd11(ahc1:1:0): with 1931 cyls, 15 heads, and an average 70 sectors/track ahc1: target 2 synchronous at 4.4MHz, offset = 0xf (ahc1:2:0): "IMPRIMIS 94601-15 1296" type 0 fixed SCSI 1 sd is configured at 12 sd12(ahc1:2:0): Direct-Access 989MB (2026965 512 byte sectors) sd12(ahc1:2:0): with 1931 cyls, 15 heads, and an average 69 sectors/track ahc1: target 3 synchronous at 5.0MHz, offset = 0xf ahc1: target 3 Tagged Queuing Device (ahc1:3:0): "SEAGATE ST41650 6414" type 0 fixed SCSI 2 sd is configured at 13 sd13(ahc1:3:0): Direct-Access 1350MB (2766300 512 byte sectors) sd13(ahc1:3:0): with 2107 cyls, 15 heads, and an average 87 sectors/track ahc1: target 4 synchronous at 10.0MHz, offset = 0xf ahc1: target 4 Tagged Queuing Device (ahc1:4:0): "SEAGATE ST42400N 0116" type 0 fixed SCSI 2 sd is configured at 14 sd14(ahc1:4:0): Direct-Access 2030MB (4159462 512 byte sectors) sd14(ahc1:4:0): with 2626 cyls, 19 heads, and an average 83 sectors/track ahc1: target 5 synchronous at 10.0MHz, offset = 0xf ahc1: target 5 Tagged Queuing Device (ahc1:5:0): "SEAGATE ST15230N 0298" type 0 fixed SCSI 2 sd is configured at 15 sd15(ahc1:5:0): Direct-Access 4095MB (8386733 512 byte sectors) sd15(ahc1:5:0): with 3992 cyls, 19 heads, and an average 110 sectors/track ahc1: target 6 synchronous at 10.0MHz, offset = 0xf ahc1: target 6 Tagged Queuing Device (ahc1:6:0): "SEAGATE ST15230N 0298" type 0 fixed SCSI 2 sd is configured at 16 sd16(ahc1:6:0): Direct-Access 4095MB (8386733 512 byte sectors) sd16(ahc1:6:0): with 3992 cyls, 19 heads, and an average 110 sectors/track ahc2 rev 0 int a irq 10 on pci0:15:0 mapreg[10] type=1 addr=00006800 size=0100. mapreg[14] type=0 addr=e0002000 size=1000. reg20: virtual=0xf4d9f000 physical=0xe0002000 size=0x1000 ahc2: Reading SEEPROM...done. low byte termination disabled, high byte termination enabled ahc2: aic7880 Single Channel, SCSI Id=7, 16 SCBs ahc2: Resetting Channel A ahc2: Downloading Sequencer Program...ahc2: 373 instructions downloaded Done ahc2: Probing channel A Choosing drivers for scbus configured at 2 ahc2: target 0 synchronous at 20.0MHz, offset = 0xf ahc2: target 0 Tagged Queuing Device (ahc2:0:0): "SEAGATE ST423451N 0011" type 0 fixed SCSI 2 sd is configured at 20 sd20(ahc2:0:0): Direct-Access 22130MB (45322644 512 byte sectors) sd20(ahc2:0:0): with 6876 cyls, 28 heads, and an average 235 sectors/track ahc2: target 3 synchronous at 5.0MHz, offset = 0xf (ahc2:3:0): "DEC DLT2700 8525" type 1 removable SCSI 2 st is configured at 0 st0(ahc2:3:0): Sequential-Access density code 0x19, drive empty (ahc2:3:1): "DEC TZ Media Changer 8525" type 8 removable SCSI 2 ch is configured at 0 ch0(ahc2:3:1): Medium-Changer 7 slots, 1 drive, 1 picker ch0: move mask: 0x0 0x8 0x0 0x2 ch0: exchange mask: 0x0 0x0 0x0 0x0 ahc2: target 4 synchronous at 5.0MHz, offset = 0x8 (ahc2:4:0): "HP HP35480A 1109" type 1 removable SCSI 2 st is configured at 1 st1(ahc2:4:0): Sequential-Access density code 0x13, drive empty ahc2: target 6 synchronous at 8.0MHz, offset = 0xf (ahc2:6:0): "NEC CD-ROM DRIVE:502 2.0r" type 5 removable SCSI 2 cd is configured at 0 cd0(ahc2:6:0): CD-ROM can't get the size chip3 rev 2 on pci0:16:0 bridge from pci0 to pci1 through 1. mapping regs: io:2280e0e0 mem:dff0dc00 pmem:bff0bc00 pci0: uses 12288 bytes of memory from bc000000 upto e0002fff. pci0: uses 784 bytes of I/O space from 6000 upto f00f. pci0: subordinate busses from 1 upto 1. Probing for devices on PCI bus 1: de0 rev 36 int a irq 9 on pci1:4:0 mapreg[10] type=1 addr=0000e000 size=0080. [pci1 uses memory from dc000000 to dfffffff] mapreg[14] type=0 addr=dd000000 size=0080. reg16: ioaddr=0xe000 size=0x80 de0: SMC 8434BT-CH1 21040 [10Mb/s] pass 2.4 de0: address 00:00:c0:ba:73:e0 bpf: de0 attached de1 rev 36 int a irq 15 on pci1:5:0 mapreg[10] type=1 addr=0000e400 size=0080. [pci1 uses memory from dc000000 to dfffffff] mapreg[14] type=0 addr=dd001000 size=0080. reg16: ioaddr=0xe400 size=0x80 using shared irq 15. de1: SMC 8434BT-CH2 21040 [10Mb/s] pass 2.4 de1: address 00:00:c0:81:78:e0 bpf: de1 attached pci1: uses 256 bytes of memory from dd000000 upto dd00107f. pci1: uses 256 bytes of I/O space from e000 upto e47f. Initializing PnP override table Probing for PnP devices: Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 No Plug-n-Play devices were found Probing for devices on the ISA bus: sc0: the current keyboard controller command byte 0065 kbdio: DIAGNOSE status:0055 kbdio: TEST_KBD_PORT status:0000 kbdio: RESET_KBD return code:00fa kbdio: RESET_KBD status:00aa sc0 at 0x60-0x6f irq 1 on motherboard sc0: BIOS video mode:3 sc0: VGA registers upon power-up 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: video mode:24 sc0: VGA registers in BIOS for mode:24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: VGA registers to be used for mode:24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: rows_offset:1 sc0: VGA color <9 virtual consoles, flags=0x0> ed0 at 0x240-0x25f irq 5 maddr 0xd8000 msize 8192 on isa ed0: address 00:00:c0:0f:aa:dd, type SMC8416C/SMC8416BT (16 bit) bpf: ed0 attached lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface bpf: lp0 attached sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A pca0 on motherboard pca0: PC speaker audio driver fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in npx0 flags 0x1 on motherboard npx0: INT 16 interface imasks: bio c0008c40, tty c003009a, net c0028220 BIOS Geometries: 0:0082fe3f 0..130=131 cylinders, 0..254=255 heads, 1..63=63 sectors 1:0209fe3f 0..521=522 cylinders, 0..254=255 heads, 1..63=63 sectors 2:0209fe3f 0..521=522 cylinders, 0..254=255 heads, 1..63=63 sectors 3:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors 4:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors 5:03df3f20 0..991=992 cylinders, 0..63=64 heads, 1..32=32 sectors 6:03df3f20 0..991=992 cylinders, 0..63=64 heads, 1..32=32 sectors 7:03dc3f20 0..988=989 cylinders, 0..63=64 heads, 1..32=32 sectors 0 accounted for Device configuration finished. Considering FFS root f/s. configure() finished. Intel Pentium F00F detected, installing workaround bpf: lo0 attached ccd0-3: Concatenated disk drivers sd0s1: type 0xa5, start 0, end = 2118143, size 2118144 : OK sd3s1: type 0xa5, start 0, end = 17781519, size 17781520 : OK sd4s1: type 0xa5, start 0, end = 17781519, size 17781520 : OK sd20s1: type 0xa5, start 0, end = 45322643, size 45322644 : OK sd20s1: type 0xa5, start 0, end = 45322643, size 45322644 : OK de0: enabling AUI/BNC port de1: enabling AUI/BNC port ed0: promiscuous mode enabled de0: promiscuous mode enabled de1: promiscuous mode enabled >Fix: quite simple: *** msgbuf.h.ORI Thu May 14 14:50:57 1998 --- msgbuf.h Thu May 14 14:51:26 1998 *************** *** 37,43 **** #ifndef _SYS_MSGBUF_H_ #define _SYS_MSGBUF_H_ ! #define MSG_BSIZE (8192 - 3 * sizeof(unsigned int)) struct msgbuf { #define MSG_MAGIC 0x063061 unsigned int msg_magic; --- 37,43 ---- #ifndef _SYS_MSGBUF_H_ #define _SYS_MSGBUF_H_ ! #define MSG_BSIZE (16384 - 3 * sizeof(unsigned int)) struct msgbuf { #define MSG_MAGIC 0x063061 unsigned int msg_magic; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message