Named 9.3.1 caching problem AMD64

Mark Sergeant msergeant at snsonline.net
Mon May 30 03:22:58 PDT 2005


I've got a very unusual problem running a bind caching name server on  
AMD64. I've tried FreeBSD-5.4-p1 and 5.4-STABLE and nothing has  
helped. Named goes into a "crash" state once hit hits approx 120M of  
memory in use, at which point it chews 100% cpu and doesn't respond  
to any futher queries. If anyone has any idea on how I can fix this  
it would be much appreciated as it's a production system.

The folliowing are the relevant config details ...

system details
FreeBSD zeus 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri May 27 08:50:14  
EST 2005     root at zeus:/usr/obj/usr/src/sys/ZEUS  amd64

dmesg

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights  
reserved.
FreeBSD 5.4-STABLE #0: Fri May 27 08:50:14 EST 2005
     root at zeus:/usr/obj/usr/src/sys/ZEUS
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Opteron(tm) Processor 250 (2392.55-MHz K8-class CPU)
   Origin = "AuthenticAMD"  Id = 0xf5a  Stepping = 10
    
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE, 
MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
   AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory  = 2146893824 (2047 MB)
avail memory = 2062729216 (1967 MB)
ACPI APIC Table: <PTLTD          APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 24-27 on motherboard
ioapic2 <Version 1.1> irqs 28-31 on motherboard
netsmb_dev: loaded
acpi0: <PTLTD    XSDT> on motherboard
acpi0: Power Button (fixed)
unknown: I/O range not supported
unknown: I/O range not supported
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x8080-0x80ff,0x8000-0x807f, 
0xcf8-0xcff iomem 0xd8000-0xdbfff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci1: <ACPI PCI bus> on pcib1
ohci0: <OHCI (generic) USB controller> mem 0xfb100000-0xfb100fff irq  
19 at device 0.0 on pci1
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xfb101000-0xfb101fff irq  
19 at device 0.1 on pci1
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci1: <display, VGA> at device 5.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 8111 UDMA133 controller> port 0x1020-0x102f, 
0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <bridge> at device 7.3 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pci2: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2003> mem  
0xfd000000-0xfd00ffff,0xfd010000-0xfd01ffff irq 24 at device 1.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,  
1000baseTX-FDX, auto
bge0: Ethernet address: 00:11:25:1e:1b:ec
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2003> mem  
0xfd020000-0xfd02ffff,0xfd030000-0xfd03ffff irq 25 at device 1.1 on pci2
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,  
1000baseTX-FDX, auto
bge1: Ethernet address: 00:11:25:1e:1b:ed
pci0: <base peripheral, interrupt controller> at device 10.1 (no  
driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci3: <ACPI PCI bus> on pcib3
twe0: <3ware Storage Controller. Driver version 1.50.01.002> port  
0x3000-0x300f mem 0xfd800000-0xfdffffff irq 28 at device 3.0 on pci3
twe0: 2 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048
pci0: <base peripheral, interrupt controller> at device 11.1 (no  
driver attached)
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10  
on acpi0
sio0: type 16550A, console
orm0: <ISA Option ROMs> at iomem 0xcb000-0xcbfff,0xc9800-0xcafff, 
0xc8000-0xc97ff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
device_attach: atkbd0 attach returned 6
ppc0: cannot reserve I/O port range
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on  
isa0
ukbd0: vendor 0x1267 product 0x0103, rev 1.10/1.00, addr 2, iclass 3/1
kbd0 at ukbd0
uhid0: vendor 0x1267 product 0x0103, rev 1.10/1.00, addr 2, iclass 3/1
Timecounters tick every 1.000 msec
IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
acd0: CDROM <LG CD-ROM CRN-8245B/1.16> at ata1-master PIO4
twed0: <Unit 0, TwinStor, Normal> on twe0
twed0: 76323MB (156310528 sectors)
SMP: AP CPU #1 Launched!


named.conf

options {
         directory       "/etc/namedb";
         pid-file        "/var/run/named/pid";
         dump-file       "/var/dump/named_dump.db";
         statistics-file "/var/stats/named.stats";
         recursive-clients 2000;
         listen-on       { 127.0.0.1; x.x.x.x; };
         datasize        512M;
         max-cache-size 512M;
};

logging {
         channel misc_logfile {
                 file "/var/log/misc.log" versions 3 size 10M;
                 severity info;
                 print-category yes;
                 print-severity yes;
                 print-time yes;
         };
         channel config_logfile {
                 file "/var/log/config.log" versions 3 size 10M;
                 severity info;
                 print-category yes;
                 print-severity yes;
                 print-time yes;
         };
         channel security_logfile {
                 file "/var/log/security.log" versions 3 size 10M;
                 severity info;
                 print-category yes;
                 print-severity yes;
                 print-time yes;
         };
         channel xfer_logfile {
                 file "/var/log/xfer.log" versions 3 size 10M;
                 severity info;
                 print-category yes;
                 print-severity yes;
                 print-time yes;
         };

         category default { misc_logfile; };
         category config { config_logfile; };
         category lame-servers { null; };
         category notify { xfer_logfile; };
         category queries { null; };
         category security { security_logfile; };
         category update { xfer_logfile; };
         category xfer-in { xfer_logfile; };
         category xfer-out { xfer_logfile; };
};

zone "." {
         type hint;
         file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
         type master;
         file "master/localhost.rev";
};

// RFC 3152
zone  
"1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARP 
A" {
         type master;
         file "master/localhost-v6.rev";
};

// RFC 1886 -- deprecated
zone  
"1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT 
" {
         type master;
         file "master/localhost-v6.rev";
};



More information about the freebsd-amd64 mailing list