Computer Chess Club Archives




Subject: Re: Another memory latency test

Author: Dieter Buerssner

Date: 13:51:28 07/17/03

Go up one level in this thread

On July 17, 2003 at 16:11:33, Gerd Isenberg wrote:

>your algorithm confirms roughly Vincent's results!

Yes, I agree. Actually my code was inspired by the issues you raised about
Vincent's test (and the strange things we discussed around omnid_abs with random
loop testing).

>But there is still the question whether this measured times is memory latency
>per definition - i guess not.

Perhaps. I could not find a good definition in lmbench source fast, and neither
in the papers about it (but only read over it very fast).

>In worst cases there is more than memory latency (additional TLB-latency and
>some RAM hardware interface latencies) to get data into a register - maybe a
>question of definition.

Even, when this is the case, those "real" latencies sound pretty uninteresting
from programmer's (and this may imply user's) point of view. They may give
numbers, that are not particually useful for "our" environment. After all, we
are not a group of hardware designers or OS writers.

>Another interesting point is to measure not only the average but the maximum and
>minimum access times (processors performance counter?). Are the accesses  about
>equal, or are there heavy spikes due to some chaotic TLB behaviour?

Yes. Perhaps I try it (or even you might want to try it:-). Performance counters
on x86 are not without pitfalls. Read for example

I would guess, that the access times are in the big majority about equal. Of
course the random access should yield spikes (towards zero - so actually
"anti-spikes") now and then, because now and then a small offset to the next
memory access will (and should) happen, and the data can be fetched out of

Many years ago, I knew go32 (one DOS extender, available in source code) quite
well. I fear my memory faded away. But one might have been able to setup it with
no virtual memory, page-tables, etc. Perhaps that was the case for another
alternative to go32 (pmode?). Perhaps, I am totally wrong ...


This page took 0.01 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.