netdev
[Top] [All Lists]

Re: Inaccuracies with SCH_CLK_CPU

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: Inaccuracies with SCH_CLK_CPU
From: jamal <hadi@xxxxxxxxxx>
Date: 07 Aug 2004 14:54:49 -0400
Cc: Stephen Hemminger <shemminger@xxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <41152301.5090405@trash.net>
Organization: jamalopolis
References: <20040804094310.1d054b3a@dell_ss3.pdx.osdl.net> <41152301.5090405@trash.net>
Reply-to: hadi@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Sat, 2004-08-07 at 14:44, Patrick McHardy wrote:

> sch_netem's interface is in us, but it doesn't convert the values to 
> psched_us.
> psched_us differ from us with CLK_CPU or CLK_JIFFIES for most values of HZ.
> This patch fixes the problem, but the best solution is to change the 
> interface and pass the time values as psched_us from userspace, as done with 
> rate-tables and I think CBQ. 

Nice catch Patrick.
While you are doing that Stephen, can you also compute the probability
tables in user space? This allows me to take advantage of the schem
later on when i convert gact action which has randomness built in.

> I should have done this for HFSC too, but unlike for 
> sch_netem, I think it's too late to change the interface.

Maybe post 2.6?

cheers,
jamal



<Prev in Thread] Current Thread [Next in Thread>