Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Linux Super Page presentation in USA
@ 2002-09-18  6:57 Eugene Chu
  2002-09-18  7:30 ` Naohiko Shimizu
  2002-09-18 14:27 ` George France
  0 siblings, 2 replies; 19+ messages in thread
From: Eugene Chu @ 2002-09-18  6:57 UTC (permalink / raw)
  To: axp-list

George France wrote:

>It activates the super page feature of Alpha processor.
>(It was known as the page granularity hint support patch, but
>the super page is lucid for the people. )
>
>When activated, the kernel will run up to 5 times faster
>on a large matrix transpose benchmark. The performance
>advantage is from fewer page table entries and thus fewer
>translation buffer misses.

Are these any particular matrix transpose routines?  That was one of
the holy grails in images processing:  an efficient corner-turn
implementation.  The other was a fast random indexed addressing of
arrays.  They were always very good at incurring TLB misses.

Also, I'm guessing there is no such feature on a Pentium or Athlon
processor?

eyc




^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Linux Super Page presentation in USA
@ 2002-09-19  7:30 Eugene Chu
  2002-09-19  9:20 ` Naohiko Shimizu
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Eugene Chu @ 2002-09-19  7:30 UTC (permalink / raw)
  To: axp-list

Thank you all for the information on Super Pages.  The patches I found
appear to be for kernel 2.4.19, and all of my systems are at 2.4.9.
Will the patch still work, or should I upgrade to 2.4.19 first?  If I
need to upgrade, where can I find the necessary files?  The RedHat
download site seems a little thin on Alpha downloads.

eyc




^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Linux Super Page presentation in USA
@ 2002-09-19  1:35 Davies, Huw
  0 siblings, 0 replies; 19+ messages in thread
From: Davies, Huw @ 2002-09-19  1:35 UTC (permalink / raw)
  To: axp-list

> From: Robert M. Riches Jr. [mailto:rm.riches@verizon.net]

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

This is one of those "must read" books for anyone who has
an interest in how computers really work.

Huw Davies
BUSINESS CRITICAL SERVICES
Compaq, part of the new HP
231 Normanby Road, South Melbourne, 3205

E-mail: Huw.Davies@hp.com

* Personal opinion only *




^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Linux Super Page presentation in USA
@ 2002-09-18 23:54 Robert M. Riches Jr.
  2002-09-19  9:38 ` Uncle George
  0 siblings, 1 reply; 19+ messages in thread
From: Robert M. Riches Jr. @ 2002-09-18 23:54 UTC (permalink / raw)
  To: axp-list

> 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




^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Linux Super Page presentation in USA
@ 2002-09-18 21:26 Donsbach, Jeff
  2002-09-18 21:39 ` Falk Hueffner
  0 siblings, 1 reply; 19+ messages in thread
From: Donsbach, Jeff @ 2002-09-18 21:26 UTC (permalink / raw)
  To: axp-list

Some applications make assumptions about page size and hard code things instead of using programatic methods of determining it. Could lead to strange behavior if the page size is different from what the app is expecting.


> -----Original Message-----
> From: Uncle George [mailto:gatgul@voicenet.com]
> Sent: Wednesday, September 18, 2002 5:02 PM
> To: axp-list@redhat.com
> Subject: Re: Linux Super Page presentation in USA
> 
> 
> is there a downside to changing page size?
> 
> /gat
> 




^ permalink raw reply	[flat|nested] 19+ messages in thread
* Linux Super Page presentation in USA
@ 2002-09-18  3:48 Naohiko Shimizu
  2002-09-18  4:00 ` George France
  0 siblings, 1 reply; 19+ messages in thread
From: Naohiko Shimizu @ 2002-09-18  3:48 UTC (permalink / raw)
  To: axp-list, debian-alpha, sparclinux

Hi, all.

I will visit US this week, and have a presentation about the
Linux Super Page at 22 Sep. MEDEA workshop, Charlottesville,Virginia.

http://moss.csc.ncsu.edu/pact02/

I want to meet anyone who is interesetd in 
the superpage or wants to discuss directly with me.

I will leave Charlottesville at 25th morning.

Naohiko Shimizu

http://shimizu-lab.dt.u-tokai.ac.jp/




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

end of thread, other threads:[~2002-09-19 14:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18  6:57 Linux Super Page presentation in USA Eugene Chu
2002-09-18  7:30 ` Naohiko Shimizu
2002-09-18 14:27 ` George France
2002-09-18 21:01   ` 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 23:54 Robert M. Riches Jr.
2002-09-19  9:38 ` Uncle George
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  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

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