* [PATCH iproute2-next] tc: fq: display unthrottle latency
@ 2016-09-28 13:23 Eric Dumazet
2016-10-10 2:15 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2016-09-28 13:23 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
From: Eric Dumazet <edumazet@google.com>
In linux-4.9 fq packet scheduler got a new stat :
unthrottle_latency in nano second units.
Gives a good indication of system load or timer implementation
latencies.
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
include/linux/pkt_sched.h | 2 +-
tc/q_fq.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index f8e39db..df7451d 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -811,7 +811,7 @@ struct tc_fq_qd_stats {
__u32 flows;
__u32 inactive_flows;
__u32 throttled_flows;
- __u32 pad;
+ __u32 unthrottle_latency_ns;
};
/* Heavy-Hitter Filter */
diff --git a/tc/q_fq.c b/tc/q_fq.c
index 90147a6..c9efbfc 100644
--- a/tc/q_fq.c
+++ b/tc/q_fq.c
@@ -312,6 +312,9 @@ static int fq_print_xstats(struct qdisc_util *qu, FILE *f,
fprintf(f, ", %llu throttled", st->throttled);
+ if (st->unthrottle_latency_ns)
+ fprintf(f, ", %u ns latency", st->unthrottle_latency_ns);
+
if (st->flows_plimit)
fprintf(f, ", %llu flows_plimit", st->flows_plimit);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH iproute2-next] tc: fq: display unthrottle latency
2016-09-28 13:23 [PATCH iproute2-next] tc: fq: display unthrottle latency Eric Dumazet
@ 2016-10-10 2:15 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2016-10-10 2:15 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev
On Wed, 28 Sep 2016 06:23:15 -0700
Eric Dumazet <eric.dumazet@gmail.com> wrote:
> From: Eric Dumazet <edumazet@google.com>
>
> In linux-4.9 fq packet scheduler got a new stat :
>
> unthrottle_latency in nano second units.
>
> Gives a good indication of system load or timer implementation
> latencies.
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied to net-next (for 4.9)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-10 2:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 13:23 [PATCH iproute2-next] tc: fq: display unthrottle latency Eric Dumazet
2016-10-10 2:15 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.