You are not logged in.

#1 2019-04-22 14:20:18

vic_acid
Member
Registered: 2016-12-05
Posts: 13

Best way(s) to set tc qdisc at boot?

Greetings:

What’s the best way or ways to set a system’s default tc qdisc and its settings at boot?

In the various posts I’ve read about making qdisc changes almost all of them leave out ways to persist the changes.

For simple cases I am familiar with setting net.core.default_qdisc via sysctl confs. But that just selects a root qdisc with default values. If I wanted to change those default values or set up a multilevel queue then it seems I’d need something more script-like.

Recommendations and ideas?

Many thanks in advance!

Offline

#2 2019-04-22 14:52:48

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: Best way(s) to set tc qdisc at boot?

I haven't used QoS in awhile but have you tried creating your own script and then making a systemd file for it to start up at boot?

Offline

#3 2019-04-22 23:13:52

vic_acid
Member
Registered: 2016-12-05
Posts: 13

Re: Best way(s) to set tc qdisc at boot?

Thanks for replying, r0b0t! I had considered that but wasn't sure if that was a recommended way to do it or not.

Raises a related question: if I make a service file to fire off the tc script, is there a particularly good place in the systemd chain to do it? When does the default qdisc get set up so I wouldn't have to remove/replace it?

Offline

#4 2019-04-23 10:45:28

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: Best way(s) to set tc qdisc at boot?

That depends on your specific configuration. generally speaking, if you have a "normal" setup with physical interfaces and no VPN (Openvpn or IPSec) I would put it right after the firewalling / routing is done.

Offline

Board footer

Powered by FluxBB