Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "Falk Hueffner" <falk.hueffner@shurato.darktech.org>
Subject: Re: gcc scheduler cache latency timings on Alpha.
Date: Sun, 20 Jun 2003 12:50:00 GMT	[thread overview]
Message-ID: <vfd2d0nt4qm572@corp.supernews.com> (raw)

(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: "Falk Hueffner" <falk.hueffner@shurato.darktech.org>

(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From: 
Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>

Tavis Ormandy <taviso@sdf.lonestar.org> writes:

> the gcc scheduler uses memory latency timings to predict optimal
> scheduling for memory references, the man page says that gcc knows
> typical timings for ev4 and ev5..thats cool, but id like specific
> timings for my machines so the scheduler can do the best job possible.
>
> [...]
>
> the value for `main` also works (well, 2 cycles out), so apply the same
> logic to the Scache, where i have a latency of 65.1 ns
>
>       (65.1/(10^9/533Mhz)) == 34.71 ...
>
> so where is this 12 cycles figure coming from? id be greatful if
> anyone can explain it.

The HRM tells:

"When idle, Scache arbitration predicts a load miss in E0. If a load actually 
does miss in E0, it is sent to the Scache immediately. If it hits, and no 
other event in the Cbox affects the operation, the requested data is 
available for use in eight cycles. Otherwise, the request takes longer 
(possibly much longer, depending on the state of the Scache and Cbox)."

So if you're lucky, it takes only 8 cycles. 12 is probably a compromise.

Not that it matters a lot, anyway. There won't usually be enough instructions 
that could be scheduled in between, so anything >8 is basically equivalent.

--
        Falk

-+- BBBS/NT v4.01 Flag-5
 + Origin: TCOB1: A slice of life on your plate (2:263/950)

--
This message posted from Shurato's Heavenly Sphere Telnet BBS 
telnet://shurato.darktech.org
for abuse issues, please contact me at shurato@shurato.darktech.org Shurato:  
Admin of SHS.

--- BBBS/NT v4.01 Flag-5
 * Origin: TCOB1: A slice of life on your plate (2:263/950)

--
This message posted from Shurato's Heavenly Sphere Telnet BBS
telnet://shurato.darktech.org
for abuse issues, please contact me at shurato@shurato.darktech.org
Shurato:  Admin of SHS.


             reply	other threads:[~2003-06-20 12:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20 12:50 Falk Hueffner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-24  3:23 gcc scheduler cache latency timings on Alpha Tavis Ormandy
2003-06-23  7:00 Tavis Ormandy
2003-06-21  9:31 Tavis Ormandy
2003-06-20 13:06 Tavis Ormandy
2003-06-20 13:06 Tavis Ormandy
2003-06-20 12:50 Falk Hueffner
2003-06-20  0:09 Tavis Ormandy
2003-06-20 10:50 ` Falk Hueffner
2003-06-20 13:06   ` Tavis Ormandy
2003-06-20  0:09 Tavis Ormandy
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