All of lore.kernel.org
 help / color / mirror / Atom feed
From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] filter ingress policy rates -> slow!!
Date: Sun, 04 Jul 2004 19:47:59 +0000	[thread overview]
Message-ID: <40E85EEF.7E46B49D@iswest.com> (raw)
In-Reply-To: <200407011810.01786.edulix@tumundoweb.com>

"Edulix (by way of Edulix )" wrote:
> "eshaper status" told me that there were many many packets dropped. I tried
>  to transfer files without any tc rules (executed "eshaper stop" for cleaning
>  them) and it went at 10 Mb/s - files transfered much faster.
> 
> I haven't checked CPU usage in this tests though... it might be a good idea.
> 
> Any ideas? What to do now ? I'm still looking for compiling my sister's kernel

Now that you have an accurate timer, it is time to find out how much
deviation there is between what you expect and what you get.

Create a script with these lines, replacing "#" with the correct
number.  
tc qdisc del dev eth# ingress 2> /dev/null
tc qdisc add dev eth# handle ffff: ingress
tc filter add dev eth# parent ffff: protocol ip \
   prio 50 u32 match ip src 0.0.0.0/0 police rate \
   82000Kbit burst 10k drop flowid :1

Read the LARTC documentation to see why I used 82000Kbit.  Hint:
82000/8\x10250

If necessary, increase 82000 until there are no more dropped packets
when you transfer a file, then back it down until you start getting a
few drops.

Play with the 10k to see what effect changing burst has.  I like it big.

When you've found the maximum rate, please post your script (for google)
and show us the counters.

If you find that the CPU load is significant, I shall be VERY surprised.
gypsy
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2004-07-04 19:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 16:10 [LARTC] filter ingress policy rates -> slow!! Edulix
2004-07-01 20:40 ` Stef Coene
2004-07-02  8:36 ` Edulix
2004-07-02 14:13 ` gypsy
2004-07-03  4:14 ` gypsy
2004-07-03  9:44 ` Edulix
2004-07-03 11:09 ` Ed Wildgoose
2004-07-03 11:47 ` Edulix
2004-07-03 13:13 ` Ed Wildgoose
2004-07-03 15:02 ` gypsy
2004-07-03 22:25 ` Edulix
2004-07-04 19:47 ` gypsy [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=40E85EEF.7E46B49D@iswest.com \
    --to=gypsy@iswest.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.