Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory and Linux update

Status
Not open for further replies.

djessi

IS-IT--Management
Dec 29, 2006
93
CM
Hi,
How can you explain that after updating Linux from Redhat3
to Redhat4 on a HP DL740, I only see 4Gb memory instead
of 12Go when using "top" command.
Regards
Djessi
 
I believe there's something that the kernel needs to be notified about through either compiled-in capabilities or a boot paramater that says to use "big mem". I haven't compiled a kernel in years... Look for other flavors of the same kernel version in your package manager and see if there's something there first...

D.E.R. Management - IT Project Management Consulting
 
The kernel has 3 memory setting:
1. CONFIG_NOHIGHMEM - Systems with less than 1G of RAM
2. CONFIG_HIGHMEM4G - Systems with between 1G & 4G of RAM
3. CONFIG_HIGHMEM64G - Systems with more than 4G of RAM. Presumably up to 64G.

When a kernel is installed, there will be a file called config-x.x.x i.e. config-2.6.22.5-76.fc7. This is the config file used to compile the kernel of matching version. Look through this file and see which of the above memory options is enabled. Alternatively, if you current kernel support in-kernel config (not sure if you can call it that), you can try zcat /proc/config.gz | grep CONFIG_HIGHMEM to see which option is enabled.

As far as I know, most kernels default to CONFIG_HIGHMEM4G which means you should need to compile your own. If you have to compile one yourself, use the current kernel's config as a template and just change to memory config setting. This should save you some time from fumbling around, wondering what options to set.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Forgot to mention that the config-x.x.x is under /boot.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top