Re: Question about sched_prio_to_weight values
From: Valentin Schneider
Date: Thu Oct 10 2019 - 13:28:44 EST
On 07/10/2019 21:41, Francesco Poli wrote:
> The differences are probably due to the different precision
> of the computations: I don't know the precision of those originally
> carried out by Ingo Molnar (single precision? double?), but calc(1)
> is an arbitrary precision calculator and, by default, performs
> calculations with epsilon = 1e-20 !
>
> Please note that, except for the first one, all the differing
> values obtained with the calc(1) script have slightly better
> errors than the ones found in kernel/sched/core.c ...
>
As always patches are welcome, but I don't know how much there is to gain
from a tiny error correction in those factors.
Out of curiosity, what led you to stare at those numbers?
>
> Thanks again for the clarification!
> Bye.
>