RAM upgrade - HIGH MEMORY SUPPORT on Debian

Support and queries relating to all previous versions of ZoneMinder
Locked
simonm
Posts: 18
Joined: Thu Jun 22, 2006 5:32 am

RAM upgrade - HIGH MEMORY SUPPORT on Debian

Post by simonm »

Hello,
I have upgraded my ZM server from 512 MB to 2 GB of RAM.
But Debian only recognizes 880 MB.
As I read, It's a kernel related problem - I have to compile a kernel with High Memory Support.

But now I found in /boot/config-2.6.8-3-386 this section:

Code: Select all

#
# Firmware Drivers
#
CONFIG_EDD=m
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
CONFIG_MATH_EMULATION=y
CONFIG_MTRR=y
# CONFIG_EFI is not set
# CONFIG_REGPARM is not set
Can anybody give a kernel-compile-afraid admin some hints how to solve the problem, so that 2 GB of RAM a recognized?

Thanks!

Simon
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

you will have to recompile with himem suppoer you cant just turn it on. Or add a kernel that has himem support, this is possible on the mandrake stuff but not sure on debian
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Yep - it's the same for Debian.

Easiest way is to use apt-get to install a new kernel that has HIMEM support enabled.
simonm
Posts: 18
Joined: Thu Jun 22, 2006 5:32 am

Post by simonm »

Hello Flash,
is highmem support in all newer kernel versions enabled (if so, i would simply choose the newest kernel) or where can I find out which kernel supports highmem?

Thanks!!
Simon
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

no will have to find a kenrel with highmem support. There are loads of differentr options for the kernel and hig/low mem support is nothing to do with the kernel version mate
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
simonm
Posts: 18
Joined: Thu Jun 22, 2006 5:32 am

Post by simonm »

Ok, thanks!

Regards,
Simon
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Post by Flasheart »

Yep - for some reason it's not usually enabled by default. For my last server I had to build a specific kernel for it (also as it's a quad cpu machine, SMB needs to be enabled too).

That said, building a kernel under debian is quite easy if you build it as a .deb package which you can then install. A basic howto is below. and there are hundreds of other guides on building a kernel.

http://www.debian-administration.org/articles/90
simonm
Posts: 18
Joined: Thu Jun 22, 2006 5:32 am

Post by simonm »

Wow, thanks. I'll give it a try.

But before i will do a veeeery good image.... :D
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Backups are always good. :)

But if you;'re using Grub or Lilo as boot manager, it's very easy to set so that it gives you a menu of which kernel you want it to run at boot-time. As you're experimenting, best to set that so that it defaults to loading your existing kernel, unless you tell it different on boot (times out after 10 seconds or so and loads the default). That way you can play and be reasonably sure you're not going to be unable to access your pc if the new kernel breaks. :)
Locked