Hi!
One of my production machines (3.8-stable) has suddenly started panicing every couple of hours. I found out that the culprit is smbd, eating through memory like there's no tomorrow (approx. 10Mb / minute! ). Can't figure out what has triggered it, nothing changed on the machine lately and there is only one active w2k client, writing a 2.5kB file every 15 seconds or so. I'd be glad of any assistance, even pointing out any stupid mistakes I have made, because this is driving me nuts. -------------- load averages: 0.42, 0.87, 1.71 10:45:59 23 processes: 22 idle, 1 on processor CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.2% interrupt, 99.8% idle Memory: Real: 290M/338M act/tot Free: 160M Swap: 2372K/256M used/tot PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND 30693 Guest 2 0 284M 284M sleep select 0:24 0.44% smbd -------------- load averages: 0.28, 0.56, 1.35 10:50:14 23 processes: 22 idle, 1 on processor CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.2% interrupt, 99.8% idle Memory: Real: 348M/397M act/tot Free: 101M Swap: 2372K/256M used/tot PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND 30693 Guest 2 0 342M 342M sleep select 0:29 1.03% smbd ------------- # smbstatus Samba version 3.0.13 PID Username Group Machine ------------------------------------------------------------------- Service pid machine Connected at ------------------------------------------------------- MC 30693 xxxxxxxxx Sat Mar 4 10:23:13 2006 IPC$ 13147 xxxxxxxxx Sat Mar 4 10:41:57 2006 Locked files: Pid DenyMode Access R/W Oplock Name -------------------------------------------------------------- 30693 DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH /var/shared/AB/gdat/ini/G_dat.ini Sat Mar 4 10:43:59 2006 The kernel is (full dmesg at the end) OpenBSD 3.8-stable (GENERIC.RAID) #1: Sat Mar 4 01:45:40 CET 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.RAID (previously had a -stable built on Jan 3 2006, same symptoms) # pkg_info |grep samba samba-3.0.13p0 SMB and CIFS client and server for UNIX samba-docs-3.0.20b documentation and examples for samba (binary package from ftp.kd85.com, tried also to build it from ports and even MFC'd the latest version, 3.0.31b - no change) # cat /etc/samba/smb.conf [global] dos charset = CP852 workgroup = STIL server string = xxxxx map to guest = Bad User passdb backend = tdbsam passwd program = /usr/bin/passwd %u log file = /var/log/smbd.%m max log size = 50 mangle prefix = 6 add user script = useradd -d /var/empty -s /sbin/nologin %u add group script = groupadd '%g' add machine script = useradd -d /var/empty -s /sbin/nologin -g machines %u logon script = logon.bat logon path = \\%L\profile\%U\profile logon drive = z: logon home = \\%L\%U domain logons = Yes domain master = Yes dns proxy = No wins support = Yes ldap ssl = no load printers = no <..snip..> [AB] path = /var/shared/AB read only = No guest ok = Yes Regards, Mitja --------------------------- OpenBSD 3.8-stable (GENERIC.RAID) #1: Sat Mar 4 01:45:40 CET 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.RAID RTC BIOS diagnostic error 18<memory_size,fixed_disk> cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.20 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU SH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID real mem = 535883776 (523324K) avail mem = 481636352 (470348K) using 4278 buffers containing 26898432 bytes (26268K) of memory RTC BIOS diagnostic error 18<memory_size,fixed_disk> mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 01/15/04, BIOS32 rev. 0 @ 0xffe90 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 @ 0xfeae0/160 (8 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801EB/ER LPC" rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800! 0xc9800/0x2800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82875P Host" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82875P AGP" rev 0x02 pci1 at ppb0 bus 1 uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: irq 11 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 uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: irq 9 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: irq 11 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB" rev 0x02: irq 5 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2 pci2 at ppb1 bus 2 vga1 at pci2 dev 0 function 0 "ATI Rage XL" rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) em0 at pci2 dev 12 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: irq 9, address: 00:07:e9:4d:dd:db ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02 pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility pciide0: channel 0 ignored (disabled) atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8162B, 0015> SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 pciide1 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: using irq 9 for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: <WDC WD1600JD-00HBB0> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1 at pciide1 channel 1 drive 0: <WDC WD1600JD-00HBC0> wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 "Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 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 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 sysbeep0 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 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask ef65 netmask ef65 ttymask ffe7 pctr: user-level cycle counter enabled Kernelized RAIDframe activated cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0 SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present raid0 (root): (RAID Level 1) total number of sectors is 16777088 (8191 MB) as root raid1 (root): (RAID Level 1) total number of sectors is 295593856 (144332 MB) dkcsum: wd0 matches BIOS drive 0x80 dkcsum: wd1 matches BIOS drive 0x81 rootdev=0x1300 rrootdev=0x3600 rawdev=0x3602 WARNING: / was not properly unmounted # diff -u /usr/src/sys/arch/i386/conf/GENERIC /usr/src/sys/arch/i386/conf/GENERIC.RAID --- /usr/src/sys/arch/i386/conf/GENERIC Wed Sep 7 22:21:57 2005 +++ /usr/src/sys/arch/i386/conf/GENERIC.RAID Mon Oct 24 21:08:32 2005 @@ -39,6 +39,8 @@ #option NTFS # Experimental NTFS support +option RAID_AUTOCONFIG + # or use root on nfs swap on nfs config bsd swap generic @@ -604,7 +606,7 @@ pseudo-device mtrr 1 # Memory range attributes control pseudo-device nvram 1 pseudo-device sequencer 1 -#pseudo-device raid 4 # RAIDframe disk driver +pseudo-device raid 4 # RAIDframe disk driver pseudo-device bio 1 # ioctl multiplexing device pseudo-device hotplug 1 # devices hot plugging