* gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 0:09 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-20 0:09 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: Tavis Ormandy <taviso@sdf.lonestar.org>
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.
so i snarfed the source and investigated where it gets these figures from and
how it uses them...this is what i found:
* gcc has 9 values hardcoded
L1 and L2 (and a rogue value for L3) for ev4.
L1, L2 and L3 for ev5 and ev6.
an estimate of `main` memory latency.
* if you dont specify a memory latency, it uses its hardcoded value
for L1 on your revision.
* if you specify a bogus latency, it assumes 3 cycles :)
okay, these are the figures it has (this is gcc 3.2.3 btw)
static int const cache_latency[][4] =
{
{ 3, 30, -1 }, /* <-- ev4 */
{ 2, 12, 38 }, /* <-- ev5 */
{ 3, 12, 30 }, /* <-- ev6 */
}
/* ... */
else if (! strcmp (alpha_mlat_string, "main"))
lat = 150;
the comments say that the authors machine's main memory has latency of 370ns,
so if i understand this..
(((150/370)*10^9)/10^6) == 405Mhz
so assuming this guy made the timings for the ev5 Dcache latency as well,
using the same machine..
((10^9/405Mhz)*2) == 4.938ns latency of his Dcache (which sounds
about right)
(please correct me if im way off here, btw)
so i benchmarked mine, and my Dcache has a latency of 3.799 nanoseconds, and
my ruffian has a 533Mhz clock speed, so my
-mmemory-latency time should be
(3.799/(10^9/533Mhz)) == 2 cycles, which works (although i
seem to get better benchmarks with 3 cycles latency...).
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.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 0:09 Tavis Ormandy
2003-06-20 10:50 ` Falk Hueffner
0 siblings, 1 reply; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-20 0:09 UTC (permalink / raw)
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.
so i snarfed the source and investigated where it gets these figures
from and how it uses them...this is what i found:
* gcc has 9 values hardcoded
L1 and L2 (and a rogue value for L3) for ev4.
L1, L2 and L3 for ev5 and ev6.
an estimate of `main` memory latency.
* if you dont specify a memory latency, it uses its hardcoded value
for L1 on your revision.
* if you specify a bogus latency, it assumes 3 cycles :)
okay, these are the figures it has (this is gcc 3.2.3 btw)
static int const cache_latency[][4] =
{
{ 3, 30, -1 }, /* <-- ev4 */
{ 2, 12, 38 }, /* <-- ev5 */
{ 3, 12, 30 }, /* <-- ev6 */
}
/* ... */
else if (! strcmp (alpha_mlat_string, "main"))
lat = 150;
the comments say that the authors machine's main memory has latency of
370ns, so if i understand this..
(((150/370)*10^9)/10^6) == 405Mhz
so assuming this guy made the timings for the ev5 Dcache latency as
well, using the same machine..
((10^9/405Mhz)*2) == 4.938ns latency of his Dcache (which sounds
about right)
(please correct me if im way off here, btw)
so i benchmarked mine, and my Dcache has a latency of 3.799
nanoseconds, and my ruffian has a 533Mhz clock speed, so my
-mmemory-latency time should be
(3.799/(10^9/533Mhz)) == 2 cycles, which works (although i
seem to get better benchmarks with 3 cycles latency...).
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.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
2003-06-20 0:09 Tavis Ormandy
@ 2003-06-20 10:50 ` Falk Hueffner
2003-06-20 13:06 ` Tavis Ormandy
0 siblings, 1 reply; 11+ messages in thread
From: Falk Hueffner @ 2003-06-20 10:50 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 12:50 Falk Hueffner
0 siblings, 0 replies; 11+ messages in thread
From: Falk Hueffner @ 2003-06-20 12:50 UTC (permalink / 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@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 12:50 Falk Hueffner
0 siblings, 0 replies; 11+ messages in thread
From: Falk Hueffner @ 2003-06-20 12:50 UTC (permalink / 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 13:06 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-20 13:06 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: "Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
Tavis Ormandy <taviso@sdf.lonestar.org>
In article <87isr1rpjh.fsf@student.uni-tuebingen.de>, Falk Hueffner wrote:
>
> "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.
>
Very interesting! Thanks!
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
-+- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
@ 2003-06-20 13:06 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-20 13:06 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: Tavis Ormandy <taviso@sdf.lonestar.org>
In article <87isr1rpjh.fsf@student.uni-tuebingen.de>, Falk Hueffner wrote:
>
> "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.
>
Very interesting! Thanks!
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gcc scheduler cache latency timings on Alpha.
2003-06-20 10:50 ` Falk Hueffner
@ 2003-06-20 13:06 ` Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-20 13:06 UTC (permalink / raw)
In article <87isr1rpjh.fsf@student.uni-tuebingen.de>, Falk Hueffner wrote:
>
> "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.
>
Very interesting! Thanks!
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* gcc scheduler cache latency timings on Alpha.
@ 2003-06-21 9:31 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-21 9:31 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: "Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
Tavis Ormandy <taviso@sdf.lonestar.org>
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.
so i snarfed the source and investigated where it gets these figures from and
how it uses them...this is what i found:
* gcc has 9 values hardcoded
L1 and L2 (and a rogue value for L3) for ev4.
L1, L2 and L3 for ev5 and ev6.
an estimate of `main` memory latency.
* if you dont specify a memory latency, it uses its hardcoded value
for L1 on your revision.
* if you specify a bogus latency, it assumes 3 cycles :)
okay, these are the figures it has (this is gcc 3.2.3 btw)
static int const cache_latency[][4] =
{
{ 3, 30, -1 }, /* <-- ev4 */
{ 2, 12, 38 }, /* <-- ev5 */
{ 3, 12, 30 }, /* <-- ev6 */
}
/* ... */
else if (! strcmp (alpha_mlat_string, "main"))
lat = 150;
the comments say that the authors machine's main memory has latency of 370ns,
so if i understand this..
(((150/370)*10^9)/10^6) == 405Mhz
so assuming this guy made the timings for the ev5 Dcache latency as well,
using the same machine..
((10^9/405Mhz)*2) == 4.938ns latency of his Dcache (which sounds
about right)
(please correct me if im way off here, btw)
so i benchmarked mine, and my Dcache has a latency of 3.799 nanoseconds, and
my ruffian has a 533Mhz clock speed, so my
-mmemory-latency time should be
(3.799/(10^9/533Mhz)) == 2 cycles, which works (although i
seem to get better benchmarks with 3 cycles latency...).
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.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
-+- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* gcc scheduler cache latency timings on Alpha.
@ 2003-06-23 7:00 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-23 7:00 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: "Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
"Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
Tavis Ormandy <taviso@sdf.lonestar.org>
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.
so i snarfed the source and investigated where it gets these figures from and
how it uses them...this is what i found:
* gcc has 9 values hardcoded
L1 and L2 (and a rogue value for L3) for ev4.
L1, L2 and L3 for ev5 and ev6.
an estimate of `main` memory latency.
* if you dont specify a memory latency, it uses its hardcoded value
for L1 on your revision.
* if you specify a bogus latency, it assumes 3 cycles :)
okay, these are the figures it has (this is gcc 3.2.3 btw)
static int const cache_latency[][4] =
{
{ 3, 30, -1 }, /* <-- ev4 */
{ 2, 12, 38 }, /* <-- ev5 */
{ 3, 12, 30 }, /* <-- ev6 */
}
/* ... */
else if (! strcmp (alpha_mlat_string, "main"))
lat = 150;
the comments say that the authors machine's main memory has latency of 370ns,
so if i understand this..
(((150/370)*10^9)/10^6) == 405Mhz
so assuming this guy made the timings for the ev5 Dcache latency as well,
using the same machine..
((10^9/405Mhz)*2) == 4.938ns latency of his Dcache (which sounds
about right)
(please correct me if im way off here, btw)
so i benchmarked mine, and my Dcache has a latency of 3.799 nanoseconds, and
my ruffian has a 533Mhz clock speed, so my
-mmemory-latency time should be
(3.799/(10^9/533Mhz)) == 2 cycles, which works (although i
seem to get better benchmarks with 3 cycles latency...).
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.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
-+- 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.
--- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* gcc scheduler cache latency timings on Alpha.
@ 2003-06-24 3:23 Tavis Ormandy
0 siblings, 0 replies; 11+ messages in thread
From: Tavis Ormandy @ 2003-06-24 3:23 UTC (permalink / raw)
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10)
From: "Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
"Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
"Tavis Ormandy" <tavis.ormandy@shurato.darktech.org>
(CHARSET: PC-8)
(PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From:
Tavis Ormandy <taviso@sdf.lonestar.org>
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.
so i snarfed the source and investigated where it gets these figures from and
how it uses them...this is what i found:
* gcc has 9 values hardcoded
L1 and L2 (and a rogue value for L3) for ev4.
L1, L2 and L3 for ev5 and ev6.
an estimate of `main` memory latency.
* if you dont specify a memory latency, it uses its hardcoded value
for L1 on your revision.
* if you specify a bogus latency, it assumes 3 cycles :)
okay, these are the figures it has (this is gcc 3.2.3 btw)
static int const cache_latency[][4] =
{
{ 3, 30, -1 }, /* <-- ev4 */
{ 2, 12, 38 }, /* <-- ev5 */
{ 3, 12, 30 }, /* <-- ev6 */
}
/* ... */
else if (! strcmp (alpha_mlat_string, "main"))
lat = 150;
the comments say that the authors machine's main memory has latency of 370ns,
so if i understand this..
(((150/370)*10^9)/10^6) == 405Mhz
so assuming this guy made the timings for the ev5 Dcache latency as well,
using the same machine..
((10^9/405Mhz)*2) == 4.938ns latency of his Dcache (which sounds
about right)
(please correct me if im way off here, btw)
so i benchmarked mine, and my Dcache has a latency of 3.799 nanoseconds, and
my ruffian has a 533Mhz clock speed, so my
-mmemory-latency time should be
(3.799/(10^9/533Mhz)) == 2 cycles, which works (although i
seem to get better benchmarks with 3 cycles latency...).
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.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
-+- 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.
-+- 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-06-24 3:23 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 7:00 gcc scheduler cache latency timings on Alpha Tavis Ormandy
-- strict thread matches above, loose matches on Subject: below --
2003-06-24 3:23 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
2003-06-20 10:50 ` Falk Hueffner
2003-06-20 13:06 ` Tavis Ormandy
2003-06-20 0:09 Tavis Ormandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox