From: Jason Boxman <jasonb@edseek.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB MPU
Date: Mon, 24 May 2004 20:53:45 +0000 [thread overview]
Message-ID: <200405241653.45751.jasonb@edseek.com> (raw)
In-Reply-To: <40A37E1B.8060604@dsl.pipex.com>
On Friday 14 May 2004 03:05, Ed Wildgoose wrote:
<snip>
> I appears that you could change the patch in tc/core in fn
> tc_calc_rtable, from:
>
> + if (overhead)
> + sz += overhead;
>
> to something like:
>
> + if (overhead)
> + sz += (((sz-1)/mpu)+1) * overhead;
I did that and recompiled iproute2. I kicked my rate up to my actual
connection, 256Kbps, and I was nailed as usual. No measurable change using
the above with an mpu of 54 for each class. Nothing changed at my
handicapped rate of 160kbit either.
tc qdisc add dev eth0 root handle 1: htb default 90
tc class add dev eth0 parent 1: classid 1:1 htb rate 160kbit ceil 160kbit \
mpu 54
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 64kbit ceil 64kbit \
mpu 54 prio 0
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 80kbit ceil 160kbit \
mpu 54 prio 1
tc class add dev eth0 parent 1:1 classid 1:50 htb rate 8kbit ceil 160kbit \
mpu 54 prio 1
tc class add dev eth0 parent 1:1 classid 1:90 htb rate 8kbit ceil 160kbit \
mpu 54 prio 1
<snip>
> Can someone with a working setup try this out and see if it helps?
No joy. I had more success modifying the HTB_HYSTERESIS compile time option.
What would be nice is something that would calculate the actual PPPo(E|A)
overhead on the fly at runtime and schedule accordingly.
Afterall, this whole [your rate] * 0.8/.75/.65 (I'm stuck with the latter
value) is kind of a hack. If a scheduler existed that understood the packets
were ATM'd and the overhead imposed therein, you could simply specify your
rate as what it really is. By using a fraction of your actual egress
bandwidth you're configuring for the worst case scenario. In reality,
depending on your traffic I think you can approach your actual rate more
closely.
(The classical example being sending an unloaded TCP ACK costing your two ATM
cells and essentially wasting an entire ATM cell. But in some situations
your traffic might be mostly large IP packets and then your waste overhead is
greatly reduced...)
Anyway, is there any known work on such a scheduler? I'd be interested in
beta testing anything under development.
> Ed W
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-05-24 20:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-13 13:54 [LARTC] HTB MPU Andy Furniss
2004-05-13 14:38 ` Andreas Klauer
2004-05-13 17:28 ` Andreas Klauer
2004-05-13 21:59 ` Jason Boxman
2004-05-14 7:05 ` Ed Wildgoose
2004-05-14 8:40 ` Andy Furniss
2004-05-14 9:55 ` Andy Furniss
2004-05-14 17:10 ` Jason Boxman
2004-05-17 22:36 ` Andy Furniss
2004-05-17 23:33 ` Andy Furniss
2004-05-20 6:29 ` Jason Boxman
2004-05-20 11:13 ` Andy Furniss
2004-05-21 8:19 ` syrius.ml
2004-05-24 20:53 ` Jason Boxman [this message]
2004-05-24 23:42 ` Ed Wildgoose
2004-05-28 18:54 ` Andy Furniss
2004-05-28 19:18 ` Jason Boxman
2004-05-28 21:49 ` Ed Wildgoose
2004-05-30 7:40 ` Andy Furniss
2004-05-30 7:49 ` Andy Furniss
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=200405241653.45751.jasonb@edseek.com \
--to=jasonb@edseek.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.