LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2012, 09:32 AM   #1
Kato
LQ Newbie
 
Registered: Jun 2012
Posts: 8

Rep: Reputation: Disabled
Question Fundamental VM Question


If I allocate memory and CPUs to the virtual machine I create, does that mean that I am effectively taking away memory and CPUs from the base machine?
Is this only when the virtual machine is opened and running, correct?
If I do not open the virtual machine, then the base machine should have 100% capacity of the memory and CPUs, correct? Or is this an allocation that will forever take away my resources?
 
Old 06-03-2012, 09:42 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
If I allocate memory and CPUs to the virtual machine I create, does that mean that I am effectively taking away memory and CPUs from the base machine?
Yes, you take away memory. CPU? not sure on that. Since the host system really executes the guest system, I would say no.

Quote:
Is this only when the virtual machine is opened and running, correct?
Yes. Think of the guest system as an application to the host system. So if any application is not running, no resources are used, other than disk space to store the guest system.

Quote:
If I do not open the virtual machine, then the base machine should have 100% capacity of the memory and CPUs, correct?
True.

Quote:
Or is this an allocation that will forever take away my resources?
Other than the disk space, the guest system does not use system resources if it is not running.
 
Old 06-03-2012, 04:12 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Really can't be answered without a more exact vm and more exact details. VM's is a very generic term for a range of ways to run an OS. The host support also is part of this question.

Depends on the VM. Some do fully remove the ram while others manage it a bit to a lot. Ram also includes swap on some vm's so it may not be an issue.

Normally on boot of a VM the ram is at least marked to be used. It should return to the host when the vm is stopped. Sometimes it doesn't but it should return. It also depends on the VM used.

Last edited by jefro; 06-03-2012 at 04:14 PM.
 
  


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
[SOLVED] Fundamental question re patching gxw Red Hat 2 10-12-2011 02:11 AM
fundamental question on threads and critical sections yanivwehtam Programming 9 04-17-2009 09:30 AM
I got a fundamental question about ip addresses trist007 Linux - Newbie 11 06-02-2008 01:38 AM
fundamental open-mosix question TomalakBORG Linux - General 2 08-04-2006 06:28 PM
Fundamental Question in C and C++ linux_ub Programming 5 07-28-2004 12:26 PM


All times are GMT -5. The time now is 02:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration