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 03-14-2013, 06:58 PM   #1
themind24
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Linux recognize only partial memory


Hi Everyone,
I tried different 64bit linux distros (Ubuntu 12.10 Gnome Remix, Fedora 18, Bridge Linux) on my new laptop but all of them have a problem with memory. My laptop has 4 GB memory but Ubuntu recognize only 2,4 GB. Obviously both BIOS and Windows 8 recognize all 4GB.

My laptop configuration: Lenovo B590 CPU: Intel Core i5-3210M Ram: 4 GB DDR3-SDRAM Chipset motherboard: Intel HM77 Express Integrated graphics: HD Graphics 4000.

it may be possible that the lost memory is borrowed from Intel HD Graphics? if it's true, it always borrows fixed maximum memory?!

Some useful command outputs:
Code:
midecode --type memory

Array Handle: 0x000B
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: SODIMM
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: DDR3
Type Detail: Synchronous
Speed: 1600 MHz
Manufacturer: Hynix/Hyundai
Serial Number: 1A21B5B9
Asset Tag: 9876543210
Part Number: HMT351S6EFR8C-PB  
Rank: Unknown
Configured Clock Speed: 1600 MHz


free -m

              total       used       free     shared    buffers     cached
Mem:          2483       1136       1346          0         56        515
-/+ buffers/cache:        563       1919
Swap:         4884          0       4884


cat /proc/meminfo | grep "Mem*"

MemTotal:        2542664 kB
MemFree:         1373552 kB


dmesg | grep -i memory

[    0.000000] initial memory mapped: [mem 0x00000000-0x1fffffff]
[    0.000000] Base memory trampoline at [ffff880000097000] 97000 size 24576
[    0.000000] init_memory_mapping: [mem 0x00000000-0x846f1fff]
[    0.000000] init_memory_mapping: [mem 0x100000000-0x11e5fffff]
[    0.000000] Early memory node ranges
[    0.000000] PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e0000
[    0.000000] PM: Registered nosave memory: 00000000000e0000 - 0000000000100000
[    0.000000] PM: Registered nosave memory: 0000000020000000 - 0000000020200000
[    0.000000] PM: Registered nosave memory: 0000000040004000 - 0000000040005000
[    0.000000] PM: Registered nosave memory: 00000000846f2000 - 00000000dae9f000
[    0.000000] PM: Registered nosave memory: 00000000dae9f000 - 00000000daf9f000
[    0.000000] PM: Registered nosave memory: 00000000daf9f000 - 00000000dafff000
[    0.000000] PM: Registered nosave memory: 00000000dafff000 - 00000000dfa00000
[    0.000000] PM: Registered nosave memory: 00000000dfa00000 - 00000000f8000000
[    0.000000] PM: Registered nosave memory: 00000000f8000000 - 00000000fc000000
[    0.000000] PM: Registered nosave memory: 00000000fc000000 - 00000000fe800000
[    0.000000] PM: Registered nosave memory: 00000000fe800000 - 00000000fe810000
[    0.000000] PM: Registered nosave memory: 00000000fe810000 - 00000000fec00000
[    0.000000] PM: Registered nosave memory: 00000000fec00000 - 00000000fec01000
[    0.000000] PM: Registered nosave memory: 00000000fec01000 - 00000000fed08000
[    0.000000] PM: Registered nosave memory: 00000000fed08000 - 00000000fed09000
[    0.000000] PM: Registered nosave memory: 00000000fed09000 - 00000000fed10000
[    0.000000] PM: Registered nosave memory: 00000000fed10000 - 00000000fed1a000
[    0.000000] PM: Registered nosave memory: 00000000fed1a000 - 00000000fed1c000
[    0.000000] PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
[    0.000000] PM: Registered nosave memory: 00000000fed20000 - 00000000fee00000
[    0.000000] PM: Registered nosave memory: 00000000fee00000 - 00000000fee01000
[    0.000000] PM: Registered nosave memory: 00000000fee01000 - 00000000ffc20000
[    0.000000] PM: Registered nosave memory: 00000000ffc20000 - 0000000100000000
[    0.000000] Memory: 2515460k/4691968k available (6711k kernel code, 2027016k absent, 149492k reserved, 6459k data, 928k init)
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.001851] Initializing cgroup subsys memory
[    0.522565] Freeing initrd memory: 23680k freed
[    1.430344] Freeing unused kernel memory: 928k freed
[    1.433360] Freeing unused kernel memory: 1472k freed
[    1.435653] Freeing unused kernel memory: 1124k freed
[    1.471316] pci 0000:00:00.0: >detected 65536K stolen memory


