LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-30-2013, 10:46 PM   #1
0men
Member
 
Registered: Mar 2011
Location: Gold Coast, Australia
Distribution: saline, centos, freeBSD, slackware
Posts: 180

Rep: Reputation: 22
CPU or RAM for multiple virtual machines ?


Hey people , havnt been on here for a while, hope all is well.

Im technically retarded when it comes to hardware so forgive me. Whats best for running multiple vm's on virtualbox ? cpu or ram ? They arnt running any resource extensive applications, nor are they connecting to the internet, just to each other. Maybe a windows7, a slackware and a debain. Would a 1.3GHz dual-core i5 and say 4gig of ram running wheezy handle that ?

I've got really no idea, tired to do some research and found some threads on 'parallels' forums but i thought id ask LQ.

thanks in advance.
 
Old 10-30-2013, 11:22 PM   #2
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 214

Rep: Reputation: 26
Thumbs up

From my experience (which is limited) they both are equally important. The CPU needs to be powerful enough to push the vm's. More vm's more process intensive especially if those VM's are running multiple apps. The RAM is very important because every VM is allocated a certain amount of RAM, so every running VM will subtract its allotted RAM from the total system RAM. More RAM=more VM's and better CPU is going to directly affect performance. Your system should definitely be able to handle that load. Keep in mind your total amount of system RAM, the number of VM's you want to run, and the host OS. They all need RAM but give bias to the host I would assume because that's the one running the show.
 
Old 10-31-2013, 03:08 AM   #3
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 6.5
Posts: 482

Rep: Reputation: 85
Well i have a i5 sandybridge i think it was the 2500 8 gigs ram.

I run my router in a vm, nas in another and a httpd server with mysql serving a handful of students online training.

I find that i should have looked more carefully at the mobo. Should have gotten one that supports vtd properly and hard drives.

My biggest issues are seen in terms of io wait and bsd systems still a little so so in supporting virtio drivers.

Overall, for my small language school, i find that most the time the host is running.

The nas sucks a lot of resources with cifs transfers and the speeds are somewhat slow. Approx 10mbps/s . I have not yet bothered to check where the bottle neck is, but it will likely be

1. Allocated ram below that stipulated as recommnded.

2. The use of cifs rather than nfs

3. Running of a 2tb 5200 rpm disk.

The router seems to be doing fine at the moment. Biggest memory hog is snort analyzing and the firewall actively blocking ip adresses from snort alerts.

Now i have not had the opportunity to properly load test the system but for a really small business at the moment, i have no complaints. It serves my current needs.

I would certainly recommend you be careful with running gui's but my headless setup seems to work ok.
 
Old 10-31-2013, 07:18 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
Quote:
Originally Posted by 0men View Post
Maybe a windows7, a slackware and a debain.
It depends. For Windows 7 you will want to assign at least 2GB RAM and 1 CPU core to the VM (as always, more is better). Do you intend to run the Linux systems as desktop system? If yes, you will need more RAM than with a CLI-only system and if you run KDE instead of XFCE or Fluxbox you will also need more RAM.

In any case, when working with multiple VMs I would always opt for a quadcore CPU as minimum and at least 8GB of RAM, but without knowing what exactly you want to do it is hard to tell.
 
Old 10-31-2013, 04:29 PM   #5
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
Experience shows that Windows up to XP/2003 is ok with 1 CPU core, but from 7/2008 it may struggle with just one core, so best is to assigne at least 2 cores.
Haven't figured out what this kind of struggle caused, but an equally configured 2003 VM would be fine, a 2008 VM sometimes just freezes for some time but comes back later on.

basically it's all down to testing since it depends a lot on your actual use case.
 
Old 11-01-2013, 04:10 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,721

Rep: Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439
There is no reason that I'd limit cores unless you are trying to limit clients. Let the host and clients have them all. It is all dynamic to load. On some systems I might direct a client to run a particular core or cpu but it is rare.

You could easily run one instance of each on that system. All three may be at the edge.

Your limit is ram. That VM can't let you use page file like qemu might so you are really limited to some 1.8G ram to clients is my wild guess. Some new systems and new VM's can dynamically allocate ram. Not sure if your vm can yet. Someone may know for sure on that.

To save some ram, you could install 32 bit clients. For example you can actually run W7 on 500M in 32 bit. Even W2003 could be run quite sparse.

The only other way may be to use some other type of vm like esxi or proxmox. Still some bare metals take a lot of ram. Limiting ram on host may allow more client ram. Some dynamic ram vm's may need chipset support as I recall. Could be wrong on that now.

http://virtualization.findthebest.co...l-%28Type-1%29

Last edited by jefro; 11-01-2013 at 04:15 PM.
 
Old 11-04-2013, 08:38 AM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,555

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
Originally Posted by 0men View Post
Hey people , havnt been on here for a while, hope all is well.

Im technically retarded when it comes to hardware so forgive me. Whats best for running multiple vm's on virtualbox ? cpu or ram ? They arnt running any resource extensive applications, nor are they connecting to the internet, just to each other. Maybe a windows7, a slackware and a debain. Would a 1.3GHz dual-core i5 and say 4gig of ram running wheezy handle that ?

I've got really no idea, tired to do some research and found some threads on 'parallels' forums but i thought id ask LQ.

thanks in advance.
if you are going to be running the HOST OS and 3 VMs all at the same time you will need at least a quad core CPU, then you will need to match the RAM in the system to the amount each OS, including the host, requires.

So for 1 core you will need no less then 2G ram and ideally you will have 4G ram for each core as you are talking a win7 in the mix as VirtualBox will have a low powered GPU for the VM win7 will be sucking up more ram then normal.

so for semi good performance an i5 quad core with no less then 16G ram in the system will give you passable performance.

with the i5 dual core you mention in your post, you would be able to run 1 VM at a time and no more.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Machines are not appearing in Virtual Manager after reboot the RHEL5.5 Serve Shanker.K Linux - Newbie 7 04-11-2012 06:20 AM
Multiple virtual machines hosting websites - advice please doahh Linux - Virtualization and Cloud 7 01-25-2011 03:02 PM
Dividing cpu time between Virtual Machines spin_ro Linux - Virtualization and Cloud 2 02-17-2010 07:40 AM
Virtual Machines eating 100% CPU relpats_eht Linux - Software 5 11-10-2008 06:25 PM
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 07:26 AM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration