Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Subject: Re: gcc scheduler cache latency timings on Alpha.
Date: 20 Jun 2003 12:50:26 +0200	[thread overview]
Message-ID: <87isr1rpjh.fsf@student.uni-tuebingen.de> (raw)
In-Reply-To: slrn4bf4k4n.pbf.taviso@norge.freeshell.org

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


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

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