Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi,
i like to know when i configure a virtual machine what are the things that impose how much cpu memory i must give to the vm.
the OS + application requirement dictate the resources.right?
memory -> os -4 gb ram + recommended ram (application).
vcpu ->if application require 4 vcpu then i take 5 vcpu.right?
tnx
I don't follow your reasoning. All other things being equal, if the optimal RAM for the OS is 4GB, that should take into account any applications that are expected to be run on that OS under normal usage.
As a rule of thumb, you can look at the minimum requirements for the OS (usually available on their website) and double the amount of recommended RAM. But that's only a rule of thumb.
In my experience, any mainstream Linux distro will be functional in a VM with 3GB RAM and will be very happy with 4GB RAM.
vcpu ->if application require 4 vcpu then i take 5 vcpu.right?
I would say 4 CPUs are sufficient. The operating system' resource needs should be very low.
See it this way: Not so long ago, computers used to have a single CPU, but they were still able to run applications.
Quote:
Originally Posted by frankbell
In my experience, any mainstream Linux distro will be functional in a VM with 3GB RAM and will be very happy with 4GB RAM.
For teaching purposes, I run Centos 7, Fedora and the like in 2GB VMs, and Cirros in 512MB VMs. My home server with Samba, DNS, DHCP etc used to be a 512MB Raspberry Pi, now a 1GB Odroid. This is its current memory usage and its load average:
Code:
$ free
total used free shared buff/cache available
Mem: 823428 209036 129192 20320 485200 557323
Swap: 0 0 0
$ uptime
12:40:54 up 2 days, 54 min, 1 user, load average: 0.09, 0.04, 0.05
Kind of depends on what the host is doing. If it just serves as a host then assign all the real processors and all the ram you have available is my opinion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.