[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

queue curiosity...



While having an offlist conversation with one of the guys about queue rules and efficiency, I did a little bit of performance tracking with 'pfctl -vvsq' and noticed something interesting...

queue root_rl0 bandwidth 100Mb priority 0 cbq( wrr root ) {trash, other, north,
center, south}
[ pkts: 4329470 bytes: 4229186886 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 217.2 packets/s, 1.73Mb/s ]
queue trash bandwidth 100Mb cbq( default )
[ pkts: 28425 bytes: 11473771 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.1 packets/s, 35.78 b/s ]
queue other bandwidth 6Kb cbq( borrow )
[ pkts: 1362 bytes: 658327 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 546 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]
queue north bandwidth 500Kb cbq( borrow )
[ pkts: 16535 bytes: 2967040 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 19 suspends: 0 ]
[ measured: 0.2 packets/s, 216.61 b/s ]
queue center bandwidth 500Kb cbq( borrow )
[ pkts: 3815691 bytes: 3738730690 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 2917012 suspends: 0 ]
[ measured: 87.0 packets/s, 721.07Kb/s ]
queue south bandwidth 500Kb cbq( borrow )
[ pkts: 467457 bytes: 475357058 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 382997 suspends: 0 ]
[ measured: 129.9 packets/s, 1.01Mb/s ]


Ignoring for the moment that I'm apparently getting more bandwidth than I thought (I've seen the root queue at 1.98Mb/s, and thought I only had 1528k)... the ruleset I'm using to pass traffic on rl0 are...

# Internal queueing
pass in on $int_if from $int_if:network to any keep state
pass out quick on $int_if from any to $north queue north
pass out quick on $int_if from any to $south queue south
pass out quick on $int_if from any to $center queue center
pass out on $int_if from any to $int_if:network queue other

it begs the question, why are any packets at all being placed into the 'trash' queue? There are (currently, anyway) only the three static machines (north, center, and south). Nobody is connected with a DHCP machine, and even if they were, that traffic should go to 'other', not 'trash'. I'm guessing the trickle is likely the result of ARP packets, but would like someone with more knowledge than I to shed some light on this.



Visit your host, monkey.org