Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not all RAM available
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Wed Oct 17, 2007 8:41 pm    Post subject: Not all RAM available Reply with quote

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
View user's profile Send private message
immolo
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 124

PostPosted: Wed Oct 17, 2007 9:21 pm    Post subject: Reply with quote

What does 'free -m' state?
Back to top
View user's profile Send private message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Wed Oct 17, 2007 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Oct 17, 2007 9:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bevan
n00b
n00b


Joined: 26 May 2006
Posts: 37

PostPosted: Wed Oct 17, 2007 9:52 pm    Post subject: Reply with quote

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 ;-)
Back to top
View user's profile Send private message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Wed Oct 17, 2007 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bevan
n00b
n00b


Joined: 26 May 2006
Posts: 37

PostPosted: Wed Oct 17, 2007 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Thu Oct 18, 2007 12:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Oct 18, 2007 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Thu Oct 18, 2007 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Bevan
n00b
n00b


Joined: 26 May 2006
Posts: 37

PostPosted: Thu Oct 18, 2007 1:43 pm    Post subject: Reply with quote

That's very typical if CONFIG_NOHIGHMEM is set. Changing to CONFIG_HIGHMEM4G should fix it.
Back to top
View user's profile Send private message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Thu Oct 18, 2007 6:08 pm    Post subject: Reply with quote

Thanks, I'll try CONFIG_HIGHMEM4G together with a kernel upgrade.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Sun Jan 02, 2011 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum