Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OS sees only half of the RAM
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
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Mon Jun 11, 2012 2:10 pm    Post subject: [SOLVED] OS sees only half of the RAM Reply with quote

I have a brand new Fujitsu TX150 S7 with one Xeon X3430 and 4GB of RAM.
I have confirmed that $GB is physically installed (one Bank) and that the BIOS sees the RAM. Problem is that the OS sees only half of it.
Code:

Linux 3.2.12-gentoo #1 SMP PREEMPT Fri Apr 20 07:57:20 CEST 2012 i686 Intel(R) Xeon(R) CPU X3430 @ 2.40GHz GenuineIntel GNU/Linux
cat /proc/meminfo
MemTotal:        2062392 kB
MemFree:         1584644 kB
Buffers:           30264 kB
Cached:           261884 kB
SwapCached:            0 kB
Active:           244928 kB
Inactive:         196676 kB
Active(anon):     149580 kB
Inactive(anon):      284 kB
Active(file):      95348 kB
Inactive(file):   196392 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:       1179336 kB
HighFree:         762448 kB
LowTotal:         883056 kB
LowFree:          822196 kB
SwapTotal:       4128668 kB
SwapFree:        4128668 kB
Dirty:                96 kB
Writeback:           368 kB
AnonPages:        149460 kB
Mapped:            11028 kB
Shmem:               408 kB
Slab:              24240 kB
SReclaimable:      10416 kB
SUnreclaim:        13824 kB
KernelStack:        1216 kB
PageTables:          808 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     5159864 kB
Committed_AS:     419696 kB
VmallocTotal:     122880 kB
VmallocUsed:        7116 kB
VmallocChunk:     105444 kB
HardwareCorrupted:     0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       12280 kB
DirectMap4M:      897024 kB
dragon ~ #
 


May be someone can give me some hint, what to look for in the kernel config. I am using a 32 Bit kernel. This has never been a problem with up to 6GB in the past wtih older kernels.


Last edited by AgBr on Mon Jun 11, 2012 7:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4950

PostPosted: Mon Jun 11, 2012 2:32 pm    Post subject: Reply with quote

1. Have you copied your old kernel config, or started from defconfig with your current kernel?

2. Try setting up a kernel seed as per the seeds mirror link in my sig, and let me know if that helps.
_________________
Gentoo Studio: http://gentoostudio.org
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Linux 'Tude Tees: http://skreened.com/geektudetees

A cloud is evaporated water in the sky, thanks.
Back to top
View user's profile Send private message
Ant P.
Veteran
Veteran


Joined: 18 Apr 2009
Posts: 1920
Location: UK

PostPosted: Mon Jun 11, 2012 2:35 pm    Post subject: Reply with quote

Since you're using 32-bit, you need 4GB PAE enabled at a bare minimum.
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Mon Jun 11, 2012 2:54 pm    Post subject: Reply with quote

I just had a look.
I have PAE Support enabled
High Memory Support is for 4GB. I have set it to 64GB. The new kernel is building right right now, as I am to increase the memory to 8GB in the next days. But this should not make a difference now.
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Mon Jun 11, 2012 3:14 pm    Post subject: Reply with quote

audiodef wrote:
1. Have you copied your old kernel config, or started from defconfig with your current kernel?

2. Try setting up a kernel seed as per the seeds mirror link in my sig, and let me know if that helps.


Thank you for that link. Extremely interesting.
My config is derived from Knoppix. Why that?
I am installing a homebrew binary-gentoo system on a lot of different hardware for different purposes. We are a school and I support about 100 boxes in my domain. Mostly clients but some servers too. The machine in question here is a virtualization host. My first one. I had a lot of work with this one but when I am done I can install them by booting into a pxe-System or from USB-Stick and starting a script within minutes without manual intervention. The downfall of this is that I need a one size fits all kernel config, the best I have found is that of Knoppix. A new kernel gets built on the build-server by running make oldconfig automatically whenever a new kernel is out. The downfall is, that I have to live with the default options. Only when I find new hardware not previously supported, I have to make a new kernel by hand test it and put the config onto the build-server. This is extremely rare.
Just in case anyone asks. I haven't created the system, I am just maintaining it as good as I can.
Back to top
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4950

PostPosted: Mon Jun 11, 2012 4:36 pm    Post subject: Reply with quote

That sounds pretty nifty. You should document it and share it somewhere on these forums. :)
_________________
Gentoo Studio: http://gentoostudio.org
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Linux 'Tude Tees: http://skreened.com/geektudetees

A cloud is evaporated water in the sky, thanks.
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Mon Jun 11, 2012 5:13 pm    Post subject: Reply with quote

audiodef wrote:
That sounds pretty nifty. You should document it and share it somewhere on these forums. :)

It is pretty nifty, but as I said: I am not the author, I am just maintaining it. It's not up to me to publish it. As far as I know the author is working on an improved version. I hope he'll put it in an ebuild.
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Mon Jun 11, 2012 7:03 pm    Post subject: Reply with quote

AgBr wrote:
I just had a look.
I have PAE Support enabled
High Memory Support is for 4GB. I have set it to 64GB. The new kernel is building right right now, as I am to increase the memory to 8GB in the next days. But this should not make a difference now.


Increasing High memory support from 4G to 64 did the trick.

Thank you all or your advice
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1134

PostPosted: Thu Jun 14, 2012 9:02 am    Post subject: Reply with quote

For VM hosts, a 64-bit kernel would be strongly recommended, for both technical (it'll be faster and much better tested) and practical reasons (nobody runs a VM host with <4G of ram in this day and age). Incidentally, Red Hat doesn't even package KVM for 32-bit RHEL, only 64-bit RHEL.

You can go ahead and use a 32-bit host if you want, but keep the above in mind if you run into weird problems.
_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Thu Jun 14, 2012 5:07 pm    Post subject: Reply with quote

Mad Merlin wrote:
For VM hosts, a 64-bit kernel would be strongly recommended, for both technical (it'll be faster and much better tested) and practical reasons (nobody runs a VM host with <4G of ram in this day and age). Incidentally, Red Hat doesn't even package KVM for 32-bit RHEL, only 64-bit RHEL.

You can go ahead and use a 32-bit host if you want, but keep the above in mind if you run into weird problems.


Thank you for this heads up. I will take this into consideration. It is difficult for me to install different kernels in my current framework. May be I will have to abandon the automatic update process for the kernel in some way after installation and then build the kernel locally.

EDIT: Just thought this over. It would require me to maintain a second build-system in parallel to the current one as it's not just the kernel but the whole system to be 64Bit. As my goal is not hardware consolidation but easier cloning and maintaining the guest (two in max) I will have to think about whether it is worth the effort.
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