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: 102b75,591ad700381e277b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,591ad700381e277b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-05-25 01:58:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsrouter.chello.at!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!news.tuwien.ac.at!a0.complang.tuwien.ac.at!anton From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch,comp.sys.super,comp.sys.dec Subject: Re: Historical Question on Alpha 21064 Followup-To: comp.arch Date: 25 May 2001 08:57:54 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Sender: anton@a0.complang.tuwien.ac.at (Anton Ertl) Message-ID: <9el6qi$2gj$1@news.tuwien.ac.at> References: <9ejbp0$iom$1@ausnews.austin.ibm.com> <3B0D56B1.A91BE4A1@sgi.com> <9ejpfu$l02$1@ausnews.austin.ibm.com> NNTP-Posting-Host: a0.complang.tuwien.ac.at X-Newsreader: xrn 9.02 Xref: archiver1.google.com comp.arch:10706 comp.sys.super:1627 comp.sys.dec:4085 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