netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* continuous REPL mode for tc(8)
@ 2022-08-29 20:32 Thorsten Glaser
  2022-08-29 20:52 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Glaser @ 2022-08-29 20:32 UTC (permalink / raw)
  To: netdev

Hi,

perhaps, if not inter-qdisc communication, can I at least have
a mode for tc to run in a loop, so I lose the fork+exec overhead
when calling tc change a *lot* of times?

How difficult to implement is that?

Could I, maybe, even just call main() multiple times, or does
that leak?

Thanks in advance,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************

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

* Re: continuous REPL mode for tc(8)
  2022-08-29 20:32 continuous REPL mode for tc(8) Thorsten Glaser
@ 2022-08-29 20:52 ` Toke Høiland-Jørgensen
  2022-08-29 21:02   ` Thorsten Glaser
  0 siblings, 1 reply; 5+ messages in thread
From: Toke Høiland-Jørgensen @ 2022-08-29 20:52 UTC (permalink / raw)
  To: Thorsten Glaser, netdev

Thorsten Glaser <t.glaser@tarent.de> writes:

> Hi,
>
> perhaps, if not inter-qdisc communication, can I at least have
> a mode for tc to run in a loop, so I lose the fork+exec overhead
> when calling tc change a *lot* of times?
>
> How difficult to implement is that?

It already exists; see the '-b' option (RTF man page for details) :)

-Toke

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

* Re: continuous REPL mode for tc(8)
  2022-08-29 20:52 ` Toke Høiland-Jørgensen
@ 2022-08-29 21:02   ` Thorsten Glaser
  2022-08-29 21:10     ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Glaser @ 2022-08-29 21:02 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen; +Cc: netdev

On Mon, 29 Aug 2022, Toke Høiland-Jørgensen wrote:

> It already exists; see the '-b' option (RTF man page for details) :)

Ah. Thanks for pointing my nose on it… as I said I wasn’t the one
to dig into invoking the utility. I will tell them.

While not as nice, it will greatly reduce calling overhead.

Thanks,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************

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

* Re: continuous REPL mode for tc(8)
  2022-08-29 21:02   ` Thorsten Glaser
@ 2022-08-29 21:10     ` Toke Høiland-Jørgensen
  2022-08-29 21:41       ` Thorsten Glaser
  0 siblings, 1 reply; 5+ messages in thread
From: Toke Høiland-Jørgensen @ 2022-08-29 21:10 UTC (permalink / raw)
  To: Thorsten Glaser; +Cc: netdev

Thorsten Glaser <t.glaser@tarent.de> writes:

> On Mon, 29 Aug 2022, Toke Høiland-Jørgensen wrote:
>
>> It already exists; see the '-b' option (RTF man page for details) :)
>
> Ah. Thanks for pointing my nose on it… as I said I wasn’t the one
> to dig into invoking the utility. I will tell them.

You're welcome :)

> While not as nice, it will greatly reduce calling overhead.

If you want to lower overhead even further, you can always use a netlink
library and send the messages to the kernel directly...

-Toke

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

* Re: continuous REPL mode for tc(8)
  2022-08-29 21:10     ` Toke Høiland-Jørgensen
@ 2022-08-29 21:41       ` Thorsten Glaser
  0 siblings, 0 replies; 5+ messages in thread
From: Thorsten Glaser @ 2022-08-29 21:41 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen; +Cc: netdev

On Mon, 29 Aug 2022, Toke Høiland-Jørgensen wrote:

> If you want to lower overhead even further, you can always use a netlink
> library and send the messages to the kernel directly...

I guessed so, but it’s a good thing I didn’t follow that direction
because there’s now two different (Java and Google-Issue9) clients
slash management tools for this, so having tc separate is better.
I’m just doing the low-level part ;-)

Thanks,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************

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

end of thread, other threads:[~2022-08-29 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-29 20:32 continuous REPL mode for tc(8) Thorsten Glaser
2022-08-29 20:52 ` Toke Høiland-Jørgensen
2022-08-29 21:02   ` Thorsten Glaser
2022-08-29 21:10     ` Toke Høiland-Jørgensen
2022-08-29 21:41       ` Thorsten Glaser

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).