LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 04-18-2017, 06:04 PM   #1
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
Right-sizing a CentOS 7 KVM VM


I have a Centos 7 KVM VM with only one purpose - to run Red Hat Cockpit. I ran it today and it had a static use of 256 MB RAM - even as I added other servers for it to watch and clicked all over the web interface. It currently has 1 GB RAM as that's what libvirt defaults to for a CentOS 7 VM. I was thinking of shrinking it to 512 MB to give it a bit of overhead just in case. When I check the CentOS website, I see minimum RAM listings for x86 on Centos 6.9, but not for 7. If it's reporting only using 256, do you foresee any issues with me running it with 512?

Other details:
It was installed from the CentOS 7 mimimal disc and is commandline only - no desktop environments.
 
Old 04-18-2017, 08:05 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try it and see.
Keep an eye on swap usage (in the guest) as a warning sign. When I cared about such things in the past I would reduce the guest to the point where it just started to swap. Adjust the size up to give it a bit of headroom and leave it alone unless things changed in the future. This is not bullet proof of course, but does catch scenarios where start-up uses more memory than is obvious from just looking at the stable running system.
Automatic ballooning is the ultimate answer, but I'm not sure of its current status in KVM.
 
1 members found this post helpful.
Old 04-18-2017, 08:07 PM   #3
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Original Poster
Rep: Reputation: 37
OK, thanks. I did a bit more Googling and it seems that installation requires 1GB. Outside of that, people reported having trouble running yum on 64MB RAM. That's a bit drastic. It's just that, in my understanding you can over-commit a CPU, but not RAM. So I don't want to have my VMs use more RAM than they actually need. Your idea about swap is a great one. I'll mark as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-sizing filesystem on Virtualbox Centos samalchow Linux - Newbie 9 01-28-2014 07:39 PM
Keeping size of VM file down - QEMU/KVM guest running Centos 6, inside Centos 6 host rylan76 Linux - Virtualization and Cloud 2 01-24-2013 03:22 PM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
[SOLVED] Centos 6 and KVM - how to setup bridged networking in KVM in a -Class B- environment? rylan76 Linux - Virtualization and Cloud 7 11-07-2012 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration