LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-05-2005, 09:32 AM   #1
ipren
LQ Newbie
 
Registered: May 2004
Location: Stockholm / Sweden
Distribution: Slackware 10
Posts: 14

Rep: Reputation: 0
Memorylimit in slack?


Hi!

I just installed a new memorymodule (DDR) in my computer. Now I have three modules, like this:

512mb
512mb
256mb

The new one that I added was 512mb. Everything work ok, it shows up in the BIOS at bootup (~1200mb). But when I run 'free' on my slackbox (slack 10, kernel 2.6.10) i get this:

Code:
             total       used       free     shared    buffers     cached
Mem:        905752     521904     383848          0       6916     264872
-/+ buffers/cache:     250116     655636
Swap:      2097136          0    2097136
When I had 512+256 the value showed up correctly (700 something).

Is it a limit set in Slackware?





/Mathias!
 
Old 06-05-2005, 09:36 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
In you kernel you must enable CONFIG_HIGHMEM4G which means
you must recompile your kernel for it to see 1GB or greater.
 
Old 06-05-2005, 09:39 AM   #3
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
You need to recompile your kernel to enable high memory support. By default, the kernel will only see up to 1GB of memory. (and that, it sees as around 800mb). There's an option for up to 4GB, and another for up to 64GB of memory.

That's a Linux limitation, not a Slackware limitation. Memory management is better when there isn't a whole lot of unused memory address space in the system. Since most systems have less than 1GB of memory, the default is to allow address space for up to 1GB of memory.
 
Old 06-05-2005, 09:50 AM   #4
ipren
LQ Newbie
 
Registered: May 2004
Location: Stockholm / Sweden
Distribution: Slackware 10
Posts: 14

Original Poster
Rep: Reputation: 0
Post

Ahh ok.. suspected something like that.

I've compiled the kernel before but I'm no expert. Can I find this option somewhere in the "make menuconfig" program? if so, where? I've searched everwhere (I think ).



/Mathias!
 
Old 06-05-2005, 09:59 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Under Processor Types and Features >
High Memory Support >
toggle 4GB on
exit and save your configuration
For 2.6.x you next should run "make" then
"cp System.map /boot/System.map-2.6.10 ; ln -sf /boot/System.map-2.6.10 /boot/System.map"
then "make modules_install"
then "cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10"
then edit lilo.conf accordingly (might be okay as is)
then run "lilo"
then reboot.

Edit: There is a good 2.6.x kernel guide here > http://www.linuxtux.org/~juhl/
along with some other good Slackware stuff.

Last edited by Bruce Hill; 06-05-2005 at 10:20 AM.
 
Old 06-05-2005, 10:04 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
...

Last edited by Bruce Hill; 06-05-2005 at 10:21 AM.
 
Old 06-05-2005, 10:17 AM   #7
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
Quote:
Originally posted by killerbob
YMemory management is better when there isn't a whole lot of unused memory address space in the system.
That is not true, with a lot of memory various caches and buffers, e.g. the buffer cache can grow much larger. This is beneficial to the system performance.

Quote:
Since most systems have less than 1GB of memory, the default is to allow address space for up to 1GB of memory.
The matter is a bit more compilicated. The x86-32 can only address 4GB of memory, and the kernel can only permanently map 1GB. Highmem support uses some tweaks to allow the kernel to address larger address spaces.
 
Old 06-05-2005, 12:21 PM   #8
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Quote:
That is not true, with a lot of memory various caches and buffers, e.g. the buffer cache can grow much larger. This is beneficial to the system performance.
A larger cache or buffer does not necessarily translate into better performance, particularly when it means more swapping requirements. In that situation, having a larger cache actually translates into slower system performance. If you have the physical RAM, by all means, use it. Otherwise, better not to open that addressing space up in the first place, because it increases the memory requirements to keep track of and swap blocks in and out of active memory.

