From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Patricia Shanahan Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/11 Message-ID: <343FAA72.2ED97125@acm.org>#1/1 X-Deja-AN: 279512006 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> <343EF1C9.61670DFC@tonys.ecology.umn.edu> Organization: Who? Me? Organized? Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec boo wrote: ... > No, you don't understand me. I want to do the nitty-gritty > myself. As I said, computer memory is NOT multi-dimensional, > and I do not trust compilers to do a proper job. Perhaps someday > compilers will do the job properly, but until then, I want > the control myself. The thought of CS snobs like you having a > hand in the process is scary. > > And I don't care about what someone did before I was born. Why do you say "computer memory is NOT multi-dimensional"? Every computer memory structure that I have looked at in enough detail for analysis of its performance has been multi-dimensional. In the case of a large server, memory may be an array of modules each of which is an array of banks where each bank is implemented by an array of memory chips, each of which provides a two dimensional array of data bits. Some levels of this may be missing in smaller systems, but it is difficult to avoid having multiple memory chips, or having separate row and column addresses in talking to each chip. This may have performance impact. DRAM chips often have a mode in which repeated access to different columns but the same row can be done significantly faster than if the row address were changing. In a virtual address system, there is a layer of array access between you and the hardware in the form of the virtual-to-real translation. Virtual memory at its simplest is a two dimensional array indexed by page number and offset within page. Cache hierarchies are also multi-dimensional structures, in which there may be arrays of lines that are divided into arrays of sublines, which are themselves arrays of bytes. Fitting well with the sizes and organization of these units may be crucial to the performance of memory intensive programs. Even in a real address OS with no caches, any view of a flat one-dimensional computer memory is just an abstraction that hides much of the nitty-gritty. [boo, I don't know whether you are old enough to care about this - please ignore if early 70's are before your learning cut-off date.] Even before memory chips, the first memory design that I looked at had arrays of square units, each of which was a two dimensional array with wires strung in both directions. Each bit was stored in a small magnetic rod at an intersection of the vertical and horizontal wires.