ALTQ/pf troubles
Max Laier
max at love2party.net
Sat Oct 2 17:15:01 PDT 2004
On Saturday 02 October 2004 18:58, Alexander S. Usov wrote:
> 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.
Okay. Thank you for the information and hunting. Can you please turn this into
a PR? Thanks in advance.
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041003/d2f73926/attachment.bin
More information about the freebsd-current
mailing list