Thanks a lot for your replies!
but i actually want to know the applications that can use the page size of 4MB.
And what will be the difference if 4MB page size is used on 32bit machine and 64bit machine?
-Adheer
On 9/24/06, Nish Aravamudan <nish.aravamudan@xxxxxxxxx> wrote:
On 9/23/06, Rik van Riel <riel@xxxxxxxxxxx> wrote:
> borasahin@xxxxxxxxxxx wrote:
> >> On x86 architecture generally 4kb and 4mb page size is supported..2mb with
> >> PAE enabled..
> >>
> >> I want to know that in which scenarios the pages with size 4mb and 2mb are
> >> used?
> >
> > e.g. for kernel code and data.
>
> Also for hugetlbfs, which is used for shared memory segments
> by some databases. Possibly other software too.
There is also libhugetlbfs, which makes it possible to remap a
programs text/data/BSS segments into huge pages, and to back malloc by
huge pages.
http://sourceforge.net/projects/libhugetlbfs
Thanks,
Nish