From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,59ca3b26f2b9f750 X-Google-Attributes: gid111c93,public From: Solar Designer Subject: Re: lmbench on Linux and DU, explanations welcome Date: 1999/03/10 Message-ID: <7c50a1$btd$1@prince.dataforce.net>#1/1 X-Deja-AN: 453279966 References: <7c36ao$fnm$1@news.tuwien.ac.at> Organization: DataForce ISP User-Agent: tin/pre-1.4-980226 (UNIX) (Linux/2.0.36 (i686)) Newsgroups: comp.os.linux.alpha Anton Ertl wrote: > I have run lmbench 1.1 on the same motherboard (a Cabriolet with a > 300MHz 21064a and 2MB L2 cache) under both Digital Unix and Linux. > You can see the results at > http://www.complang.tuwien.ac.at/anton/a2a3.ps.gz. An HTML page about > this is available at > http://www.complang.tuwien.ac.at/anton/lmbench-linux-vs-du.html Thanks for the interesting results. > There are interesting differences between the results for the two OSs. > I think the differences for the 128K-8M range can be explained by > different page allocation algorithms. > However, it seems unlikely to me that this is the explanation for the > differences in the 8K-16K range. So, my questions are: Isn't there a 50% chance of the two pages (or are there three, if the array isn't page-aligned?) getting mapped onto physical addresses corresponding to the same half of the cache? > Or is there another explanation for this result? While I don't have a good explanation, let me offer a simple benchmark I did a while ago: ftp://ftp.dataforce.net/pub/solar/membench.c It has assembly code for Alpha, x86, and x86 with MMX, as well as a pure C version. Requires GCC. The simple assembly loops should make it more deterministic, which in turn should make analyzing its results easier. P.S. Finally an opportunity to thank you for publishing the GCC "Labels as Values" optimization for virtual machines that I've made use of. :-) Thanks! -- /sd