LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-25-2010, 07:24 AM   #1
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Rep: Reputation: 0
Windows Memory Allocation


Hello Everyone,

I have created two windows virtual machines with KVM and set them to have a memory allocation of 1GB and a maximum of 6GB but when I start them up they take all 6GB of ram right away. Also once I go back and look at the details the memory allocation has changed from 1GB to 6GB. Is this supposed to happen and is there a way to stop it?

I looked in the config file for one of the virutal machines and it still says the correct memory settings.

Code:
<memory>5120000</memory>
<currentMemory>1048576</currentMemory>
Also this does not happen with any of the linux virtual machines I am running.


Regards
 
Old 11-25-2010, 04:16 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Hi
Doesn't this depend on the baloon driver being available in the guestOS/VM?
http://www.linux-kvm.com/content/bal...gpl-repository
 
Old 11-26-2010, 08:45 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Windows always reserves all the RAM it can find for itself on boot, there's nothing strange about it. If you have KSM enabled, it will easily deduplicate those zero-filled memory pages, and free up the RAM
 
Old 11-26-2010, 10:59 AM   #4
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Pearlseattle View Post
Hi
Doesn't this depend on the baloon driver being available in the guestOS/VM?
http://www.linux-kvm.com/content/bal...gpl-repository
From what I have read ballooning is a manual process. I could be wrong though....

Quote:
Originally Posted by dyasny View Post
Windows always reserves all the RAM it can find for itself on boot, there's nothing strange about it. If you have KSM enabled, it will easily deduplicate those zero-filled memory pages, and free up the RAM
I did try running KSM and setting up ksmtuned after I started this thread but it doesn't seem to work properly, or I haven't configured it properly. When I start KSM it runs and reduces the ram usage but then turns off and the ram climbs back up. Is KSM supposed to turn off after it has run?
 
Old 11-28-2010, 01:59 PM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by Touch View Post
I did try running KSM and setting up ksmtuned after I started this thread but it doesn't seem to work properly, or I haven't configured it properly. When I start KSM it runs and reduces the ram usage but then turns off and the ram climbs back up. Is KSM supposed to turn off after it has run?
Yes, KSM consumes a lot of resources, so you don't want it running ALL the time, normally you'd want it to start when your RAM usage hits a high percent mark (say 90%), do it's thing, free up all the RAM it can, and turn off until the next time you fill up all your RAM.

Balooning is a totally different approach, normally not in use bu qemu, because KSM is more efficient.
 
  


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
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
Memory allocation morfeus80 Linux - Newbie 5 01-28-2008 02:51 PM
memory allocation esael Linux - General 7 01-12-2008 12:12 PM
memory allocation gecoool Programming 2 10-24-2005 09:47 AM
memory allocation. raven Programming 5 09-08-2002 01:50 PM

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

All times are GMT -5. The time now is 10:36 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