Announcement
Collapse
No announcement yet.
Test Memory speed per access step size
Collapse
X
-
-
It is complex to fully explain it.
CPUs (and motherboard, RAM & cache) are designed to read at least 4 bytes at a time. Further they are optimised to read sequentially through RAM. Or if not sequentially, then optimised to read values close to the last value read. e.g in the same memory row.
So reading 1 byte at a time tends to be slow. But reading at 4 bytes intervals tends to be quick. As the distances between memory accesses get larger, the system gets slower.
Background reading:
http://en.wikipedia.org/wiki/Locality_of_reference
http://en.wikipedia.org/wiki/CPU_cache
http://en.wikipedia.org/wiki/Prefetch_buffer
Comment
Comment