NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Compiling the Linux Kernel for More than 1GB of RAM
Topic:GNU/Linux   Date: 2004-10-23
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

Agatha recently purchased another stick of 512MB RAM. It turns out that by default you need to change the kernel for it to use more than 1GB of RAM. Actually, the cutoff is technically at 960MB. Here is the memory info with 1.5GB of RAM installed, but with high memory support disabled:

 
usr-1@srv-1 proc $ cat /proc/meminfo
total:    used:    free:  shared: buffers:  cached:
Mem:  926294016 249950208 676343808        0 12587008 137678848
Swap:        0        0        0
MemTotal:       904584 kB
MemFree:        660492 kB
MemShared:           0 kB
Buffers:         12292 kB
Cached:         134452 kB
SwapCached:          0 kB
Active:          96724 kB
Inactive:       118636 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       904584 kB
LowFree:        660492 kB
SwapTotal:           0 kB
SwapFree:            0 kB
usr-1@srv-1 proc $ 

The options you need to set in the 2.4 kernel are:

CONFIG_HIGHMEM4G=y
CONFIG_HIGHMEM=y

After a reboot, the memory now looks like this:

usr-1@srv-1 usr-1 $ cat /proc/meminfo
total:    used:    free:  shared: buffers:  cached:
Mem:  1588539392 267857920 1320681472        0 14606336 181346304
Swap:        0        0        0
MemTotal:      1551308 kB
MemFree:       1289728 kB
MemShared:           0 kB
Buffers:         14264 kB
Cached:         177096 kB
SwapCached:          0 kB
Active:          84220 kB
Inactive:       144420 kB
HighTotal:      655344 kB
HighFree:       436384 kB
LowTotal:       895964 kB
LowFree:        853344 kB
SwapTotal:           0 kB
SwapFree:            0 kB
usr-1@srv-1 usr-1 $ 


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2011 NetAdminTools.com