Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upChanging memory size for running VM #1518
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
What do you mean? It is exactly what Qubes Manager does. |
marmarek
added
C: qubes-manager
worksforme
labels
Jan 6, 2016
marmarek
added this to the Release 3.0 updates milestone
Jan 6, 2016
marmarek
closed this
Jan 6, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirill9000
Feb 2, 2016
I mean, it should give AppVM more (or less) RAM immediately, without the need to restart it. Like xl mem-set supposedly does (although it doesn't work for me on Qubes for some reason).
kirill9000
commented
Feb 2, 2016
|
I mean, it should give AppVM more (or less) RAM immediately, without the need to restart it. Like |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 2, 2016
Member
In Qubes OS we have dynamic memory management: https://www.qubes-os.org/doc/qmemman/
It gives memory to the VM when it needs it (according to memory usage in such VM), and of course if it is available. Up to the upper limit set in Qubes Manager.
|
In Qubes OS we have dynamic memory management: https://www.qubes-os.org/doc/qmemman/ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirill9000
Feb 2, 2016
STR:
- Create new VM, max memory = 1 GB.
- Start It.
- Change it's max memory to 4 GB.
- Create tmpfs (size=4GB) and write 1+ GB data to it.
- There's still just 1 GB of memory allocated to AppVM. Data goes into swap. After swap runs out, VM becomes unresponsive.
Am I missing something?
kirill9000
commented
Feb 2, 2016
|
STR:
Am I missing something? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 2, 2016
Member
On Tue, Feb 02, 2016 at 02:59:28PM -0800, kirill9000 wrote:
STR:
- Create new VM, max memory = 1 GB.
- Start It.
- Change it's max memory to 4 GB.
- Create tmpfs (size=4GB) and write 1+ GB data to it.
- There's still just 1 GB of memory allocated to AppVM. Data goes into swap. After swap runs out, VM becomes unresponsive.
Am I missing something?
Ah, I see. Yes, max memory is changed only after VM restart. It is Xen
limitation.
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?
|
On Tue, Feb 02, 2016 at 02:59:28PM -0800, kirill9000 wrote:
Ah, I see. Yes, max memory is changed only after VM restart. It is Xen Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirill9000
Feb 2, 2016
OK, thanks for clarification. Are there any downsides in setting max memory for all VMs equal to total physical RAM amount and letting qmemman handle it? Fragmentation maybe?
kirill9000
commented
Feb 2, 2016
|
OK, thanks for clarification. Are there any downsides in setting max memory for all VMs equal to total physical RAM amount and letting qmemman handle it? Fragmentation maybe? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 3, 2016
Member
Yes, Linux kernel allocates some structures at boot time according to the max mem. AFAIR it's about 1% of that size.
|
Yes, Linux kernel allocates some structures at boot time according to the max mem. AFAIR it's about 1% of that size. |
kirill9000 commentedDec 15, 2015
Since it's possible, shouldn't VM Manager do it when user changes VM settings?