Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Robert M. Riches Jr." <rm.riches@verizon.net>
To: axp-list@redhat.com
Subject: Re: Linux Super Page presentation in USA
Date: Wed, 18 Sep 2002 16:54:37 -0700	[thread overview]
Message-ID: <200209182354.g8INsbG22713@evrtwa1-ar5-4-65-011-025.evrtwa1.dsl-verizon.net> (raw)

> From: Uncle George <gatgul@voicenet.com>
> Date: Wed, 18 Sep 2002 19:37:28 -0400
>
> Ok, so where & when does the majic come about? It would seem that a 42%
> savings can always be achieved if one uses (multiples of ) 64k . AND  I
> would presume that the bean counters have already found this out.

Based on what has been discussed here on the list, along with
my 17 years of experience in processor design, it appears the
benefit is through a reduction in TLB misses and therefore a
reduction in the CPU time spent/wasted walking the page table
to update the TLB.

When making random-like access to a huge amount of data, many
of the memory accesses will be to pages that haven't been
accessed recently, which means that page table entry won't
be in the TLB.  This means the processor has to stop, walk the
page tables, update the TLB with the needed page table entry,
and then retry the instruction.  (Historically, some processors
have done the page walk in microcode, while a few have done it
with hardware finite state machines.  I don't know how the
Alpha implementations have done it--perhaps in PAL code.)  If
you're using a huge data array and accessing it semi-randomly,
many if not most data accesses will miss the TLB, which can
slow down execution by several times, depending on the specifics
of the processor implementation.

By making each TLB entry count for 8 pages instead of 1, the
probability of getting a TLB hit (rather than a TLB miss) for
each data access does up.  Thus, the amount of time spent or
wasted in the page table walker will be reduced, which will
speed up the execution of the intended program.

Did that make sense, or was the above rambling unclear?  :-)

For a much more organized explanation of things related to
TLBs and such, a good reference is pages 443-453 of the 2nd
edition of Hennessy & Patterson's "Computer Architecture, a
Quantative Approach".

Robert Riches
rm.riches@verizon.net




             reply	other threads:[~2002-09-18 23:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-18 23:54 Robert M. Riches Jr. [this message]
2002-09-19  9:38 ` Linux Super Page presentation in USA Uncle George
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  7:30 Eugene Chu
2002-09-19  9:20 ` Naohiko Shimizu
2002-09-19 14:19 ` George France
2002-09-19 14:36 ` George France
2002-09-19  1:35 Davies, Huw
2002-09-18 21:26 Donsbach, Jeff
2002-09-18 21:39 ` Falk Hueffner
2002-09-18 23:37   ` Uncle George
2002-09-18 23:48     ` Falk Hueffner
2002-09-18  6:57 Eugene Chu
2002-09-18  7:30 ` Naohiko Shimizu
2002-09-18 14:27 ` George France
2002-09-18 21:01   ` Uncle George
2002-09-18  3:48 Naohiko Shimizu
2002-09-18  4:00 ` George France
2002-09-18  4:08   ` Ted Goodridge, Jr
2002-09-18  4:47     ` George France
read-only archive

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