[pve-devel] applied: [PATCH proxmox-resource-scheduling] pve static: add one to avoid boosting tiny relative differences

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Mar 22 09:32:27 CET 2023


Am 21/03/2023 um 17:44 schrieb Fiona Ebner:
> Only the relative difference for values between different alternatives
> is relevant, meaning 0.002 vs 0.004 and 0.2 vs 0.4 will influence the
> scoring in the same way. This is not really desirable, because values
> closer to 1.0 indicate higher load and thus should influence the
> scoring more than differences that are actually tiny, but big when
> viewed as a relative difference.
> 
> To avoid the issue, simply add 1.0 to all values. Like that, 1.002 vs
> 1.004 will also be small when viewed as a relative difference.
> 
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
>  src/pve_static.rs | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
>

applied series (yesterday already), thanks!





More information about the pve-devel mailing list