qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] migration/xbzrle: add encoding rate


From: Wei Wang
Subject: Re: [PATCH v3] migration/xbzrle: add encoding rate
Date: Fri, 05 Jun 2020 10:04:15 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 06/05/2020 12:57 AM, Richard Henderson wrote:
On 6/4/20 3:27 AM, Wei Wang wrote:
On 06/04/2020 05:38 PM, Dr. David Alan Gilbert wrote:
Hmm OK; I'll admit to not liking NaN/Inf in output.

Dave

OK. To deal with the reported issue, how about using FLT_MAX (as opposed to
UINT64_MAX or inf):
xbzrle_counters.encoding_rate = FLT_MAX;
So you'd rather see 340282346638528859811704183484516925440.00 printed?

It's arbitrary and not correct in any mathematical sense.

If you *really* insist on not printing Inf (which may have some diagnostic
value), then 0 is just as arbitrary, and at least smaller in the output.

0 works fine (though it logically means the lowest encoding rate).
I slightly prefer the biggest number or inf, which naturally means it's very encoding friendly.
Let's see if Dave has any thought about the choices :)

Best,
Wei




reply via email to

[Prev in Thread] Current Thread [Next in Thread]