On Thu, 8 Jun 2006, Michael Erdely wrote: > Hi, > > I've got a Dell Dimension XPS B866r desktop running as my web/mail server > (recently upgraded to 3.9). > > Occasionally, after a seemingly random amount of time, the machine will do one > of two things: it will either lockup/freeze where there are no messages on the > console, but you cannot type, ping or access the box in any way (but the reset > button) OR, since I have ddb.panic=0, it will reboot with the following > message from my serial console: > panic: semop - can't undo undos > Starting stack trace...panic(fffffff4,3,e870df10,2,fffffff4) at > panic+0x71panic(d051c1f6,e870dec8,12,d6a4f2d0,3) at panic+0x71 > sys_semop(d658b2f0,e870df68,e870df58,0,1998c) at sys_semop+0x492syscall() at > syscall+0x2ea > --- syscall (number 290) ---0x444e4e9: > End of stack trace. > syncing disks... 19 19 donerebooting... > > Since the box rebooted automatically, I don't have ps output, but the box is > running: stock GENERIC kernel, mysql-server-5.0.22, stock apache (chrooted) w/ > ssl, courier-imap/pop3 w/ssl, imap-proxy, > php5-core,curl,gd,imap,mbstring,mcrypt,mysql-5.1.4-hardened (compiled from CVS > ports of -current), wordpress-2.0.3, gallery-2.1.1, squirrelmail 1.4.6 and > 1.5.1, spamd (openbsd), spamassassin (spamc+spamd+procmail), clamav > (clamav-milter + clamd), sendmail (with sasl compiled in), sasl with > mysql+crypt patch applied, pure-ftpd (requiring ssl... not really used). > > When the box comes back up, none of the log files have error messages. > > Let me know if I can provide any more info. > Does anyone have any thoughts? I'm thinking that I'm running too much on my > P3-866 w/ 512 MB RAM and should set up another box to offload either mail, > apache or mysql.
your system is running out of semaphore undo data structures. Try increasing at least kern.seminfo.semmnu. Other semaphore related sysctl's might need an increase as well. -Otto > > Below is a dmesg. > > Thanks. > > OpenBSD 3.9 (GENERIC) #617: Thu Mar 2 02:26:48 MST 2006 > [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Intel Pentium III ("GenuineIntel" 686-class) 865 MHz > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE > real mem = 536190976 (523624K) > avail mem = 482246656 (470944K) > using 4278 buffers containing 26910720 bytes (26280K) of memory > mainbus0 (root) > bios0 at mainbus0: AT/286+(00) BIOS, date 03/29/01, BIOS32 rev. 0 @ 0xfda74 > apm0 at bios0: Power Management spec V1.2 > apm0: AC on, battery charge unknown > apm0: flags 30102 dobusy 0 doidle 1 > pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf3250/208 (11 entries) > pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00) > pcibios0: PCI bus #2 is the last bus > bios0: ROM list: 0xc0000/0x8000 0xc8000/0x800 > cpu0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 (no bios) > pchb0 at pci0 dev 0 function 0 "Intel 82820 MCH" rev 0x03: rng active, 8Kb/sec > ppb0 at pci0 dev 1 function 0 "Intel 82820 AGP" rev 0x03 > pci1 at ppb0 bus 1 > ppb1 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02 > pci2 at ppb1 bus 2 > vga1 at pci2 dev 8 function 0 "S3 Trio32/64" rev 0x53 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > xl0 at pci2 dev 11 function 0 "3Com 3c905C 100Base-TX" rev 0x74: irq 10, > address 00:50:da:b6:52:f9 > bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6 > ichpcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02 > pciide0 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA, channel 0 > wired to compatibility, channel 1 wired to compatibility > wd0 at pciide0 channel 0 drive 0: <ST330630A> > wd0: 16-sector PIO, LBA, 29188MB, 59777640 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 > wd1 at pciide0 channel 1 drive 0: <ST330013A> > wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors > atapiscsi0 at pciide0 channel 1 drive 1 > scsibus0 at atapiscsi0: 2 targets > cd0 at scsibus0 targ 0 lun 0: <HITACHI, DVD-ROM GD-5000, 0212> SCSI0 5/cdrom > removable > wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4 > cd0(pciide0:1:1): using PIO mode 4, DMA mode 2 > uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 10 > usb0 at uhci0: USB revision 1.0 > uhub0 at usb0 > uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > ichiic0 at pci0 dev 31 function 3 "Intel 82801AA SMBus" rev 0x02: irq 9 > iic0 at ichiic0 > "unknown" at iic0 addr 0x18 not configured > isa0 at ichpcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pms0 at pckbc0 (aux slot) > pckbc0: using irq 12 for aux slot > wsmouse0 at pms0 mux 0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > npx0 at isa0 port 0xf0/16: using exception 16 > pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > pccom0: console > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec > biomask ef6d netmask ef6d ttymask ffef > pctr: 686-class user-level performance counters enabled > mtrr: Pentium Pro MTRR support > dkcsum: wd0 matches BIOS drive 0x80 > dkcsum: wd1 matches BIOS drive 0x81 > root on wd0a > rootdev=0x0 rrootdev=0x300 rawdev=0x302