public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Is there anyway to use 4M pages on x86 linux in user level?
@ 2002-01-18 21:10 DervishD
  2002-01-18 21:14 ` Brian Gerst
  2002-01-18 21:37 ` Richard B. Johnson
  0 siblings, 2 replies; 9+ messages in thread
From: DervishD @ 2002-01-18 21:10 UTC (permalink / raw)
  To: bgerst, raul; +Cc: linux-kernel, yinlei_yu

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

    Hi Brian :)

>The large page size is 4MB, except in PAE mode where they are 2MB. 
>Normal pages are always 4KB.  Noting in the GDT affects the page
>size.

    The entries in the GDT, do not set the page size for that
descriptor? I'm certainly rusted on the i386 O:)))

    Raúl

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Is there anyway to use 4M pages on x86 linux in user level?
@ 2002-01-18 23:18 DervishD
  0 siblings, 0 replies; 9+ messages in thread
From: DervishD @ 2002-01-18 23:18 UTC (permalink / raw)
  To: bgerst, raul; +Cc: linux-kernel, yinlei_yu

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

    Hello Brian :)

>>     The entries in the GDT, do not set the page size for that
>> descriptor? I'm certainly rusted on the i386 O:)))
>No, there is a bit in the page directory that determines if the entry
>points to a page table (with 4KB pages) or to a 4MB page.  The GDT is
>only used for segmentation, which is totally seperate from paging.

    That was my confusion: I forgot that the i386 does segmentation
AND paging. Thanks for the help :) I've taking a look at a book that
I had gathering dust (maybe 8 years...), by Douglas V.Hall. I must
take a really *deep* read into it and other i386 documentation before
getting in this kind of conversations O:)). Thanks again for your help.

    Raúl

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Is there anyway to use 4M pages on x86 linux in user level?
@ 2002-01-18 12:31 DervishD
  2002-01-18 13:46 ` Brian Gerst
  0 siblings, 1 reply; 9+ messages in thread
From: DervishD @ 2002-01-18 12:31 UTC (permalink / raw)
  To: linux-kernel, yinlei_yu

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

    Hi Yinlei :)

>Since x86 architecutre has a 4M page feature

    I may certainly be wrong but... is not 4k OR 16M the page size on
x86 arch? I didn't know about 4M page. Could you send me the GTD
settings for that? (Just curiosity :)))

    Raúl

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Is there anyway to use 4M pages on x86 linux in user level?
@ 2002-01-17 17:18 Yinlei Yu
  2002-01-17 17:48 ` Rik van Riel
  2002-01-18  7:23 ` Jeremy Jackson
  0 siblings, 2 replies; 9+ messages in thread
From: Yinlei Yu @ 2002-01-17 17:18 UTC (permalink / raw)
  To: linux-kernel

Hi,

I am working on a project that keep accessing lots of memory randomly(say 
500MB-1.5GB) and we do have such amount of memory installed so there's 
almost no page faults while running the entire program. Since x86 
architecutre has a 4M page feature, is it possible to make use of these big 
pages instead of 4K pages in my program (a user-level application) so I can 
expect much fewer TLB misses due to the reduced number of TLB entries? 
Thanks very much!






_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-18 23:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-18 21:10 Is there anyway to use 4M pages on x86 linux in user level? DervishD
2002-01-18 21:14 ` Brian Gerst
2002-01-18 21:37 ` Richard B. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2002-01-18 23:18 DervishD
2002-01-18 12:31 DervishD
2002-01-18 13:46 ` Brian Gerst
2002-01-17 17:18 Yinlei Yu
2002-01-17 17:48 ` Rik van Riel
2002-01-18  7:23 ` Jeremy Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox