-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
tmpfs size is half of memory size _at system startup_ by default. When
you disable memory ballooning, the VM have 4GB at boot time so all
tmpfs are 2GB. Otherwise about 150MB (half of initial 300MB).
> One thing that has always seemed odd to me about the Qubes ballooning is
> that "free" memory is pushed back into dom0, which must relinquish the
> memory again for it to be assigned to an appvm that needs it. For example,
> on a system with 16GB of memory, dom0 might have 13GB assigned to it, which
> is totally unnecessary.
Actually it is distributed proportionally among all the running VMs. It's
simply that dom0 uses the most memory (KDE...) so it get more of it.
https://www.qubes-os.org/doc/Qmemman/
>
http://wiki.xenproject.org/wiki/Tuning_Xen_for_Performance#Memory suggests:
>
> "If the host has more memory than a typical laptop/desktop system, then do
> not rely on dom0 ballooning. Instead set the dom0 memory to be something
> between 1 and 4GB adding dom0_mem=1024M to the Xen command line. ... Also
> ballooning down busy dom0 might have bad side effects."
Yes, limiting dom0 memory might have some sense. But choosing the right
value, especially on systems with 4GB would be tricky (memory hungry
desktop environment on the one side, VMs on the other side). You're also
free to choose which desktop environment you use (or which features you
enable), so it is even harder choice.
> I wonder if what we are seeing here is one or those "bad side effects," and
> that perhaps extra memory should be left unassigned to allow the hypervisor
> to more effectively respond to the types of memory pressures being created
> by Chrome and Docker. However, this is getting into Xen architecture
> details that I am not familiar with.
I don't think that chrome crashes are related to dom0 memory assignment.
But you can do a simple test:
1. Start the VM (with enabled memory balancing)
2. Start chrome
3. Stop qmemman in dom0
4. Take some memory from dom0 (or other VMs), so there is more not
assigned memory left (xl mem-set, xl info)
5. Try to reproduce chrome crash
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBCAAGBQJV6b8WAAoJENuP0xzK19csrDgH/3N+M/m1fiKuOreQkE9L86Os
gujrJw8B6ZPZuLK/GO7psM5/FHnKJnlOBsXZGhP/VD361h5ztU+jIJVHx5MCEAZ2
P2e4tK3Ktje2x3YOObjdl5o7smIX/TZfGFcE/bIyCZUYY2MtvFM93UIn/JCnEEMT
V0cq4qsEZ8noLYwFp3YttJUNmv1IHb1lcYAueqCDLCFx4CTgIZIZFYHCEOz2WQ0K
sHAnrN9kwF7WnxNiJlCrn6OxNC10X8uiuup2tVtOR8FgORcskM6YHessXsucOsR7
vpbB9NdoPrFM4g+YycwCB2m3o3aWT1UamDAFdxi6VDt+0gsRQHRk2mONCzUn1QE=
=p1E/
-----END PGP SIGNATURE-----