LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Ram MAth (https://www.linuxquestions.org/questions/linux-hardware-18/ram-math-942995/)

anon079 05-02-2012 06:53 PM

Ram MAth
 
I wondered if someone can help me do this math...

I have 16GiB of Ram according to my Bios
I use fedora which reports only 9GiB total Ram and reports 8.5 Free
I use Xen which reports its using 100% of 15.49 GiB Ram

How in the hell is the system coming to these numbers? Is fedora really only seeing 9 GiB?

jefro 05-02-2012 07:17 PM

Before we get too far, what command did use?

anon079 05-02-2012 07:25 PM

'cat /proc/meminfo'
'top'

anon079 05-02-2012 07:28 PM

Though the Xen data came from virt-manager and may be just saying that it makes that much available if a vm uses it. Not sure but it doesn't make senses that virt-manager sees all the ram and top / meminfo dont.

jefro 05-02-2012 10:07 PM

What does xm info say?

Not sure about the 9G issue. I'd boot to memtest and see what it says.

anon079 05-02-2012 10:51 PM

Quote:

Originally Posted by jefro (Post 4668987)
What does xm info say?

xm info says 16104 total mem

anon079 05-02-2012 11:00 PM

Ok ok.. figured it out.
I decided to try and turn of one of my VM's just to see what happened. At first the Memory didn't change. So this whole time I'm thinking well its not just allocating all the memory a virt machine asks for it must do it on the fly.... wrong. After a reboot ,with the VM turned off, the Mem total in meminfo changed to 11GiB. That's 2GiB more then it was and exactly the amount I had allocated to the VM. What I don't understand is... If I shut down a VM why am I not getting that memory back unless I reboot my entire machine.

---------- Post added 05-03-12 at 12:00 AM ----------

Ok ok.. figured it out.
I decided to try and turn of one of my VM's just to see what happened. At first the Memory didn't change. So this whole time I'm thinking well its not just allocating all the memory a virt machine asks for it must do it on the fly.... wrong. After a reboot ,with the VM turned off, the Mem total in meminfo changed to 11GiB. That's 2GiB more then it was and exactly the amount I had allocated to the VM. What I don't understand is... If I shut down a VM why am I not getting that memory back unless I reboot my entire machine.

jefro 05-03-2012 05:18 PM

memtest?????


All times are GMT -5. The time now is 05:34 PM.