Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: henning@i4get.enet.dec.com (John L. Henning)
Subject: Re: Cache, performance, and data structures used by simulations
Date: 4 MAR 95 14:01:33	[thread overview]
Message-ID: <3jaeac$ktd@peavax.eng.pko.dec.com> (raw)
In-Reply-To: 3j5j0b$b8n@lyra.csx.cam.ac.uk


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


  reply	other threads:[~1995-03-04 19:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-01  2:19 Cache, performance, and data structures used by simulations Peter Mardahl
1995-03-01 23:30 ` Vivek Sadananda Pai
1995-03-02 23:05   ` Nick Maclaren
1995-03-04 19:01     ` John L. Henning [this message]
1995-03-06 20:08     ` Vivek Sadananda Pai
1995-03-13 18:10     ` Paul Repacholi
1995-03-02 18:03 ` John L. Henning
1995-03-03 16:52   ` Greg Lindahl
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