LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , , , , , , ,

Reply
 
Thread Tools Search this Thread
Old 06-09-2008, 05:27 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3
Question Full RAM memory Slackware 12.1.


[Log in to get rid of this advertisement]
Hello!

How can I make Slackware 12.1 recognize (and make use of) my 4Gb of RAM memory? If I run vmstat, it seems to recognize only 3Gb.

Thanks in advance,
Glore2002.-
glore2002 is offline     Reply With Quote
Old 06-09-2008, 06:17 AM   #2
scoban
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 129
Thanked: 1
Recompile kernel with 64gb ram support
scoban is offline     Reply With Quote
Old 06-09-2008, 06:18 AM   #3
lucazorzi
Member
 
Registered: Jul 2006
Location: Italy
Distribution: Kubuntu 9.04, Arch & TinyCore
Posts: 62
Thanked: 2
I'm afraid you'll have to recompile your kernel with the HIGHMEM64G option enabled.

Last edited by lucazorzi; 06-09-2008 at 01:43 PM.. Reason: Typo
lucazorzi is offline     Reply With Quote
Old 06-09-2008, 01:20 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 12.2 (2.6.27.7)
Posts: 2,033
Thanked: 114
Recently I had to do this.

There are three memory usage options when compiling the kernel:

CONFIG_NOHIGHMEM
CONFIG_HIGHMEM4G
CONFIG_HIGHMEM64G


The first option limits using up to 1GB. The second option limits using up to but not including 4GB. That is, a 4GB box will only use 3GB or so. The last option will recognize 4GB or more. The BIOS might recognize 4GB at boot, but without recompiling, the Linux kernel will not.
Woodsman is offline     Reply With Quote
Old 06-09-2008, 09:22 PM   #5
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3

Original Poster
Recompile? Is that easy or risky?

Hello back and thanks for your answers.
So, in order to recompile kernel, What steps should I follow? Will that mean losing some or all of my insalled programs?
If Slackwar recognizes my full 4Gb, Will that be an advantage or not?

If I run free -m at command line now, I get this:

total used free shared buffers cached
Mem: 3285 606 2678 0 61 370
-/+ buffers/cache: 173 3111
Swap: 0 0 0


I have 4Gb of RAM installed.

Thanks again,

Glore2002.-
glore2002 is offline  
Tag This Post , , , , , , , , ,
Reply With Quote
Old 06-09-2008, 10:07 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware 12.2
Posts: 1,312
Thanked: 30
See here for a great kernel compiling guide.
Quote:
Originally Posted by glore2002
Will that mean losing some or all of my insalled programs?
No, you won't lose any of your programs or files. You won't have to reinstall anything, either.
Quote:
Originally Posted by glore2002
If Slackwar recognizes my full 4Gb, Will that be an advantage or not?
More RAM is always a good thing, so yes, I would definitely say that this is worth it. If you don't want to learn too much about kernel compiling you can just use the .config file for the generic-smp kernel as a base and just change the one option mentioned above (the .config file for the generic-smp kernel is located in /boot/config-generic-smp-2.6.24.5-smp in Slackware 12.1 -- you should copy it to the kernel source directory and rename it to .config to use it as a base).
T3slider is offline     Reply With Quote
Old 06-09-2008, 10:14 PM   #7
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 5,855
Blog Entries: 1
Thanked: 250
Hi,

'Linux Kernel in a Nutshell' is a must read! And a great desktop reference.

This link and others are available from 'Slackware-Links'. More than just Slackware® links!
onebuck is offline     Reply With Quote
Old 06-10-2008, 05:17 AM   #8
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3

Original Poster
Quote:
Originally Posted by T3slider View Post
See here for a great kernel compiling guide.

No, you won't lose any of your programs or files. You won't have to reinstall anything, either.

More RAM is always a good thing, so yes, I would definitely say that this is worth it. If you don't want to learn too much about kernel compiling you can just use the .config file for the generic-smp kernel as a base and just change the one option mentioned above (the .config file for the generic-smp kernel is located in /boot/config-generic-smp-2.6.24.5-smp in Slackware 12.1 -- you should copy it to the kernel source directory and rename it to .config to use it as a base).

