All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: Should I define 4K classes if I want to give 4K user each a fix bandwidth of 70kbps
Date: Mon, 15 Sep 2014 09:43:38 +0000	[thread overview]
Message-ID: <5416B4CA.7010400@gmail.com> (raw)
In-Reply-To: <CAA5aLPhoskpum_WxeDNuAGJVgCAtLJXzy94=o1LWG=PFwDH2nw@mail.gmail.com>

Akshat Kakkar wrote:
> I am having around 4K users. I have to limit each user to 70kbps
> bandwidth. For this, I define 4K filters and 4K classes. Each filter
> is matched to each ip of an user, and each class is configured for a
> rate of 70kbps. Then I define 4K sfq qdisc mapped to each class. It
> works fine. No issues.
>
> But just that creating 4K exactly similar classes with just a
> difference in classid, is a kind of time consuming. The same holds
> for filters and sfq too.

I assume you are using hashing filters for run time speed.

As for loading time, in some test I did years ago using tc batch to load
many rules was way way faster than a script.

So if you are not already doing it try adjusting your script to produce
a file with just the rules ie. no "tc" at the start of every line and
load it with

tc -b <filename>


>
> Is there a simpler way of doing it?

Can't think of one - which doesn't mean there isn't - I don't really do
qos seriously.



      reply	other threads:[~2014-09-15  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15  6:58 Should I define 4K classes if I want to give 4K user each a fix bandwidth of 70kbps Akshat Kakkar
2014-09-15  9:43 ` Andy Furniss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5416B4CA.7010400@gmail.com \
    --to=adf.lists@gmail.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.