Because of this ever nagging issue, I thought I'd try posting here again,
two years since my last post.  For years now, since OpenBSD 3.5, I have been
unable to get altq to limit bandwidth properly.  In a nutshell, if I give
altq an example bandwidth value of 1024Kb, my bandwidth will be incorrectly
capped to about 512Kb or less.  This issue doesn't occur immediately-it only
happens after the box has an uptime of like a few weeks or so and then,
perhaps after an uptime of over two months, it'll work normally again and
then go back to the broken behavior sometime later.  A reboot of the box or
removing altq is the only way to resolve the issue, temporarily.  I've tried
both priq and cbq, adjusting tbrsize, recompiling the kernel with a higher
HZ value and using different hardware and different Internet connections,
but the issue persists.

 

Full detail on the issue is available from my gnats post at
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes
<http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&textonly=yes&numbe
rs=4312> &textonly=yes&numbers=4312.  The relevant portion of pf.conf:

 

altq on $external_if priq bandwidth 1522Kb queue \

        { interac, tcp_ack, default, torrent }

queue interac priority 14

queue tcp_ack priority 13

queue default priority 8 priq ( default )

queue torrent priority 2 priq ( red )

 

dmesg from a piece of hardware I'm experiencing this issue with.  Any
thoughts/guidance is appreciated.

 

OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007

    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

cpu0: Intel(R) Pentium(R) M processor 1600MHz ("GenuineIntel" 686-class)
1.60 GHz

cpu0:
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,
FXSR,SSE,SSE2,TM,SBF,EST,TM2

real mem  = 536244224 (523676K)

avail mem = 481591296 (470304K)

using 4278 buffers containing 26935296 bytes (26304K) of memory

mainbus0 (root)

bios0 at mainbus0: AT/286+ BIOS, date 06/23/05, BIOS32 rev. 0 @ 0xf0000,
SMBIOS rev. 2.3 @ 0xfa1ee (31 entries)

bios0: Hewlett-Packard HP Compaq nc6000 (DQ880A#ABA)

apm0 at bios0: Power Management spec V1.2 (BIOS managing devices)

apm0: AC on, battery charge unknown

apm0: flags 130102 dobusy 0 doidle 1

pcibios0 at bios0: rev 2.1 @ 0xf0000/0x2000

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0840/160 (8 entries)

pcibios0: bad IRQ table checksum

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf6360/160 (8 entries)

pcibios0: PCI Exclusive IRQs: 5 10 11

pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801DBM LPC" rev 0x00)

pcibios0: PCI bus #5 is the last bus

bios0: ROM list: 0xc0000/0x10000

acpi at mainbus0 not configured

cpu0 at mainbus0

cpu0: Enhanced SpeedStep 1600 MHz (1484 mV): speeds: 1600, 1400, 1200, 1000,
800, 600 MHz

pci0 at mainbus0 bus 0: configuration mode 1 (no bios)

pchb0 at pci0 dev 0 function 0 "Intel 82855PE Hub" rev 0x03

ppb0 at pci0 dev 1 function 0 "Intel 82855PE AGP" rev 0x03

pci1 at ppb0 bus 1

vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M10 NP" rev 0x00

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)

wsdisplay0: screen 1-5 added (80x25, vt100 emulation)

uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: 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

uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: 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 82801DB USB" rev 0x03: irq 10

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

ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 10

usb3 at ehci0: USB revision 2.0

uhub3 at usb3

uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1

uhub3: 6 ports with 6 removable, self powered

ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83

pci2 at ppb1 bus 2

ath0 at pci2 dev 4 function 0 "Atheros AR5212" rev 0x01: irq 11

ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR0W, address
00:0b:cd:5a:28:bb

cbb0 at pci2 dev 6 function 0 "O2 Micro OZ711E0 CardBus" rev 0x00: irq 10

cbb1 at pci2 dev 6 function 1 "O2 Micro OZ711E0 CardBus" rev 0x00: irq 10

"O2 Micro OZ711Mx CardBus" rev 0x00 at pci2 dev 6 function 2 not configured

cbb2 at pci2 dev 6 function 3 "O2 Micro OZ711E0 CardBus" rev 0x00: irq 10

bge0 at pci2 dev 14 function 0 "Broadcom BCM5705M Alt" rev 0x03, BCM5705 A3
(0x3003): irq 11, address 00:08:02:de:d3:2d

brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 2

cardslot0 at cbb0 slot 0 flags 0

cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x20

pcmcia0 at cardslot0

cardslot1 at cbb1 slot 1 flags 0

cardbus1 at cardslot1: bus 4 device 0 cacheline 0x0, lattimer 0x20

pcmcia1 at cardslot1

cardslot2 at cbb2 slot 2 flags 0

cardbus2 at cardslot2: bus 5 device 0 cacheline 0x0, lattimer 0x20

pcmcia2 at cardslot2

ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03

pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide0 channel 0 drive 0: <FUJITSU MHT2060AH>

wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors

wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5

atapiscsi0 at pciide0 channel 1 drive 0

scsibus0 at atapiscsi0: 2 targets

cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, RW/DVD GCC-4241N, 0C29> SCSI0
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, DMA mode 2

auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 11, ICH4
AC97

ac97: codec id 0x41445374 (Analog Devices AD1981B)

ac97: codec features headphone, 20 bit DAC, No 3D Stereo

audio0 at auich0

"Intel 82801DB Modem" rev 0x03 at pci0 dev 31 function 6 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: reported by CPUID; using exception 16

pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo

fdc0 at isa0 port 0x3f0/6 irq 6 drq 2

biomask e76d netmask ef6d ttymask ffef

pctr: 686-class user-level performance counters enabled

mtrr: Pentium Pro MTRR support

fxp0 at cardbus0 dev 0 function 0 "INTEL(R), PRO/100 CARDBUS II, MBLA3300":
INTEL(R) PRO/100 CARDBUS II: irq 10, address 00:03:47:18:1f:5d

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4

ral0 at cardbus1 dev 0 function 0 "Ralink Technology, Inc., RT2500, 802.11
CardBus Reference Card": irq 10, address 00:0e:3b:07:a2:13

ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525

ugen0 at uhub2 port 1

ugen0: ACTIONTEC Bluetooth by hp, rev 1.10/8.02, addr 2

dkcsum: wd0 matches BIOS drive 0x80

root on wd0a

rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply via email to