Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.isp > #1531

Re: Traffic shaping on debian

From Martin Kraus <lists_mk@wujiman.net>
Newsgroups linux.debian.isp
Subject Re: Traffic shaping on debian
Date 2016-05-30 17:40 +0200
Message-ID <rExsm-63s-23@gated-at.bofh.it> (permalink)
References <rDor8-2Tz-5@gated-at.bofh.it> <rDoUa-3jS-3@gated-at.bofh.it> <rDqsW-49M-3@gated-at.bofh.it> <rDOlA-28Q-11@gated-at.bofh.it> <rEt5o-33J-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, May 30, 2016 at 01:55:51PM +0300, Aleksey wrote:
> I have also noticed that all the load is on one CPU core it is not
> distributed to all available cores. And how can this be avoided?

There is a qdisc called mq which creates a class for each hardware queue on 
the attached ethernet card. You can bind other qdiscs (such as htb) to each of 
these classes but this will not allow you to shape traffic for a single 
type going out over all the hardware queues.

It might be possible to have multiple htb qdiscs and use filters to send 
each type of traffic to a selected hardware queue. This has other adverse 
effects (such as not being able to borrow unused bandwidth among the hw
queues) and there still might be lock contention among the cores for each such 
queue so it might not even work better.

If you are at 1 Gbit speed the cpu can probably handle it so there is no need
to do any of this. If you have a 10Gbit+ connection then this probably isn't
the correct place to do shaping anyway and should be done closer to the source.

It depends on what you're trying to accomplish.

regards
Martin

Back to linux.debian.isp | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Traffic shaping on debian Aleksey <unite@openmailbox.org> - 2016-05-27 13:50 +0200
  Re: Traffic shaping on debian Mihamina RAKOTOMANDIMBY <mihamina@rktmb.org> - 2016-05-27 14:00 +0200
  Re: Traffic shaping on debian Dmitry Sinina <dmitry.sinina@onat.edu.ua> - 2016-05-27 14:20 +0200
    Re: Traffic shaping on debian Aleksey <unite@openmailbox.org> - 2016-05-27 16:00 +0200
      Re: Traffic shaping on debian lxP <lxp@davizone.at> - 2016-05-27 18:30 +0200
        Re: Traffic shaping on debian lxP <lxp@davizone.at> - 2016-05-28 13:00 +0200
      Re: Traffic shaping on debian Martin Kraus <lists_mk@wujiman.net> - 2016-05-28 17:30 +0200
        Re: Traffic shaping on debian Aleksey <unite@openmailbox.org> - 2016-05-30 13:00 +0200
          Re: Traffic shaping on debian Martin Kraus <lists_mk@wujiman.net> - 2016-05-30 17:40 +0200
            Re: Traffic shaping on debian Aleksey <unite@openmailbox.org> - 2016-06-01 09:30 +0200
              Re: Traffic shaping on debian Raúl Alexis Betancor Santana <rabs@dimension-virtual.com> - 2016-06-01 11:30 +0200

csiph-web