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

Bug#719958: traffic control simple token bucket filter within prio broken in wheezy



On Sat, Aug 17, 2013 at 04:08:12PM +0200, Ben Hutchings wrote:
> On Sat, 2013-08-17 at 15:33 +0200, Josip Rodin wrote:
> > On Sat, Aug 17, 2013 at 02:58:07PM +0200, Ben Hutchings wrote:
> > > > > > How do I debug this further?
> > > > > 
> > > > > You could try using the perf dropmonitor script as I described on my bug
> > > > > report.
> > > > 
> > > > Didn't you say that was also broken? :)
> > > [...]
> > > 
> > > It's fixed now.
> > 
> > Hmm. Googling says it was fixed in May, so it doesn't sound like something
> > that's going to come close to entering 3.2...
> > 
> > So I took the new script and placed into
> > /usr/share/perf_3.2-core/scripts/python/net_dropmonitor.py
> > 
> > But I still can't seem to run it:
> > 
> > % perf script net_dropmonitor
> > invalid or unsupported event: 'skb:kfree_skb'
> > 
> > Help?
> 
> Try running it as root...

Well, that was stupid. Anyway, my test file transfer that drags along like
this:

Length: 2586317 (2,5M) [application/octet-stream]
Saving to: "/dev/null"

 8% [==>                                    ] 207.064     13,7K/s  eta 2m 18s  ^C

Results in this:

Starting trace (Ctrl-C to dump results)
^CGathering kallsyms data
                 LOCATION                    OFFSET                     COUNT
            net_tx_action                         0                         1

At the same time, the tc output changes from:

qdisc prio 1: root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 Sent 948738 bytes 5358 pkt (dropped 117, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc sfq 10: parent 1:1 limit 127p quantum 1514b divisor 1024
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc tbf 20: parent 1:2 rate 20000Kbit burst 20Kb lat 4295.0s
 Sent 948738 bytes 5358 pkt (dropped 117, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc sfq 30: parent 1:3 limit 127p quantum 1514b divisor 1024
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0

to this:

qdisc prio 1: root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 Sent 1235809 bytes 6051 pkt (dropped 182, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc sfq 10: parent 1:1 limit 127p quantum 1514b divisor 1024
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc tbf 20: parent 1:2 rate 20000Kbit burst 20Kb lat 4295.0s
 Sent 1235809 bytes 6051 pkt (dropped 182, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc sfq 30: parent 1:3 limit 127p quantum 1514b divisor 1024
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0

-- 
     2. That which causes joy or happiness.


Reply to: