public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: larger default page sizes...
@ 2008-03-25 23:47 J.C. Pizarro
  2008-03-26 15:57 ` H. Peter Anvin
  0 siblings, 1 reply; 36+ messages in thread
From: J.C. Pizarro @ 2008-03-25 23:47 UTC (permalink / raw)
  To: David Miller, LKML

On Tue, 25 Mar 2008 16:22:44 -0700 (PDT), David Miller wrote:
> > On Mon, 24 Mar 2008, David Miller wrote:
> >
> > > There are ways to get large pages into the process address space for
> > > compute bound tasks, without suffering the well known negative side
> > > effects of using larger pages for everything.
> >
> > These hacks have limitations. F.e. they do not deal with I/O and
> > require application changes.
>
> Transparent automatic hugepages are definitely doable, I don't know
> why you think this requires application changes.
>
> People want these larger pages for HPC apps.

But there is a general problem of larger pages in systems that
don't support them natively (in hardware) depending in how it's
implemented the memory manager in the kernel:

   "Doubling the soft page size implies
      halfing the TLB soft-entries in the old hardware".

   "x4 soft page size=> 1/4 TLB soft-entries, ... and so on."

Assuming one soft double-sized page represents 2 real-sized pages,
one replacing of one soft double-sized page implies replacing
2 TLB's entries containing the 2 real-sized pages.

The TLB is very small, its entries are around 24 entries aprox. in
some processors!.

Assuming soft 64 KiB page using real 4 KiB pages => 1/16 TLB soft-entries.
If the TLB has 24 entries then calculating 24/16=1.5 soft-entries,
   the TLB will have only 1 soft-entry for soft 64 KiB pages!!! Weird!!!

The normal soft sizes are 8 KiB or 16 KiB for non-native processors, not more.
  So, the TLB of 24 entries of real 4 KiB will have 12 or 6
soft-entries respect.

^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: [11/14] vcompound: Fallbacks for order 1 stack allocations on IA64 and x86
@ 2008-03-21 17:40 Christoph Lameter
  2008-03-21 21:57 ` David Miller
  0 siblings, 1 reply; 36+ messages in thread
From: Christoph Lameter @ 2008-03-21 17:40 UTC (permalink / raw)
  To: David Miller; +Cc: linux-mm, linux-kernel

On Fri, 21 Mar 2008, David Miller wrote:

> I would be very careful with this especially on IA64.
> 
> If the TLB miss or other low-level trap handler depends upon being
> able to dereference thread info, task struct, or kernel stack stuff
> without causing a fault outside of the linear PAGE_OFFSET area, this
> patch will cause problems.

Hmmm. Does not sound good for arches that cannot handle TLB misses in 
hardware. I wonder how arch specific this is? Last time around I was told 
that some arches already virtually map their stacks.


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

end of thread, other threads:[~2008-03-27  3:00 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 23:47 larger default page sizes J.C. Pizarro
2008-03-26 15:57 ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2008-03-21 17:40 [11/14] vcompound: Fallbacks for order 1 stack allocations on IA64 and x86 Christoph Lameter
2008-03-21 21:57 ` David Miller
2008-03-24 18:27   ` Christoph Lameter
2008-03-24 20:37     ` larger default page sizes David Miller
2008-03-24 21:05       ` Christoph Lameter
2008-03-24 21:43         ` David Miller
2008-03-25 17:48           ` Christoph Lameter
2008-03-25 23:22             ` David Miller
2008-03-25 23:41               ` Peter Chubb
2008-03-25 23:49                 ` David Miller
2008-03-26  0:25                   ` Peter Chubb
2008-03-26  0:31                     ` David Miller
2008-03-26  0:34                 ` David Mosberger-Tang
2008-03-26  0:39                   ` David Miller
2008-03-26  0:57                   ` Peter Chubb
2008-03-26  4:16                     ` John Marvin
2008-03-26  4:36                       ` David Miller
2008-03-24 21:25       ` Luck, Tony
2008-03-24 21:46         ` David Miller
2008-03-25  3:29       ` Paul Mackerras
2008-03-25  4:15         ` David Miller
2008-03-25 11:50           ` Paul Mackerras
2008-03-25 23:32             ` David Miller
2008-03-25 23:49               ` Luck, Tony
2008-03-26  0:16                 ` David Miller
2008-03-26 15:54                 ` Nish Aravamudan
2008-03-26 17:05                   ` Luck, Tony
2008-03-26 18:54                     ` Mel Gorman
2008-03-25 12:05         ` Andi Kleen
2008-03-25 21:27           ` Paul Mackerras
2008-03-26  5:24           ` Paul Mackerras
2008-03-26 15:59             ` Linus Torvalds
2008-03-27  1:08               ` Paul Mackerras
2008-03-26 17:56             ` Christoph Lameter
2008-03-26 23:21               ` David Miller
2008-03-27  3:00               ` Paul Mackerras
2008-03-25 18:27         ` Dave Hansen

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