On Thu, 2003-09-11 at 22:20, Ricardo C Gonzalez wrote:
> Jamal wrote:
> We should care about counting the packets being dropped on the
> transmit side. Would it be the responsability of the driver to account for
> this drops? Because each driver has a dedicated software queue and in my
> opinion, the driver should account for this packets.
This is really the schedulers responsibility. Its hard for the driver to
keep track of why a packet was dropped. Example, could be dropped to
make room for a higher priority packet thats being anticipated to show
up soon.
The simple default 3-band scheduler unfortunately doesnt quiet show its
stats ...so simple way to see drops is:
- install the prio qdisc
------
[root@jzny root]# tc qdisc add dev eth0 root prio
[root@jzny root]# tc -s qdisc
qdisc prio 8001: dev eth0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1
1
Sent 42 bytes 1 pkts (dropped 0, overlimits 0)
-----
or you may wanna install a single pfifo queue with size of 1000 each
(although this is a little too mediavial)
example:
#tc qdisc add dev eth0 root pfifo limit 1000
#tc -s qdisc
qdisc pfifo 8002: dev eth0 limit 1000p
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
etc
cheers,
jamal
|