This looks nice T3slider!

(at least, it looks easier!). Would it have the same effect as re-compiling kernel? This is how my /boot/config-generic-smp-2.6.24.5-smp looks like now:
:
:
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
:
:

So, What should I do? (detailed explanation will be appreciated!).
Thanks again!
Glore2002.-
glore2002 is offline     Reply With Quote
Old 06-10-2008, 05:26 AM   #9
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3

Original Poster
Question Something else...

By the way, next time I install Slackware from scratch ¿Where and when during installation should I tell Slackware my amount of RAM to set everything correctly?

Thank you!

Glore2002.-
glore2002 is offline     Reply With Quote
Old 06-10-2008, 11:43 AM   #10
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,378
Thanked: 46
Quote:
Originally Posted by glore2002 View Post
By the way, next time I install Slackware from scratch ¿Where and when during installation should I tell Slackware my amount of RAM to set everything correctly?

Thank you!

Glore2002.-
Since the kernel images are prebuilt I don't think there is any way currently that you can specify that you need high mem support. So, you might have to rebuild your kernel every time.

It's a nice problem to have, having more memory than what your system to knows what to do with. Thankfully it is easily fixable as mentioned previously.

Edit:
Quote:
Originally Posted by glore2002 View Post
This looks nice T3slider!

(at least, it looks easier!). Would it have the same effect as re-compiling kernel? This is how my /boot/config-generic-smp-2.6.24.5-smp looks like now:
:
:
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
:
:

So, What should I do? (detailed explanation will be appreciated!).
Thanks again!
Glore2002.-
Use the guides that you were told about. After you have copied over the generic config file to the linux src directory you
make menuconfig
Go to
"Processor Type and Features" -> "High Memory Support" and select 64GB.
Exit and then make, and do the rest of the steps in the guide.

Last edited by shadowsnipes; 06-10-2008 at 11:58 AM..
shadowsnipes is offline     Reply With Quote
Old 06-10-2008, 11:57 AM   #11
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 5,094
Thanked: 292
Quote:
Originally Posted by glore2002 View Post
This looks nice T3slider!

(at least, it looks easier!). Would it have the same effect as re-compiling kernel? This is how my /boot/config-generic-smp-2.6.24.5-smp looks like now:
:
:
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
:
:

So, What should I do? (detailed explanation will be appreciated!).
Thanks again!
Glore2002.-
No, this does not have the same effect as recompiling the kernel; the suggestion made here is simply intended to save you the (small) task of going through the configuration menu to set the changes to the kernel configuration.

You still need to recompile the kernel to incorporate the edit you made to the .config file.

After editing the .config file to activate the HIGHMEM64 option, you will need to move/copy/save this .config file into your kernel source folder, then execute:
Code:
make clean
make
make modules_install
That will build the new kernel and install the modules. You must then copy the new kernel image to your /boot folder, and configure & run LILO to tell the bootloader the name/location of the new image you just made.

As well as reading the man page for `lilo` the links provided by other users above should give you all the info you need about building a new kernel.

If you proceed and get stuck or lost, tell us what you have done so far and we will guide you further.

SVA

EDIT - this assumed you ARE using the LILO bootloader. If you are using something else, then the LILO instruction I gave will not apply, but something else will.

Last edited by GrapefruiTgirl; 06-10-2008 at 12:04 PM..
GrapefruiTgirl is offline     Reply With Quote
Old 06-10-2008, 07:05 PM   #12
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3

Original Poster
Question Hard to decide Isn't it?

Thanks for such a valuable information.

For me, it's hard to decide what to do:

