From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,f9dc4c274aad13e4 X-Google-Attributes: gid111c93,public From: _@_._ (Chris Pirih, proverbs at wolfenet dot com) Subject: Re: Why is our Alpha box so slow? Date: 1998/08/04 Message-ID: #1/1 X-Deja-AN: 377936167 References: <6pv2mq$17v$1@mips.rhein-neckar.de> <6q55em$a58$1@mips.rhein-neckar.de> Organization: The International House O' Cheese, Seattle USA Newsgroups: comp.os.linux.alpha In article <6q55em$a58$1@mips.rhein-neckar.de>, naddy@mips.rhein-neckar.de (Christian Weisgerber) wrote: | The result on the Alpha box (Red Hat 5.1, 2.0.33, egcs-2.90.29, -O3) is | bizarre: | | 1k: 149679693 * | 2k: 149316456 * 8k 1st level cache | 4k: 144773425 * | 8k: 144881972 * | 16k: 104659487 . | 32k: 104677115 . | 64k: 104652525 . | 128k: 104110833 . huh!? we have 1M | 256k: 56204479 of 2nd level cache | 512k: 40814057 | 1024k: 32698979 | 2048k: 26571787 continuously getting slower!? | 4096k: 24232887 My UDB gives similar strange results. It's supposed to have 256KB cache. 1k: 162429336 2k: 161239327 4k: 153634196 8k: 152466836 L1 16k: 115433109 32k: 115493359 64k: 115693927 128k: 54652508 256k: 33898287 L2 512k: 24448508 1024k: 21316260 2048k: 21236215 4096k: 21339344 As you can see by the 1024k-4096k numbers, main memory bandwidth SUCKS. It is on par with my slowest 486 (DX2/66), and about half the speed of my fastest 486 (AMD 160). I thought these things were supposed to have 64 bit memory busses! Anyway, that's probably why it seems so slow at normal tasks. Hmm... Actually, I just ran the benchmark on my 5x86, and it gives the same shape curve as the Alphas: 1k: 159719763 2k: 159770978 4k: 159648998 8k: 159333539 16k: 153094855 L1 32k: 88254014 64k: 88369331 128k: 88251360 256k: 71518883 512k: 61695135 L2 1024k: 53851179 2048k: 51091243 4096k: 50810323 The 5x86 has 512K L2 cache. I suspect the difference is that the Pentium has separate L1 caches for instructions and data, whereas the Alphas and 5x86 have unified L1 cache. We're seeing some contention between data and instruction bandwidth. I'll bet this also has some effect on real-life performance. --- chris