Re: when is 4MB page size used?

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

 



On 9/24/06, adheer chandravanshi <adheerchandravanshi@xxxxxxxxx> wrote:
Also I want to know that how does Linux operates using 4mb pages?

- We have an advantage of using 4mb pages  i.e it increases the TLB coverage
area thus TLB misses are reduced.

In the Processors, TLB for 4 MB pages is separate from the TLB of
normal 4K pages. So this also removes interference with the 4K page
TLBs.

-Also page table hierarchy is reduced causing less memory overhead.

Are there any other advantages of using 4mb pages? What are the
disadvantages of using 4mb pages?

-Adheer

Bhanu.


On 9/24/06, adheer chandravanshi <adheerchandravanshi@xxxxxxxxx> wrote:
>
> 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
> >
>
>




--
I look to the future because that's where I'm going to spend the rest
of my life.

--
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