Besides which, that would be used memory address space, not unused memory address space. Take Windows for example. It'll create 4GB of memory address space, no matter what your physical RAM and swap capabilities are. Partly because of this, it's extremely swap-intensive, especially on low-memory systems where a lot of the physical RAM is taken up just for buffers and swap pagefiles. There's a reason XP won't even *install* if you have less than 64MB of RAM, and the requirements for memory management are a large part of it. The UI sure doesn't, because with the right skins in Linux, you can create one with even more special effects, and have the system actually be useable, on a '486/16MB system.
 
Old 06-05-2005, 12:34 PM   #9
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
Quote:
Originally posted by Chinaman
Under Processor Types and Features >
High Memory Support >
toggle 4GB on
exit and save your configuration
For 2.6.x you next should run "make" then
"cp System.map /boot/System.map-2.6.10 ; ln -sf /boot/System.map-2.6.10 /boot/System.map"
then "make modules_install"
then "cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10"
then edit lilo.conf accordingly (might be okay as is)
then run "lilo"
then reboot.

Edit: There is a good 2.6.x kernel guide here > http://www.linuxtux.org/~juhl/
along with some other good Slackware stuff.
What in the hell are you on? I want some!

Make the change in your kernel config to allow highmem support.
THEN edit your Makefile, to set the install path to /boot.
make
make modules_install
make install

reboot

Make install will copy all files needed to the boot directory, and run lilo for the the new files.
but only after editing the makefile. (which only takes the removal of one '#')
 
Old 06-05-2005, 01:06 PM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by slackMeUp
What in the hell are you on? I want some!
I'm not on anything, bud. I just use Linus Torvalds method
on installing the kernel. Try reading ./linux/2.6.x.x/README
You'll even learn to stay out of /usr/src and you don't need
to run that make install.
 
Old 06-05-2005, 02:13 PM   #11
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
I don't use make install, either....


make menuconfig
make
make modules
make modules_install
cp System.map /boot/System.map-version
cp arch/i386/boot/bzImage /boot/vmlinuz-version
update the symlinks
update lilo.conf
lilo
reboot


Has worked for every version of the Linux kernel since at least 2.0.7, and probably before that. I confess I never used the 1.x kernel. And no need to edit makefiles, either.
 
Old 06-05-2005, 03:07 PM   #12
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
but, the make install script does a lot of that work for you.

It works just fine, and takes less effort.
 
Old 06-05-2005, 03:41 PM   #13
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
I don't use the make install either. The way I see it, the guy who wrote the kernel would know the best way to install it so I follow his instructions.
 
Old 06-05-2005, 04:10 PM   #14
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
i wonder: how will " make install " name the kernel ?
i mean, i always use for ex. vmlinuz-2.6.6; System.map-2.6.6
so i can add it as an extra option to lilo.conf.

i guess if " make install " also runs lilo, you'll have to edit lilo.conf
before that, and then you'll have to know how the image is named before it's installed...?

egag
 
Old 06-05-2005, 05:12 PM   #15
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
I used make install once, and only once, because it named the kernel "vmlinuz" (no version info), and because it put everything in / instead of /boot. Also, it didn't update lilo.conf. After that, I went back to the manual method, because I like having control over it.
 
  


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
Frozen-Bubble(from slack 8.2) Not Running in slack 9 bongski55 Slackware 8 01-02-2006 04:10 PM
Slack 10.1 will a Slack 10 Wine pkg work? acummings Slackware 1 03-25-2005 04:55 AM
Using Slack 10's 2.6.7 kernel packages on Slack 10.1? SocialEngineer Slackware 1 03-05-2005 11:53 AM
cd rom error on installation media (With both slack 9,1 and slack 10) busbarn Slackware - Installation 6 07-15-2004 03:03 PM
Anybody know how to use slack-required when creating slack pakages? linuxlah Slackware 1 02-10-2004 02:27 PM

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

All times are GMT -5. The time now is 04:31 PM.

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