uname -a

Linux antonio-Notebook 3.5.0-17-generic #28-Ubuntu SMP
Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Thanks
 
Old 03-16-2013, 03:38 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
You have 4 GB Memory installed .
Some is allocated by the system and by the Graphic card .
So not all the 4 Memory is free .
The allocated amount is always the same
Although I find 1.6 GB high
 
Old 03-16-2013, 05:30 AM   #3
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
themind24,

You might want to consider the second of these two lines from your log. It would seem that Linux is aware of all the physical memory your machine has, but there is some set aside for other purposes.

Code:
[    0.000000] PM: Registered nosave memory: 00000000ffc20000 - 0000000100000000 
[    0.000000] Memory: 2515460k/4691968k available (6711k kernel code, 2027016k absent, 149492k reserved, 6459k data, 928k init)
 
Old 03-16-2013, 06:42 AM   #4
cyberpatrol
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
Is it possible that free -m and cat /proc/meminfo don't show the correct values, at least not the way we would interpret them?

I was curious about this issue, and ran free -m and cat /proc/meminfo, too. I have 4 GB RAM, and those commands show this for me:
Code:
# free -m
             total       used       free     shared    buffers     cached
Mem:          3950       3653        296          0         86       2444
-/+ buffers/cache:       1122       2827
Swap:         1023         25        998


# cat /proc/meminfo | grep "Mem*" 
MemTotal:        4044808 kB
MemFree:          243280 kB
So it "detects" the full memory, but says that only 238 resp. 296 MB are free, and I have just a very few daemons, X, Xfce, an e-mail client, a webbrowser, and a java based download manager running.

The xfce4-systemload-plugin on the other hand shows only a short bar and says something about 1125 MB used, which is a lot more likely. HardInfo also shows 1142 of 4044 MB used.

Last edited by cyberpatrol; 03-16-2013 at 06:46 AM.
 
Old 03-16-2013, 08:28 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Quote:
-/+ buffers/cache: 1122 2827
The figure in blue is the actual available amount of free memory, which accords with your xfce4-systemload-plugin (3950-2827=1123).
The other RAM is being used as cache buffer for previously accessed data, which would otherwise require being fetched from disk.
 
Old 03-16-2013, 09:39 AM   #6
cyberpatrol
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
OK, then forget my comment. Then the original problem is somewhere else.
 
Old 03-16-2013, 11:09 AM   #7
themind24
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks to everyone.
So I can conclude that there's always about 1,6gb allocated for the Graphics Card?
(the maximum shared memory for Intel HD Graphics 4000 is 1720MB, it is approximately equal to the amount of "memory lost").
However, if it's true, I think that is a bad behavior for Linux.
 
Old 03-16-2013, 11:21 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Why? Windows is doing the same thing, but lying about the available memory as it isn't reporting the required reserve that isn't generally available.

As for "always", it depends on the graphics card...
 
Old 05-02-2013, 03:27 PM   #9
themind24
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
The problem disappeared with new kernel 3.8.0-19-generic.
The system recognize 3,7GB of Memory now.
Thanks to everyone.
 
  


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
RH AS 2.1 Update 5 will not recognize 12G memory MaleMe Linux - Hardware 0 11-19-2004 05:56 PM
Getting Slackware9.1 to recognize 2GB of memory vrn953 Slackware 3 03-12-2004 02:28 AM
Does Linux automatically recognize more memory? m32 Linux - Newbie 2 09-21-2003 12:44 PM
My Linux system does not recognize upgraded memory! MatthewRowley Linux - Hardware 2 05-11-2003 05:28 AM
Linux does not recognize all my memory schifi Linux - General 9 09-28-2001 06:57 AM

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

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