View previous topic :: View next topic |
Author |
Message |
d135-1r43 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Apr 2005 Posts: 129
|
Posted: Wed Oct 17, 2007 8:41 pm Post subject: Not all RAM available |
|
|
I've replaced my old 256 MB RAM stick with a newly bought 1024 MB. Now there are 1x 1024 MB and 1x 256 MB plugged on my motherboard. The BIOS recognizes everything and prompts "1310720" which are 1280 MB = 1024 + 256, but /proc/meminfo tells me something different:
Code: | # cat /proc/meminfo
MemTotal: 904704 kB
MemFree: 11368 kB
Buffers: 156884 kB
Cached: 307560 kB
SwapCached: 0 kB
Active: 494052 kB
Inactive: 225484 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 904704 kB
LowFree: 11368 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 14392 kB
Writeback: 0 kB
Mapped: 307384 kB
Slab: 168800 kB
CommitLimit: 452352 kB
Committed_AS: 471104 kB
PageTables: 1460 kB
VmallocTotal: 122580 kB
VmallocUsed: 11368 kB
VmallocChunk: 111140 kB |
Where has my memory gone? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
immolo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Sonic/Sega_-_Knuckles.gif)
Joined: 11 Feb 2005 Posts: 124
|
Posted: Wed Oct 17, 2007 9:21 pm Post subject: |
|
|
What does 'free -m' state? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d135-1r43 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Apr 2005 Posts: 129
|
Posted: Wed Oct 17, 2007 9:26 pm Post subject: |
|
|
Code: | # free -m
total used free shared buffers cached
Mem: 883 784 98 0 30 398
-/+ buffers/cache: 355 527
Swap: 0 0 0 |
Same as /proc/meminfo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
timeBandit Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7370479114aa9a876e87b5.png)
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Wed Oct 17, 2007 9:49 pm Post subject: |
|
|
Is CONFIG_HIGHMEM set in your kernel config? _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bevan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 May 2006 Posts: 37
|
Posted: Wed Oct 17, 2007 9:52 pm Post subject: |
|
|
Have you compiled your kernel with support for so much memory?
Please run
grep "CONFIG_HIGHMEM" .config
in /usr/src/linux and post the output.
Michael
---
edit: I see, someone was faster ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d135-1r43 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Apr 2005 Posts: 129
|
Posted: Wed Oct 17, 2007 10:24 pm Post subject: |
|
|
Code: | # grep "CONFIG_HIGHMEM" .config
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set |
Maybe that bit is important?
Code: | # grep "CONFIG_NOHIGHMEM" .config
CONFIG_NOHIGHMEM=y |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bevan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 May 2006 Posts: 37
|
Posted: Wed Oct 17, 2007 10:34 pm Post subject: |
|
|
Yes, it is.
Comment that line out and set
CONFIG_HIGHMEM4G=y
instead.
Of course you can also use "make menuconfig" to set this option. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
albright Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/524660825462570600c7fb.jpg)
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Thu Oct 18, 2007 12:26 am Post subject: |
|
|
d135-1r43, you don't have a video card stealing memory by
any chance do you? I seen people caught by that ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cyker Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Thu Oct 18, 2007 7:18 am Post subject: |
|
|
This is possible, but should only affect people with RAM close to the limit (i.e. anything near 4GB) and video cards with ludicrous amounts of RAM (Like this crazy 512MB and 768MB cards) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d135-1r43 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Apr 2005 Posts: 129
|
Posted: Thu Oct 18, 2007 9:51 am Post subject: |
|
|
albright wrote: | d135-1r43, you don't have a video card stealing memory by
any chance do you? I seen people caught by that ... |
My video card has its own memory.
If I plug another 256 MB to the board, I don't get more RAM. Still 883 MB. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bevan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 May 2006 Posts: 37
|
Posted: Thu Oct 18, 2007 1:43 pm Post subject: |
|
|
That's very typical if CONFIG_NOHIGHMEM is set. Changing to CONFIG_HIGHMEM4G should fix it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d135-1r43 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Apr 2005 Posts: 129
|
Posted: Thu Oct 18, 2007 6:08 pm Post subject: |
|
|
Thanks, I'll try CONFIG_HIGHMEM4G together with a kernel upgrade. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
PM17E5 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15763123424ca122fbade90.png)
Joined: 10 Feb 2009 Posts: 241
|
Posted: Sun Jan 02, 2011 6:39 am Post subject: |
|
|
That's funny I had the same issue on the latest zens sources kernel, and I had to actually disable the 4 GB highmem support in order to get my gig of ram back. After upgrading to the latest vanilla sources, it seems like now I have to enable it to get all of it? Time to compile and reboot. Thanks for the info everyone. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|