netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What queues/buffers does tc-netem use?
@ 2015-07-16 11:28 Motejlek, Petr
  2015-07-16 12:42 ` Hagen Paul Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Motejlek, Petr @ 2015-07-16 11:28 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: netem@osdl.org

Hello,

I was wondering what queues/buffers does netem use and how does one control or monitor them?

I could not find this information anywhere and I am not that good in reading the sources to be able to tell enough about this :) If we talk only about the situation where netem is the root qdisc for a particular interface, I would imagine it might be using the txqueue of that interface, but I am not sure if that's really the case...

Thanks​,
Petr MOTEJLEK



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What queues/buffers does tc-netem use?
  2015-07-16 11:28 What queues/buffers does tc-netem use? Motejlek, Petr
@ 2015-07-16 12:42 ` Hagen Paul Pfeifer
  2015-07-16 12:48   ` Motejlek, Petr
  0 siblings, 1 reply; 4+ messages in thread
From: Hagen Paul Pfeifer @ 2015-07-16 12:42 UTC (permalink / raw)
  To: netdev, Motejlek, Petr; +Cc: netem

> On July 16, 2015 at 1:28 PM "Motejlek, Petr" <pmotejle@akamai.com>
> wrote:

> I was wondering what queues/buffers does netem use and how does one
> control or monitor them?

netem uses his own rbtree based queue. You can use tc(1) to get
statistics.

> I could not find this information anywhere and I am not that good in
> reading the sources to be able to tell enough about this :) If we talk
> only about the situation where netem is the root qdisc for a particular
> interface, I would imagine it might be using the txqueue of that
> interface, but I am not sure if that's really the case...

Saddly there is no netem implementation documentation, but the source code
is straightforward. You may take a look:

http://lxr.free-electrons.com/source/net/sched/sch_netem.c

Cheers, Hagen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What queues/buffers does tc-netem use?
  2015-07-16 12:42 ` Hagen Paul Pfeifer
@ 2015-07-16 12:48   ` Motejlek, Petr
  2015-07-16 13:04     ` Hagen Paul Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Motejlek, Petr @ 2015-07-16 12:48 UTC (permalink / raw)
  To: netdev@vger.kernel.org, Hagen Paul Pfeifer; +Cc: netem@osdl.org

Hello Hagen,

Could you please give me some example of such a tc command that would tell me the statistics? I am not sure what you mean.

Is there a way I can manipulate the internal rbtree queue size, please?

Thank you

Petr MOTEJLEK
________________________________________
From: Hagen Paul Pfeifer <hagen@jauu.net>
Sent: Thursday, July 16, 2015 2:42 PM
To: netdev@vger.kernel.org; Motejlek, Petr
Cc: netem@osdl.org
Subject: Re: What queues/buffers does tc-netem use?

> On July 16, 2015 at 1:28 PM "Motejlek, Petr" <pmotejle@akamai.com>
> wrote:

> I was wondering what queues/buffers does netem use and how does one
> control or monitor them?

netem uses his own rbtree based queue. You can use tc(1) to get
statistics.

> I could not find this information anywhere and I am not that good in
> reading the sources to be able to tell enough about this :) If we talk
> only about the situation where netem is the root qdisc for a particular
> interface, I would imagine it might be using the txqueue of that
> interface, but I am not sure if that's really the case...

Saddly there is no netem implementation documentation, but the source code
is straightforward. You may take a look:

http://lxr.free-electrons.com/source/net/sched/sch_netem.c

Cheers, Hagen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What queues/buffers does tc-netem use?
  2015-07-16 12:48   ` Motejlek, Petr
@ 2015-07-16 13:04     ` Hagen Paul Pfeifer
  0 siblings, 0 replies; 4+ messages in thread
From: Hagen Paul Pfeifer @ 2015-07-16 13:04 UTC (permalink / raw)
  To: netdev, Motejlek, Petr; +Cc: netem

> On July 16, 2015 at 2:48 PM "Motejlek, Petr" <pmotejle@akamai.com>
> wrote:
>
> Could you please give me some example of such a tc command that
> would tell me the statistics? I am not sure what you mean.

tc -s qdisc show dev eth0

> Is there a way I can manipulate the internal rbtree queue size, please?

Sure, the option is called limit.
 
> Thank you

You are welcome!

Hagen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-16 13:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16 11:28 What queues/buffers does tc-netem use? Motejlek, Petr
2015-07-16 12:42 ` Hagen Paul Pfeifer
2015-07-16 12:48   ` Motejlek, Petr
2015-07-16 13:04     ` Hagen Paul Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).