Linux Installation

Herrmann1992

New Member
Joined
Aug 24, 2024
Messages
1
Reaction score
0
Credits
12
When allocating resources for a Linux virtual machine in VMware, how can I determine the optimal amount of RAM and CPU cores to assign without compromising the performance of my host system?
 


Welcome, the obvious question is , how much ram do you have, much is unused, and, how many cores & threads do you have
 
Hi Herrmann1992

I "fly by the seat of my pants" and try different settings.

8 GiBs ram and 4 cores.

I ended up using Porteux LXDE because it only needs about 350 MiB of ram. I set the VM ram to 6 GiB and use all 4 cores and all the VMs run great.

Vektor
 
There are all sorts of fantastic mathematical formula for calculating resource allocation, I don't run a VM very often, when I do, i allocate [on my quad-core [no hyperthreads] 1 core and 30% of unallocated Ram , but regular users will have their own Ideas
 
Moved to General Linux Questions

Wizard
 
how can I determine the optimal amount of RAM and CPU cores to assign without compromising the performance of my host system?
By trying it out with various allocations. It only takes x number of clicks to change cores, %age of ram etc etc
 
Max 50-75% of cores should be assigned to VM.
Ex. If your CPU is quad core the 2-3 cores can be assigned to VM, host should retain at least 1 core for itself.

Memory, you need a minimum of 2-4 GB left for the host, depending on what you'll be doing on host, the rest can be given to VM as needed.

My formula is to split cores and RAM by half, so that both host and VM get equal share of resources.
Quad core CPU and 16GB RAM therefore, 2 cores and 8GB ram to each.
 
Hello @Herrmann1992
Welcome to the Linux.org forum, Can't be of a Lot of help to you because I haven't used a VM in awhile. But others do all the time will will give you good advise. What I can say is enjoy the journey! :)
 

Members online


Top