
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
Leave a comment:
-
Originally posted by David (PassMark) View PostThat would be the most efficient step size for your hardware.
I have such question at examination
i have Pentium Dual-Core E5300 2.6Ghz
L1 Data cache 2 x 32 KB
L2 1 x 2 MB
2 x 2GGb DDR2 SDRAM
Leave a comment:
-
That would be the most efficient step size for your hardware.
Leave a comment:
-
Test Memory speed per access step size
Leave a comment: