Re: [PATCH] cubic: pre-compute based on parameters

2005-12-14 Thread Baruch Even
David S. Miller wrote: From: Stephen Hemminger [EMAIL PROTECTED] Date: Mon, 12 Dec 2005 12:03:22 -0800 -d32 = d32 / HZ; - /* (wmax-cwnd) * (srtt3 / HZ) / c * 2^(3*bictcp_HZ) */ -d64 = (d64 * dist * d32) (count+3-BICTCP_HZ); - -/* cubic root */ -d64

Re: [Fwd: Re: [PATCH] cubic: pre-compute based on parameters]

2005-12-13 Thread Lisong Xu
= d32 1; + ++cube_scale; + } + cube_factor = d64 * d32 / HZ; with + cube_factor = d64 * (1BICTCP_HZ) / 10; [EMAIL PROTECTED] wrote: Original Message Subject: Re: [PATCH] cubic: pre-compute based

[PATCH] cubic: pre-compute based on parameters

2005-12-12 Thread Stephen Hemminger
We can precompute a number of the cubic TCP factors because SRTT is a constant and most of the other parts come from module parameters. Given the history of simple math errors, this patch deserves extra special attention. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] ---

Re: [PATCH] cubic: pre-compute based on parameters

2005-12-12 Thread David S. Miller
From: Stephen Hemminger [EMAIL PROTECTED] Date: Mon, 12 Dec 2005 12:03:22 -0800 -d32 = d32 / HZ; - /* (wmax-cwnd) * (srtt3 / HZ) / c * 2^(3*bictcp_HZ) */ -d64 = (d64 * dist * d32) (count+3-BICTCP_HZ); - -/* cubic root */ -d64 = cubic_root(d64); -