-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, May 23, 2025 at 05:12:38PM -0000, qubist wrote:
> Thanks.
> 
> I understand it is a balancing algorithm. Still, I can't answer my own
> question.
> 
> Suppose:
> 
> - there is plenty of available RAM (tens of gigabytes)
> - there are not VMs competing for all of it, i.e. there is enough RAM
>   for one VM to get its maxmem (e.g. 1 gigabyte)
> 
> At which particular moment does that one VM get its maxmem?

There is no particular event. The Linux balloon driver will at some
point reach it when it's available. If you really want, I guess you can
wait for it in a loop (observing /proc/meminfo or such). But as said in
the initial response, it looks like a fundamentally wrong direction to
take...

> Also, how was the default initial 400 MB chosen?

Initial memory is amount just necessary for VM to boot. There used to be
a limitation in Linux that initial memory cannot be smaller than 1/10 of
maxmem, but I think it's fixed nowadays.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmgwuJgACgkQ24/THMrX
1yxEMAf/Y12EbvsFEFMqVWNBMuQl9u4NiFSb7uA1OFoqqoi6UdeFW0iU6MdTb7OY
lJ6yFX3ordYoWbK6YNCVus4NwIeMXqxqYI2fvvSztTZC1eOtqeQbh3YCxXaK4yNR
80hQYh6tOznK7n+O192B/Td/rlTyMNCVb+njCODyzKgcQUOtg14puqf/6/WxE3UM
xwDlUqTHi0LvPh1FQA/GizXNfrBxwAst9K6mdXvs8nvpwMPwSQIds/5SXpDpX+OO
oqByEIWuwpETH59lNXWnh2UmBRo27Tz3FAbhz17w8AbFPYCtfA8tyum61QEkMENB
+abdsCW12A8VQ9jMGGNXR0cSiAqzQQ==
=HQ3H
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/qubes-devel/aDC4mFW6PNolsIiP%40mail-itl.

Reply via email to