All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szymon Miotk <spam@crocom.com.pl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How many (htb) tc classes and qdiscs are too many?
Date: Fri, 03 Jun 2005 06:37:30 +0000	[thread overview]
Message-ID: <429FFAAA.2070406@crocom.com.pl> (raw)
In-Reply-To: <000501c567bf$792fd700$650fa8c0@hotsitespencer>

Spencer wrote:
> We have a Linux box that is acting as the gateway to the internet for about
> 400 people, typically there are not more then 50 of them using the internet
> at any given time.  We would like to provide different levels of access to
> different users.  For example 128kbps to some users and 256kbps to others.
> We have considered creating a class and qdisc for each user (using htb)
> however we don't know how much overhead creating 50-200 classes and
> qdiscs would involve, would this put too much strain on the Linux box?  Is
> it
> better to create fewer classes and qdisc and assign multiple users to each?
> I haven't been able to find any test on maximum effect number of qdiscs, but
> it could be I have just been looking in the wrong place.  If any one has any
> ideas or could point me in the right direction it would be greatly
> appreciated.

I have P4 3.0 GHz, 1 GB RAM.
I have 3500 potential users (top load about 800 users, average 400). I 
have 3 interfaces (2 WAN + 1 LAN), so I have 10500 queues total (3500 on 
each interface).
The traffic is 24Mbit max, average 20Mbit.

Without u32 hashing my box run at 60-70% CPU utilization. After applying 
hashing the box is running with 25% top utilization, average 15%.

The two thing you must remember when running a box for many users:
* use iptables chains. I prefer chains of 30-40 entries.
* use u32 hashing.
This will greatly improve CPU utilization. About 500-1000% in my case.

Szymon Miotk
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2005-06-03  6:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-02 22:07 [LARTC] How many (htb) tc classes and qdiscs are too many? Spencer
2005-06-03  2:55 ` threaded
2005-06-03  6:37 ` Szymon Miotk [this message]
2005-06-03 10:43 ` Konrad
2005-06-03 10:52 ` Paweł Staszewski
2005-06-03 13:57 ` gypsy
2005-06-03 14:19 ` Konrad
2005-06-03 15:10 ` Andy Furniss
2005-06-03 17:39 ` Konrad

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=429FFAAA.2070406@crocom.com.pl \
    --to=spam@crocom.com.pl \
    --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.