Re: PageSize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 05, 2002 at 01:18:59PM -0600, David Stroupe wrote:
>> What is the standard Linux memory page size?

On Tue, Mar 05, 2002 at 04:27:18PM -0300, Rodrigo Barbosa wrote:
> Depends on the architecture.
> 
> On IA32, it's 4M
> on IA64, it can be as large as 64M.

Not quite.

IA32 supports several page sizes:

(1) 4KB		-- normally
(2) 4MB		-- PSE under various circumstances
(3) 2MB		-- in combination with PAE, some options will use this size

Linux seems to ignore 2MB pages, use 4MB pages to map out the kernel
when possible, and always uses 4KB for userspace.

Intel vol. 3, "System Programming" documents which option combinations
lead to which pagesize in a table somewhere in the VM chapter.

IA64 supports a number of page sizes ranging from 4KB to 256MB. In fact,
a 256MB page is used to map low memory during early boot in Linux.

For userspace applications Linux restricts the page sizes to the range
between 4KB and 64KB, and uses this as a compile-time option only.

Intel also has manuals for IA64 similar in name and nature to the IA32
with PDF freely available at developer.intel.com.


Cheers,
Bill
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux