Re: ALTQ/pf troubles

From: Alexander S. Usov <A.S.Usov_at_KVI.nl>
Date: Sat, 02 Oct 2004 18:58:35 +0200
On Friday 01 October 2004 21:00, Max Laier wrote:
> First of all a look at your queue statistics would be helpful:
>  $ pfctl -vvsq
> how many packets are being dropped? Which queues do the packets end up in?
>
> If you can easily check OpenBSD behavior, that'd be a good check as well.

Ok. Today I downloaded and installed OpenBSD 3.6-snapshot (it's a centrino 
notebook and I wanted to be sure that it will be supported).
Should say that their installer is quite fun, but console and csh are too 
old-fashioned.

So the result is like this:
$ ifconfig bce0
bce0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        address: 00:c0:9f:1c:1b:8b
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::2c0:9fff:fe1c:1b8b%bce0 prefixlen 64 scopeid 0x1
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255

pf.conf is the same, as used in FreeBSD, just bfe0 renamed to bce0

without queueing transfer speed is about 35-40KB/s
$ netstat 3
  lo0 in        lo0 out              total in      total out
 packets  errs  packets  errs colls   packets  errs  packets  errs colls
       2     0        2     0     0     10256     0    12381     0     0
       0     0        0     0     0        56     0       81     0     0

For queue bandwidth 350Kb
$ pfctl -vvsq
queue q priq( default )
  [ pkts:       3646  bytes:    5379512  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50 ]
  [ measured:    26.4 packets/s, 312.48Kb/s ]

$ netstat 3
  lo0 in        lo0 out              total in      total out
 packets  errs  packets  errs colls   packets  errs  packets  errs colls
       2     0        2     0     0     13924     0    17688     0     0
       0     0        0     0     0        54     0       78     0     0
       0     0        0     0     0        56     0       81     0     0

which is correct.
So it's defenitely something is wrong in FreeBSD.
I suspect this is somehow related to bfe driver, as on a different machine the 
same system (rsync copy up to the few files in /etc & /var) with the same 
configuration but xl card works correctly.

-- 
Best regards,
  Alexander.
Received on Sat Oct 02 2004 - 14:59:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:15 UTC