LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2008, 10:28 PM   #1
Wilson_Lee
LQ Newbie
 
Registered: Apr 2007
Posts: 27
Blog Entries: 1

Rep: Reputation: 15
Unhappy Slackware can not detect 3GB memory.


Hi

I'm using slackware 10 at my office, recently I notice that the O/S can not detect 3GB memory. it only detect 1GB only.

May I know wat happen there?

server can detect 3GB memory, O/S should do the same thing also.

am i right?
 
Old 07-15-2008, 10:39 PM   #2
lstamm
Member
 
Registered: Aug 2007
Location: McBride, BC, Canada
Distribution: Slackware, OpenBSD, Edubuntu
Posts: 53

Rep: Reputation: 17
You need to recompile the kernel to enable High Memory Support. In the 2.6 kernel series it is under the Processor type and features section; I am not sure where it is on the 2,4 series kernel.
 
Old 07-15-2008, 11:26 PM   #3
Wilson_Lee
LQ Newbie
 
Registered: Apr 2007
Posts: 27
Blog Entries: 1

Original Poster
Rep: Reputation: 15
I'm newbie. May I know how do i do that ?
 
Old 07-15-2008, 11:26 PM   #4
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
Slackware 12.1 I know can detect up to 4 gb of memory
Here is a guide to compiling a kernel http://www.digitalhermit.com/linux/K...ild-HOWTO.html

Last edited by AceofSpades19; 07-15-2008 at 11:30 PM.
 
Old 07-16-2008, 12:56 AM   #5
Wilson_Lee
LQ Newbie
 
Registered: Apr 2007
Posts: 27
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks AceofSpades19,

But my company server is using slackware 10, I need to find out a way to make the O/S detect the 3GB memory.
The guide can be used for Slackware 10 ?

Last edited by Wilson_Lee; 07-16-2008 at 01:01 AM.
 
Old 07-16-2008, 01:46 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

Rep: Reputation: 292Reputation: 292Reputation: 292
It doesn'y really matter which version of slackware you are using - the option is in the kermel, not the os. You need to recompile kernel with support for high memory. Read the compile kernel guide above.
 
Old 07-16-2008, 02:17 PM   #7
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
It will look like this in the .config for the kernel in /usr/src/linux:

Code:
CONFIG_HIGHMEM4G=y
If you needed more, 2.4.x can support up to 64GB of memory, it would look like this:

Code:
CONFIG_HIGHMEM64G=y
For the short and quick steps to recompile the kernel, do the following:

1. Next open up '/usr/src/linux/Makefile'
Uncomment the line...
#export INSTALL_PATH=/boot
To read:
export INSTALL_PATH=/boot

2. Also edit your existing /etc/lilo.conf and rename your current default kernel vmlinuz to something like vmlinuz.old and rename the Label to Linux-Old. You do this so if the new kernel breaks, you can reboot into the old kernel to go fix, etc.

3. make menuconfig # skip this if you just use the existing .config in /usr/src/linux and uncomment the lines outlined above or create such lines.
4. make dep
5. make clean
6. make bzImage
7. make install
8. make modules
9. make modules_install
10. Verify and reboot.


Slackware utilized the make install and this will copy over the vmlinuz and update lilo.conf with the new kernel, etc. Good to double check before rebooting.

Last edited by trickykid; 07-16-2008 at 02:34 PM.
 
Old 07-17-2008, 12:49 AM   #8
Wilson_Lee
LQ Newbie
 
Registered: Apr 2007
Posts: 27
Blog Entries: 1

Original Poster
Rep: Reputation: 15
trickykid,

is it possible that after i rebuild the kernel, my machine wont boot ?
because this is my office mail server, if it does not work then I in trouble.
 
Old 07-17-2008, 01:01 AM   #9
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
Quote:
Originally Posted by Wilson_Lee View Post
trickykid,

is it possible that after i rebuild the kernel, my machine wont boot ?
because this is my office mail server, if it does not work then I in trouble.
The kernel may not boot, but if you don't delete your old kernel, all will be well
 
Old 07-17-2008, 01:57 AM   #10
Wilson_Lee
LQ Newbie
 
Registered: Apr 2007
Posts: 27
Blog Entries: 1

Original Poster
Rep: Reputation: 15
It a bit risky. Thanks for the advise.
 
Old 07-17-2008, 07:50 AM   #11
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by Wilson_Lee View Post
trickykid,

is it possible that after i rebuild the kernel, my machine wont boot ?
because this is my office mail server, if it does not work then I in trouble.
You can always run into this issue when building a new kernel. That's why the steps involved keep the old kernel around, so you can reboot and rebuild, reconfigure, troubleshoot what went wrong.

The only time I've never had a kernel fail on me in Slackware is cause I was stupid and didn't include the right modules for my NIC, so it worked, I just lacked network connectivity. A quick reboot, change config to include my NIC and it was as easy as make modules and make modules_install and I was up and running after a reboot again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 09:48 AM
Linux, 64 bit and >3Gb of memory Dee-ehn Linux - Hardware 13 03-28-2008 04:56 AM
User wants to allocate more than 3Gb memory space in RHel5 batkinso Red Hat 3 07-24-2007 10:21 AM
detect memory trashing in linux raees Linux - Software 1 06-28-2005 03:20 PM
how to detect memory leaks abirami Linux - Networking 2 11-08-2004 05:35 AM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration