The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
built-in hex editor? Loriel Shell Programming and Scripting 7 12-02-2008 03:56 PM
Which GCC Built My Kernel? deckard Gentoo 5 08-07-2007 10:37 AM
ksh built-in function solea Shell Programming and Scripting 1 09-23-2004 08:25 AM
BUILT-IN command scripts JSP Shell Programming and Scripting 2 03-11-2002 09:52 AM
awk built in variables Reza Nazarian UNIX for Dummies Questions & Answers 4 02-18-2002 01:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-17-2007
kermit's Avatar
kermit kermit is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 24
Built in ram limit for 64 bit

Hey all,

I have been thinking about getting a new computer, and the motherboard I am looking at is capable of holding up to 8 Gb of ram. Now it appears as though for 32 bit linux, in order to use more than 4 Gb of ram, you had to enable a certain option in the kernel, but if I remember correctly, there was also a performance hit for doing so. Of course I will be going 64 bit, and so I am wondering if there will be any problems with > 4 Gb of ram? Or will Linux take care of everything in 64 bit mode?
  #2 (permalink)  
Old 05-18-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
I don't have any experience with x86_64 cpu's and I have never used more than 2 GB Ram on any pc. But after reviewing the memory management sections of my copy "Understanding the Linux Kernel", I may have a handle on this. The Linux kernel needs to use a CPU feature called PAE to access more than 4GB of memory with a 32 bit kernel. This pushes the paging system into a 3 level model (instead of a 2 level model) resulting in the performance hit you mentioned. A 64 bit kernel needs a 3 level model up to kernel version 2.6.10. But this imposed constraints on how memory could be allocated. Starting with version 2.6.11, a four level paging model is used with x86_64 cpu's. It is not clear from the book if it would be possible to not use PAE on a x86_64 with 4 GB or less of memory. But reading between the lines a bit, I gather that the answer is "no". Support for non-PAE kernels seems to be intended for very old cpu's and they won't do 64 bit. Besides large RAM configurations, PAE is required to use the new NX flag which marks some memory regions as non-executable. This closes a security problem. Linux 2.6.11 supports the NX feature.

So a 64-bit kernel may have less decisions for you to make thus "taking care of things".
  #3 (permalink)  
Old 05-18-2007
kermit's Avatar
kermit kermit is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 24
Ok, thanks - this confirms my suspicions. When poking around in my kernel config (kernel 2.6.20) I could not seem to find any option for large memory support anyway, whereas I do remember seeing it a while back, so that must have been a 2.6.10 or earlier kernel as you mentioned.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0