From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114669,591ad700381e277b X-Google-Attributes: gid114669,public X-Google-Thread: 1164f8,591ad700381e277b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,591ad700381e277b X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-05-24 13:31:12 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!znr.news.ans.net!news.chips.ibm.com!newsfeed.btv.ibm.com!hanover.torolab.ibm.com!tornews.torolab.ibm.com!ausnews.austin.ibm.com!not-for-mail From: mccalpin@gmp246.austin.ibm.com (McCalpin) Newsgroups: comp.arch,comp.sys.super,comp.sys.dec Subject: Re: Historical Question on Alpha 21064 Date: 24 May 2001 20:04:14 GMT Organization: IBM, Austin, Tx. Message-ID: <9ejpfu$l02$1@ausnews.austin.ibm.com> References: <9ejbp0$iom$1@ausnews.austin.ibm.com> <3B0D56B1.A91BE4A1@sgi.com> Reply-To: mccalpin@austin.ibm.com NNTP-Posting-Host: gmp246.austin.ibm.com Xref: archiver1.google.com comp.arch:10688 comp.sys.super:1622 comp.sys.dec:4077 In article <3B0D56B1.A91BE4A1@sgi.com>, Eric C. Fromm 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."