LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-02-2012, 06:53 PM   #1
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Rep: Reputation: 1
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?
 
Old 05-02-2012, 07:17 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Before we get too far, what command did use?
 
Old 05-02-2012, 07:25 PM   #3
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 1
'cat /proc/meminfo'
'top'
 
Old 05-02-2012, 07:28 PM   #4
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 1
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.
 
Old 05-02-2012, 10:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
What does xm info say?

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

Last edited by jefro; 05-02-2012 at 10:08 PM.
 
Old 05-02-2012, 10:51 PM   #6
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
What does xm info say?
xm info says 16104 total mem
 
Old 05-02-2012, 11:00 PM   #7
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 1
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.
 
Old 05-03-2012, 05:18 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
memtest?????
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
C (math.h)not doing right math? exp() issue. knockout_artist Programming 7 11-25-2011 02:13 PM
Finding out what RAM chip needed to upgrade from 2GB to 4GB RAM. farmerluk Linux - Hardware 4 11-17-2011 12:02 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
Running a 2.6.* kernel with math emulation ( Does the math emulation work ?) dar_beh_dar Linux - Kernel 3 05-20-2009 11:43 PM
math program that I can enter math functions ... Four General 5 04-19-2006 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:00 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
Open Source Consulting | Domain Registration