LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-03-2009, 09:26 PM   #1
Lord-Ragnarock
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Slackware 13 doesn't see all 4GB of RAM


I just upgraded my "Emachines e520" computer to 4 GB RAM (the maximum) today. But Slackware only sees 3 GB (according to KInfoCenter) I checked my BIOS, and it sees all 4 GB of RAM in the machine. So it seems to be a problem with Linux. I've read that this is fairly common with some Linux users, and that the kernel's usually part of the problem. Now, I just need the knowledge to fix the problem

Anybody have any ideas?

Machine specs:
Emachines e520
4GB RAM
Slackware Linux 13.0 (KDE 4.2.4)
 
Old 12-03-2009, 09:28 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Type in terminal:
Quote:
arch
 
Old 12-03-2009, 09:49 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Anybody have any ideas?
You have to build a new kernel. The stock kernels with Slackware are not enabled to support >4GB.

Try here for specific information.
 
Old 12-03-2009, 11:12 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Actually, it is not enabled to support =>4GB....

The '=' part is important (the reason why it only sees 3GB)
 
Old 12-04-2009, 12:32 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Woodsman View Post
Try here for specific information.
And in that thread this post is particularly relevant. If the existing memory usage pattern isn't causing swapping with the existing kernel, enabling HIGHMEM64G will probably slow the system.

As milkycow mentioned, enabling HIGHMEM64G results in a 3 to 6% time penalty on memory access. The only memory usage pattern which would gain would be if the system is actually using > ~3.5 GB and thus swapping. Even then, depending on specific usage, the time penalty might be more significant than avoiding swapping. Different story if the system is swapping > 2 GB and 6 GB RAM are fitted but with only 4 GB RAM fitted it is questionable whether enabling HIGHMEM64G would improve performance.

The best solution is a 64-bit kernel.
 
Old 12-04-2009, 01:15 AM   #6
Lord-Ragnarock
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Okay, I've read the topic and the wiki page. I'm obviously gonna have to compile/build/whatever a new kernel. I'd prefer to have someone guide me through that, because I'm a complete newbie to most of that >.>
 
Old 12-04-2009, 01:34 AM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Google a bit for Alien Bob's Kernel compile guide. You can also search this forum as the link has been posted many times.
 
Old 12-04-2009, 02:17 AM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
download the kernel sources
extract
cd to the directory
type make menuconfig at the terminal
look at evrey option and check it or uncheck to your desires
make sure to enable large ram support (under processor and features i think) (ether 16 or 64 GB)
save / exit
type make
...WAIT...
setup your kernel for bootloading
 
Old 12-04-2009, 09:41 AM   #9
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
Some important notes before you begin!

1. Ensure your lilo.conf has a proper entry directly to the current kernel and not just a symlink! (huge is always a good option as a failsafe)

2. IF you don't know how to use an initrd image, LEARN NOW. read /usr/doc/mkinitrd-1.3.4/README.initrd and know why you are making one for the "general" labeled kernel

3. Configure your kernel using your current configure script in /boot
configure two options (or more if you need to)
General setup > Local Version - ad something like "-mine" or anything you want. This way your pre installed modules will not be overwritten.

Toggle the Ram=>4gig option

4. Install the modules and kernel. Make sure the file names in /boot are something that mark it as yours
vmlinuz-<your build version>-2.6.29.6<Local Version Tag>

5. Make an initrd image using -k 2.6.29.6<Local Version Tag>

6. Make a new entry in lilo.conf and run lilo

7. Reboot and pray.

8. Rebuild external kernel modules for things like nvidia and virtual box
 
Old 12-04-2009, 03:13 PM   #10
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
http://blog.tpa.me.uk/slackware-kernel-compile-guide/

This guide will not only who you how to set HIGHMEM64G, but also will show you how to have a nice slim kernel with no initrd..

..and it's only 10 steps!
 
  


Reply



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
4GB RAM Ubuntu 9.04 pitanaya Linux - Laptop and Netbook 14 09-17-2010 09:48 PM
[SOLVED] 4GB RAM in 32-bit Slackware 13? milkycow Slackware 7 11-26-2009 09:44 AM
3.6GB RAM instead of 4GB ??? masterross Slackware 11 09-04-2008 08:07 AM
utilize 4gb of ram cynick Linux - General 2 04-20-2006 11:42 AM
What if you had 2GB RAM and 4GB HD? AC97Conquerer General 21 03-28-2005 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration