Hi,
I moved my old "server" to a better hardware and I installed amd64 -current (old one was i386 following -current) and made a drop in replacement of pf.conf. The problem is that when I set a queue MAX speed limit it didn't work as it should - for example b_bittor:

pf.conf:

 queue rootq on $ExtIf bandwidth 100M max 100M
  queue inter parent rootq bandwidth 3M max 2950K
   queue i_ack     parent inter bandwidth 2M, min 1M
   queue i_dns     parent inter bandwidth 500K
   queue i_ntp     parent inter bandwidth 300K
   queue i_web     parent inter bandwidth 2M burst 2M for 10000ms
   queue i_bulk    parent inter bandwidth 170K
   queue i_bittor  parent inter bandwidth 30K, max 1400K default

  queue bg parent rootq bandwidth 40M max 39M
   queue b_ack     parent bg bandwidth 15M, min 10M
   queue b_dns     parent bg bandwidth 1M, min 1M
   queue b_ntp     parent bg bandwidth 4M, min 4M
   queue b_rdc     parent bg bandwidth 4M, min 4M
queue b_web parent bg bandwidth 15M, min 15M burst 40M for 5000ms, max 37M
   queue b_bulk    parent bg bandwidth 8M, min 5M
   queue b_bittor  parent bg bandwidth 2M, max 2M

queue b_bittor parent bg on em0 bandwidth 2M, max 2M qlimit 50
[ pkts: 1441771 bytes: 2064477928 dropped pkts: 0 bytes: 0 ]
  [ qlength:   0/ 50 ]
  [ measured:  2043.4 packets/s, 23.69Mb/s ]

1 users Load 0.41 0.40 0.43 Tue Sep 16 10:12:56 2014

QUEUE BW SCH PRIO PKTS BYTES DROP_P DROP_B QLEN BORROW SUSPEN P/S B/S rootq on em0 100M 0 0 0 0 0 0 0 inter 3M 0 0 0 0 0 0 0 i_ack 2M 8365 527486 44 2388 0 0 0 i_dns 500K 1333 142263 0 0 0 0 0 i_ntp 300K 1143 105017 0 0 0 1.0 89 i_web 2M 2328 742242 24 2197 0 0 0 i_bulk 170K 1482 242112 0 0 0 0 0 i_bittor 30K 91768 9426828 0 0 0 45 3024 bg 40M 0 0 0 0 0 0 0 b_ack 15M 23306 1428052 0 0 0 2 164 b_dns 1M 10044 4865285 0 0 0 28 18672 b_ntp 4M 2819 256892 0 0 0 1 178 b_rdc 4M 0 0 0 0 0 0 0 b_web 15M 800 203426 23 10556 0 1.0 97 b_bulk 8M 328 23814 0 0 0 0 0 b_bittor 2M 1649850 2310255K 0 0 0 2610 3796423

dmesg:
OpenBSD 5.6-current (GENERIC.MP) #374: Mon Sep 15 08:42:10 MDT 2014
    t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 6416760832 (6119MB)
avail mem = 6237216768 (5948MB)
..........

Reply via email to