From: mccalpin@gmp246.austin.ibm.com (McCalpin)
Subject: Re: Historical Question on Alpha 21064
Date: 24 May 2001 20:04:14 GMT [thread overview]
Message-ID: <9ejpfu$l02$1@ausnews.austin.ibm.com> (raw)
In-Reply-To: 3B0D56B1.A91BE4A1@sgi.com
In article <3B0D56B1.A91BE4A1@sgi.com>, Eric C. Fromm <efromm@sgi.com> wrote:
>McCalpin wrote:
>>
>> The Alpha 21064 (EV4) processor has a write-through,
>> non-allocating Data cache, supported by four line-sized
>> write buffers.
>>
>> So if a store misses in the cache, the line is not read
>> into the cache, and the stores are gathered into the
>> store buffer.
>>
>> There are two obvious ways to maintain coherency here:
>> 1. allocate the line into the store buffer and update
>> the single master copy there, or
>> 2. merge the contents of the store buffer with memory
>> when it comes time to flush the store buffer.
>>
>> The latter approach requires partial line writes to
>> memory in cases where the buffer is flushed without
>> being completely filled. I consider partial line writes
>> to memory to be exceedingly ugly.
>
>I can't answer with certainty. Unfortunately, I tossed my
>EV4 docs recently. But I'm fairly certain partial writes
>was the solution. On the other hand, what is it about
>partial writes that seems so ugly in this context?
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!).
2. Unmerged data is really ugly in MP machines. 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. You probably can't
give the partial data to the other process, since its
data cache does not support byte enables. 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. 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.
There are a couple of extra possibilities, I suppose....
The processor executing the load could get data from both
memory and the processor that had it dirty, and could do
the merge itself. Or the source processor could allocate
the data, do the merge, and service the load.
All of these approaches are exceedingly complex compared
to the simple approach of loading the data from memory
into the store buffer and maintaining the master copy
of all of the bytes in the line in the store buffer.
--
John D. McCalpin, Ph.D. mccalpin@austin.ibm.com
Senior Technical Staff Member IBM POWER Microprocessor Development
"I am willing to make mistakes as long as
someone else is willing to learn from them."
next prev parent reply other threads:[~2001-05-24 20:04 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 [this message]
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
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