Posts from November 2005.

ip_conntrack

Learned the hard way: NEVER COMPILE ip_conntrack into the Linux kernel… 🙂

PowerDNS recursor problems

It seems that PowerDNS‘s pdns_recursor crashes on FreeBSD under load.

I’ve replaced it by a bind recursor. Excerpt from 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";

listen-on port XXXX { 127.0.0.1; };
};

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

FreeBSD 6.0 on old hardware

I have installed FreeBSD 6.0 on some old computer, seems to work very fast! I have rebuild world and kernel.

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 6.0-RELEASE #0: Sun Nov 6 00:13:58 EET 2005
root@XXXX:/usr/obj/usr/src/sys/XXXX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x652 Stepping = 2
Features=0x183f9ff
real memory = 201261056 (191 MB)
avail memory = 191619072 (182 MB)
ACPI disabled by blacklist. Contact your BIOS vendor.
npx0: [FAST]
npx0:

on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: pcibus 0 on motherboard
pir0: on motherboard
pci0:
on pcib0
agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: at device 1.0 on pci0
pci1:
on pcib1
pci1: at device 0.0 (no driver attached)
isab0: at device 7.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x9080-0x908f at device 7.1 on pci0
ata0: on atapci0
ata1:
on atapci0
uhci0: port 0x9040-0x905f irq 11 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0:
on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: at device 7.3 (no driver attached)
fxp0: port 0x9000-0x901f mem 0x82300000-0x82300fff,0x82100000-0x821fffff irq 3 at device 16.0 on pci0
miibus0: on fxp0
inphy0: on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:00:e2:13:39:e0
rl0: port 0x7000-0x70ff mem 0x80100000-0x801000ff irq 10 at device 18.0 on pci0
miibus1: on rl0
rlphy0: on miibus1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0e:2e:56:b7:83
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xc7fff on isa0
atkbdc0: at port 0x60,0x64 on isa0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0:
on ppc0
sc0: at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: can't assign resources (memory)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
unknown: can't assign resources (irq)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
Timecounter "TSC" frequency 350797222 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to accept, logging limited to 1 packets/entry by default
ad0: 6179MB at ata0-master UDMA33
acd0: CDROM at ata1-master PIO4
Trying to mount root from ufs:/dev/ad0s1a

PowerDNS recursor problems

It seems that pdns_recursor from 2.9.19 dies under light load on FreeBSD.