LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2004, 01:38 PM   #16
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370

You only have 512 MB of RAM, so you don't need to recompile your kernel to support high memory or anything. Just don't worry about the amount of memory shown by the free program. Linux tries to use as much RAM as possible for buffers/cache. The memory will be made available to programs that need it. Every well-behaved Linux box has very little free memory.
 
Old 09-08-2004, 01:59 PM   #17
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
naw, i had 512 ram, and i got another 512 ram stick, so it's 1 gig
 
Old 09-08-2004, 05:14 PM   #18
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You will have to compile your stock kernel source code to handle a gigabyte of RAM or more. People just did not read your first post correctly.

I preferred using the instructions at http://www.justlinux.com/nhf/Compili...mpilation.html because it is more organized than DrOzz and it explain what each command does. Also the one at justlinux.com is much cleaner and makes the user that is following it breath a little.
 
Old 09-08-2004, 06:05 PM   #19
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
If you don't enable the High Memory Support in your kernel then it won't use more then 896MB. Not a big deal, but if you *really* want that last 100+MB of RAM to be used then you'll need to enable the option in the config file and recompile the kernel.

As for the question of why the kernel is using so much memory in the first place: it's designed that way. The kernel tries to use up as much RAM as it can by caching things that might get called. If a program needs more RAM, it will get it, even if it looks like there's none left.
 
Old 09-08-2004, 07:06 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Quote:
Originally posted by minm
1036600
BTW according to the output of free the kernel does see the entire 1GB of memory.
 
Old 09-08-2004, 08:45 PM   #21
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
alright
thanks all

so i guess i don't have to update
 
Old 09-08-2004, 09:52 PM   #22
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Linux will use all the ram it can find. The linux attitude is it's there, you paid for it, why waste it. Cache it, buffer it, put it in a stew. Whatever.

This is what the kernel config has to say about compiling the kernel for various memory sizes - linux has the selection of 1GB (off), 4GB and 64GB...

----------------------------------------------------------------------------------------------
Linux can use up to 64 Gigabytes of physical memory on x86 systems.
However, the address space of 32-bit x86 processors is only 4
Gigabytes large. That means that, if you have a large amount of
physical memory, not all of it can be "permanently mapped" by the
kernel. The physical memory that's not permanently mapped is called
"high memory".

If you are compiling a kernel which will never run on a machine with
more than 1 Gigabyte total physical RAM, answer "off" here (default
choice and suitable for most users). This will result in a "3GB/1GB"
split: 3GB are mapped so that each process sees a 3GB virtual memory
space and the remaining part of the 4GB virtual memory space is used
by the kernel to permanently map as much physical memory as
possible.

If the machine has between 1 and 4 Gigabytes physical RAM, then
answer "4GB" here.

If more than 4 Gigabytes is used then answer "64GB" here. This
selection turns Intel PAE (Physical Address Extension) mode on.
PAE implements 3-level paging on IA32 processors. PAE is fully
supported by Linux, PAE mode is implemented on all recent Intel
processors (Pentium Pro and better). NOTE: If you say "64GB" here,
then the kernel will not boot on CPUs that don't support PAE!

The actual amount of total physical memory will either be
auto detected or can be forced by using a kernel command line option
such as "mem=256M". (Try "man bootparam" or see the documentation of
your boot loader (lilo or loadlin) about how to pass options to the
kernel at boot time.)

If unsure, say "off".
-----------------------------------------------------------------------------------------------------
 
  


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
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 01:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 02:01 PM
swap being eaten? minm Linux - Newbie 10 10-24-2004 11:29 PM
Linux is using all my RAM QCompson Linux - Newbie 15 12-17-2003 10:14 PM
Red Hat 7.2 Memory Eaten Up ayhopkins Linux - Newbie 19 04-24-2002 05:43 PM


All times are GMT -5. The time now is 02:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration