Re: Changing the base page size !

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

 



sudhnesh adapawar wrote:
Hey all !
Can anyone tell me how change the base page size from 4Kb to 2Mb or 4Mb ? I am not able to find CONFIG_X86_PAE or any PSE option while configuring Linux 2.6.18 using make menuconfig !

You cannot, and you probably don't want to.

For one, many applications expect to be able to mprotect()
areas smaller than 2MB, which would fail if you used large
pages everywhere.

Secondly, you would have to zero a 2MB page for every
anonymous page fault.

Thirdly, there is no current support for swapping or demand
paging large pages.

Also, large pages cannot be backed by on-disk files.  Not
that you would want to, any file write dirties a whole page
and would result in 2MB disk IOs.  Imagine having to write
2MB to disk for every database change, 2MB at every fsync...

They're called "huge pages" because they're TOO BIG for many
common uses...

--
Who do you trust?
The people with all the right answers?
Or the people with the right questions?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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