From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,df5754e791c11702 X-Google-Attributes: gid1164f8,public X-Google-Thread: f57db,df5754e791c11702 X-Google-Attributes: gidf57db,public X-Google-ArrivalTime: 1995-03-06 03:46:10 PST Path: bga.com!news.sprintlink.net!news.bluesky.net!udel!news.mathworks.com!newshost.marcam.com!zip.eecs.umich.edu!caen!crl.dec.com!crl.dec.com!nntpd.lkg.dec.com!peavax.eng.pko.dec.com!i4get.enet.dec.com!henning From: henning@i4get.enet.dec.com (John L. Henning) Newsgroups: comp.benchmarks,comp.sys.dec Subject: Re: Cache, performance, and data structures used by simulations Date: 4 MAR 95 14:01:33 Organization: Digital Equipment Corporation Message-ID: <3jaeac$ktd@peavax.eng.pko.dec.com> References: <3j0ljg$in7@agate.berkeley.edu> <3j301q$lue@larry.rice.edu> <3j5j0b$b8n@lyra.csx.cam.ac.uk> NNTP-Posting-Host: i4get.enet.dec.com Xref: bga.com comp.benchmarks:2864 comp.sys.dec:9663 In article <3j5j0b$b8n@lyra.csx.cam.ac.uk>, nmm1@cus.cam.ac.uk (Nick Maclaren) writes... >Um, yes, but there is another solution: make each array slightly >bigger than it needs to be, so that each starts on a different >cache slot. This is a good solution when you have reason to believe that you are stomping on the same cache lines with two or more different data structures. But there doesn't seem to be any particular evidence of that in this case. (I finally got through to the original poster Peter Mardahl by e-mail, and asked about the size of the arrays.) I still think the structures are the right way to go. But it was suggested that I ought to clarify that structures are particularly likely to be helpful when you are doing *random* accesses. For sequential accesses, they are much less likely to make any difference. /John Henning CSD Performance Group Digital Equipment Corporation henning@i4get.enet.dec.com Speaking for myself, not Digital