LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-19-2016, 06:54 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Amt of RAM


I have 8 Gb of RAM. (Does that mean 8 x 1024 = 8,192,000,000 bits)

free -h shows I have 6.8 G of RAM.

System info shows I have 7086492 kb

free -m shows
Quote:
total used free shared buff/cache available
Mem: 6920
They all can not be right. ??

Why the discrepancy ?

Last edited by Fixit7; 08-19-2016 at 06:56 PM.
 
Old 08-19-2016, 09:10 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Looks like you have 7GB RAM and the discrepancies are due to rounding
 
Old 08-19-2016, 09:19 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
They must round down because I do have 8 Gb of RAM.
 
Old 08-19-2016, 09:47 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Run memtest maybe to be sure. Video may be taking some.
 
Old 08-20-2016, 12:19 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I have a dedicated video card.

BIOS shows 8192 Mb.
 
Old 08-20-2016, 03:15 PM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
My experience is that the BIOS may show a larger amount of memory than what is actually available to the OS. It will show the physical amount, not accounting for reserved address ranges.

For example, I have a couple Motion Computing LE1700s and a Lenovo G555 which will physically accept 2x2GB RAM sticks, reporting 4GB RAM installed in the BIOS. But the OS will only be able to utilize just barely over 3GB of it due to reserved address spaces. Seems stupid, but there's just no way around it. Both of those models practically max out at 3GB. It sounds like your issue is similar.

There's also the possibility of a memory overlay between the video card RAM and the system RAM, but typically such an overlay would be significantly smaller than 1GB.
 
Old 08-20-2016, 04:10 PM   #7
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
My system never uses even close to the amount of RAM I have, so no big deal.
 
Old 08-21-2016, 05:51 AM   #8
beroal
Member
 
Registered: Feb 2016
Location: Ukraine
Distribution: ArchLinux
Posts: 49

Rep: Reputation: Disabled
Actually, you have 8 GiB of RAM. (B = byte, b = bit). Gi = 2^(3*10) = 1073741824. The prefix "G" may be binary or decimal depending on the program that reports it. Unfortunately, there is nothing on this matter in the man page of "free".

If your motherboard includes a videocard, the videocard uses RAM even if you don't use the videocard.
 
Old 08-21-2016, 09:27 AM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
You can use "free -b" to get an actual byte count. The "Total" reported by free is the memory that is available after the kernel has been loaded and initialized.
 
1 members found this post helpful.
Old 08-21-2016, 12:50 PM   #10
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by beroal View Post
Actually, you have 8 GiB of RAM. (B = byte, b = bit). Gi = 2^(3*10) = 1073741824. The prefix "G" may be binary or decimal depending on the program that reports it. Unfortunately, there is nothing on this matter in the man page of "free".

If your motherboard includes a videocard, the videocard uses RAM even if you don't use the videocard.
Interesting.

How can I check if my mobo has a videocard ?
 
Old 08-21-2016, 01:01 PM   #11
beroal
Member
 
Registered: Feb 2016
Location: Ukraine
Distribution: ArchLinux
Posts: 49

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
How can I check if my mobo has a videocard ?
Look into its specification. Or post its model name here.
 
Old 08-21-2016, 02:55 PM   #12
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Only if you have lshw installed

Code:
harry@biker1:~$ sudo -i
[sudo] password for harry: 
root@biker1:~# lshw -short | grep -i --color display
/0/100/2                   display     Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/2.1                 display     Mobile 4 Series Chipset Integrated Graphics Controller
root@biker1:~#  lshw -class display
  *-display:0             
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:27 memory:f6c00000-f6ffffff memory:e0000000-efffffff ioport:efe8(size=8)
  *-display:1 UNCLAIMED
       description: Display controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2.1
       bus info: pci@0000:00:02.1
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=0
       resources: memory:f6b00000-f6bfffff
if inxi is installed

Code:
harry@biker1:~$ inxi -G
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
           Display Server: X.Org 1.15.1 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1280x800@60.0hz
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express x86/MMX/SSE2
           GLX Version: 2.1 Mesa 10.1.3
 
Old 08-21-2016, 02:58 PM   #13
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Graphics: Card: Advanced Micro Devices [AMD/ATI] Kaveri [Radeon R7 Graphics]
Display Server: X.Org 1.18.3 drivers: ati,radeon (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.00hz
GLX Renderer: Gallium 0.4 on AMD KAVERI (DRM 2.43.0, LLVM 3.8.0)
GLX Version: 3.0 Mesa 11.2.0
Thought I had a dedicated graphics card.

Apparently not as I saw that my video cable connected to the motherboard.

Looks like about 800 Mb of my RAM is being used by my monitor.

Which explains my RAM figures.

Last edited by Fixit7; 08-21-2016 at 03:10 PM.
 
Old 08-21-2016, 03:08 PM   #14
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Since inxi is installed.

Code:
inxi -F
Will show true ram specs at the bottom of the terminal readout under

Code:
Info:      Processes: 189 Uptime: 1:07 Memory: 553.9/1971.2MB
           Client: Shell (bash) inxi: 2.2.32
 
Old 08-21-2016, 05:44 PM   #15
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Info: Processes: 210 Uptime: 5:04 Memory: 852.3/6920.4MB
 
  


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
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
Amt of Memory truly being used. tilsleyj Linux - Newbie 6 09-29-2010 03:56 PM
Can't download alternative ATI/AMT Graphics Driver Hb_Kai Linux - Hardware 1 02-10-2009 05:53 PM
After re-install; no sound and ATI/AMT Graphics driver Hb_Kai Linux - Newbie 1 02-09-2009 05:06 AM
ATI\AMT Graphics Driver Hb_Kai Linux - Hardware 8 01-19-2009 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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