From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,dcf2c3d9b4549885 X-Google-Attributes: gidf4671,public X-Google-Thread: f6653,dcf2c3d9b4549885 X-Google-Attributes: gidf6653,public X-Google-Thread: 11035d,dcf2c3d9b4549885 X-Google-Attributes: gid11035d,public X-Google-Thread: 102b75,dcf2c3d9b4549885 X-Google-Attributes: gid102b75,public X-Google-Thread: f57db,2870e3c2c7ff13cb X-Google-Attributes: gidf57db,public X-Google-Thread: 1164f8,2870e3c2c7ff13cb X-Google-Attributes: gid1164f8,public From: ASHOK SINGHAL Subject: Re: Latency vs performance (was Re: Sun Servers take advantage of board local memory?) Date: 1998/04/28 Message-ID: <3545EF63.CD88C1B2@Eng.Sun.Com>#1/1 X-Deja-AN: 348509579 Content-Transfer-Encoding: 7bit References: <35359B3A.2A830CB1@earthlink.net> <6hpadq$le2$1@alanya.m.isar.de> <6ht5h2$grh$1@murrow.corp.sgi.com> <6hvrnl$atm$2@msunews.cl.msu.edu> <6i0isl$nlg$1@murrow.corp.sgi.com> Mime-Version: 1.0 Distribution: inet Content-Type: text/plain; charset=us-ascii Organization: Sun Microsystems Newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc,comp.unix.solaris,comp.arch,comp.sys.dec,comp.benchmarks It is indeed possible to bring a memory bank closer to one CPU (or a small set of CPUs), BUT ... the trick is to do so without effecting the latency seen by the OTHER cpus. It is far more difficult than many (most?) people think, even on a system like the Sun Enterprise server where it may not seem that way from the physical structure of the machine. Could we have done it? Perhaps. Would it have been worth it? In the case of the E6000, I doubt it. Most often, bringing a memory bank closer to one set of CPUs has the unfortunate effect of taking that bank farther away from the (in our case much larger) set of all the other CPUs. In a 64 CPU system, bringing the memory one hop closer to 2 CPUs takes that memory one hop further from the remaining 62 CPUs. In terms of latency, this is not a good idea unless you can get *very* good locality, which may be possible on STREAM or specrate but very difficult on a whole bunch of other applications, particularly database applications. In addition, the cost of attempting (often in vain) to create that locality is non-trivial, not just in additional data movement for creating copies and in additional physical memory used for copies, but also in the complexity of the operating system. In the case of SGI Origin 2000, for example, the memory is one hop away from the 2 CPUs on the same node. But then that memory is 2 hops away from 8 cpus, 3 hops away from ... And then on top of that add a much larger latency penalty when the data is dirty in another cache (a very frequent case in many server applications). In summary: yes, one can reduce latency to local memory for a small number of local CPUs, but if this increases latency for a much larger number of other CPUs this is usually not a win. In the case of SGI it substantially increases non-local latency. I don't believe this was a win for many important apps. Given a choice of doing well at local accesses in large system (for example STREAM/specrate) or more general access patterns in large system (for example, tpc-C/tpc-D) I know where I would lean. To see where SGI leaned take a look at the TPC benchmark results site (www.tpc.org). A 24-CPU E6000 (which would be way past the STREAM saturation point) does 23% better than a 28 CPU SGI O2000 in spite of the O2000 having a 64-bit OS and over 2 times as much memory. And SGI fares even worse in tpc-D (a 4-CPU E450 does better than a 8-CPU O2000). Ashok Singhal Sun Microsystems