qemu 2.11 need a power of 2 cache size.
"
Parameter 'xbzrle_cache_size' expects is invalid,
it should be bigger than target page size and a power of two
"
roundup to near power of 2 value
---
PVE/QemuMigrate.pm | 7 +++
1 file changed, 7 insertions(+)
diff --git a/PVE/QemuMigrate.pm b/PVE/Q
qemu 2.11 need a power of 2 cache size.
"
Parameter 'xbzrle_cache_size' expects is invalid,
it should be bigger than target page size and a power of two
"
roundup to near power of 2 value
Alexandre Derumier (1):
migrate cache-size : power of 2
PVE/QemuMigrate.pm | 7 +++
1 file changed,
Thanks, i test it and it worked for me, although to be able to see all
mounts in the GUI, we probably have to change more than one line.
2018-01-23 10:55 GMT+01:00 Andreas Steinel :
> After a discussion on the forums [1], @fabian suggested to reopen this one.
>
> What is the current way to import
to be honest, I copy paste from perlmonk
http://www.perlmonks.org/?node_id=46889
;)
>>Please just use:
>>return 1 if $_[0] < 2;
>>return 2 << int(log($_[0]-1)/log(2));
ok, I'll fix it.
- Mail original -
De: "Wolfgang Bumiller"
À: "aderumier"
Cc: "pve-devel"
Envoyé: Lundi 12 Févr
On Mon, Feb 12, 2018 at 09:27:07AM +0100, Alexandre Derumier wrote:
> +sub round_powerof2 {
Please just use:
return 1 if $_[0] < 2;
return 2 << int(log($_[0]-1)/log(2));
> + local $_ = (shift)-1;
> + my $num = (2**int(log($_)/log(2)))-1;
> + return ++($_ |= $num);
This ties knots into my
applied + cleanups
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>>that is wrong though unless $memory is already a power of 2, which is
>>not guarantueed at all. we need to round to the nearest power of 2 (and
>>then we can also keep the 10% ;))
yes, you are right. I just sent a new patch.
- Mail original -
De: "Fabian Grünbichler"
À: "pve-devel"
qemu 2.11 need a power of 2 cache size.
"
Parameter 'xbzrle_cache_size' expects is invalid,
it should be bigger than target page size and a power of two
"
roundup to near power of 2 value
Alexandre Derumier (1):
migrate cache-size : power of 2
PVE/QemuMigrate.pm | 8
1 file changed
qemu 2.11 need a power of 2 cache size.
"
Parameter 'xbzrle_cache_size' expects is invalid,
it should be bigger than target page size and a power of two
"
roundup to near power of 2 value
---
PVE/QemuMigrate.pm | 8
1 file changed, 8 insertions(+)
diff --git a/PVE/QemuMigrate.pm b/PVE/
On Fri, Feb 09, 2018 at 07:29:35PM +0100, Alexandre Derumier wrote:
> qemu 2.11 need a power of 2 cache size.
>
> "
> Parameter 'xbzrle_cache_size' expects is invalid,
> it should be bigger than target page size and a power of two
> "
>
> Divide the memory size by 8 instead 10
> ---
> PVE/QemuMi
10 matches
Mail list logo