On one side, by rebuilding the Kernel, I would gain full access to my 4Gb. But (on the other side), by reading the guide I also see that some packages may need to be re-compiled (alsa?) to match the new kernel (I don't clearly understand this point).

The guide is really good but, as a newbie, I think I need to have all the detailed and exact steps I should follow in order to access 4Gb without losing any of my packages and lilo. This to make sure I don't make mistakes because of misunderstanding the guide.

What I find really hard to believe is that one is not able to install Slackware from scratch enabling HIGHMEM64G.

Well, I'll keep on reading. As always, your help is very welcome.


Thank you!
Glore2002.-
glore2002 is offline     Reply With Quote
Old 06-10-2008, 07:25 PM   #13
GrapefruiTgirl
Moderator
 
Registered: Dec 2006
Location: N.S.
Distribution: Slackware64
Posts: 5,094
Thanked: 292
No problem! Your patience and willingness to read are commendable, and the right way to go about things. Rather than simply doing stuff without knowing why it is how it is, you will hopefully *understand* what it is you are doing.

The way it is now, without the 64G option, your kernel uses the top 1/4 of your memory to map the lower 3/4 of the memory. So, it isn't technically "missing", but rather the kernel has access to it and you don't.

Chances are VERY HIGH (ridiculously high) that you will not lose (or need to recompile) any packages by rebuilding your kernel, especially if you are rebuilding the exact same version of the kernel. In fact, the only way you would lose packages is... Well, I don't really know but I suppose it is possible somehow.. Anything's possible.

As far as enabling the 64G option while installing, the installation process would need to compile the kernel on the fly, during installation. Slackware does not do this, but instead provides some compiled kernels which are intended to suit the majority of general needs. An example of a Linux that DOES (or CAN) compile a kernel on the fly, is Gentoo; Gentoo is compiled from scratch AND installed during installation. As you might guess, a distro that compiles EVERYTHING from scratch as it installs takes a longer time to install, AND needs more user input to do it.

Best of success with the reading. You will get there!

Sasha

Last edited by GrapefruiTgirl; 06-10-2008 at 07:28 PM.. Reason: Ack! Keyboard must be failing.. SHIFTY typos..
GrapefruiTgirl is offline     Reply With Quote
Old 06-10-2008, 09:15 PM   #14
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64 & Slackware64-Current
Posts: 488
Thanked: 3

Original Poster
Let's see if I can do it. Now it became a challenge!

OK. Let's see if I can do it myself:

Please, help me, writing down the needed steps. I will add questions when in doubt.

Question #0: Should I always be root? (During the whole process that follows I mean). My answer would be YES.

a) I edit my /boot/config-generic-smp-2.6.24.5-smp and change:

CONFIG_X86_CPUID=m

# CONFIG_NOHIGHMEM is not set

CONFIG_HIGHMEM4G=y

# CONFIG_HIGHMEM64G is not set

CONFIG_PAGE_OFFSET=0xC0000000

CONFIG_HIGHMEM=y


To make it look as
:

CONFIG_X86_CPUID=m

# CONFIG_NOHIGHMEM is not set

#CONFIG_HIGHMEM4G=y

CONFIG_HIGHMEM64G=y
(****)

CONFIG_PAGE_OFFSET=0xC0000000

CONFIG_HIGHMEM=y


Is this OK?

b) I should copy this newly /boot/config-generic-smp-2.6.24.5-smp to where the Kernel source resides (and change its name to .config). Question #1: Do I have to copy it to /usr/src/linux or to /usr/src/linux-2.6.24.5 ? I don't have to download any kernel source because I need to re-build the same Kernel I am using right now. Is that ok?

c) Here is where I get lost. What follows?

Yes, I know, I didn't get too far but at least I am trying to make some little steps. :-)

Thanks again!

Glore2002.-
glore2002 is offline     Reply With Quote
Old 06-11-2008, 10:08 AM   #15
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 66
Thanked: 14
Quote:
Originally Posted by glore2002 View Post
I edit my /boot/config-generic-smp-2.6.24.5-smp and change:
On top of that file: "Automatically generated make config: don't edit".
Just copy that to your kernel source directory as .config and use, for example, make menuconfig, instead.
Petri Kaukasoina is offline     Reply With Quote

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
AS 2.1 Not showing full ram rashid68 Linux - Server 4 07-13-2007 04:24 PM
RAM becomes full izvrashenj Debian 5 07-20-2006 12:57 PM
Top not reporting full ram satinet Linux - Hardware 5 02-05-2006 04:28 PM
Slackware Linux RAM/Memory Issues Darvocet Slackware 6 05-25-2005 04:16 PM
RAM seems very full? ginda Linux - Newbie 12 03-07-2005 11:17 PM


All times are GMT -5. The time now is 04:42 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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration