Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Subject: Re: Historical Question on Alpha 21064
Date: 25 May 2001 08:57:54 GMT	[thread overview]
Message-ID: <9el6qi$2gj$1@news.tuwien.ac.at> (raw)
In-Reply-To: 9ejpfu$l02$1@ausnews.austin.ibm.com

In article <9ejpfu$l02$1@ausnews.austin.ibm.com>,
 mccalpin@gmp246.austin.ibm.com (McCalpin) writes:
>Partial writes are ugly for many reasons:
>
>1. They may require lots of partial writes if (as is most
>   reasonable) the merge function in the memory can only
>   write contiguous fields.
>   For example, a 128 Byte store buffer that has every
>   other byte written either needs the memory controller
>   merge function to support byte masks (yechh!) or it
>   needs to make 64 partial writes (double yechh!).

Well, the 21064 stores at least 4 bytes at a time (with stl), and it
only has 4 write buffers, so in this case it's not that bad.

Also, how often do such cases happen?  Maybe the programmer or the
compiler could do write allocation in software in such cases.

Having a write-through data cache in the first place is a much bigger
performance problem IMO.

>2. Unmerged data is really ugly in MP machines.

Was the 21064 used in (any kind of) shared-memory MP machine?

>  If a 
>   store buffer is partially filled and generates a snoop
>   hit for another processor's load, you probably need 
>   to do the partial writes back to memory, merge the data
>   there, and then satisfy the load from memory.  This 
>   makes interventions really slow.

Probably, but how often does this happen?

>  You probably can't
>   give the partial data to the other process, since its
>   data cache does not support byte enables.

It has to support partial writes at least for the stores from its own
CPU.

>  You could
>   (in theory) transfer the data with the byte enables
>   to the other processor's store buffer, but this is also
>   ugly, since it would likely evict a real store that was
>   trying to gather there.

Only if the store buffer is already full; if that happens a lot, maybe
its size should be increased (or better, use a write-back cache to
eliminate a large number of stores).

>  This would also be a bad idea
>   if the load was due to an Icache miss, since the Icache
>   generally has to take the data in a shared state.

One processor writing into code currently being used by another
processor, with the store and the icache miss overlapping by chance?
How often does this happen?  Also, the Alpha architecture (as most
others) requires that software keep the Icache consistent on stores
(with "call_pal imb"), so hardware can ignore this case.  On the 21064
this PAL-call is quite expensive (IIRC it flushes the whole I-cache in
some way), it happens much more frequently than the exceptional case
you mentioned, and it still is not known as a big performance problem.

Followups to comp.arch.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html


  parent reply	other threads:[~2001-05-25  8:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-24 16:10 Historical Question on Alpha 21064 McCalpin
2001-05-24 18:40 ` David desJardins
2001-05-24 18:45 ` Eric C. Fromm
2001-05-24 20:04   ` McCalpin
2001-05-24 20:36     ` David desJardins
2001-05-24 23:06       ` McCalpin
2001-05-24 23:54         ` David desJardins
2001-05-25 23:11           ` Jay R. Ashworth
2001-05-28 14:44           ` John McCalpin
2001-05-28  5:03             ` Ben Franchuk
2001-05-29  7:00               ` jmfbahciv
2001-06-01 12:12               ` Carl Nelson
2001-05-29 16:41                 ` Ben Franchuk
2001-06-01 14:26                 ` Robert Deininger
2001-06-04 18:51                   ` Compaq
2001-06-05 16:01                     ` Maciej W. Rozycki
2001-06-05 22:59                       ` Robert Deininger
2001-05-29  8:39             ` Jan Vorbrueggen
2001-05-29  8:45           ` Jan Vorbrueggen
2001-05-29 17:36             ` David desJardins
2001-05-25  8:57     ` Anton Ertl [this message]
2001-05-26 11:25     ` Jonathan Thornburg
2001-05-26 20:29       ` Terje Mathisen
2001-05-29 20:01       ` Eric C. Fromm
2001-05-24 21:02 ` Paul DeMone
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