diff options
author | massimo toscanelli <massimo.toscanelli@leica-geosystems.com> | 2021-07-08 12:58:51 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-07-14 21:27:01 -0700 |
commit | 6a7ba8f7f210e04183fb64ab181520d817a34a11 (patch) | |
tree | 0576cf8e7cfbfc48aa4191b63aa1ac3598630f3d /meta-oe/recipes-shells | |
parent | 82cca6d4edd3bb3a3d888f2647d43256b5f4691c (diff) | |
download | meta-openembedded-contrib-6a7ba8f7f210e04183fb64ab181520d817a34a11.tar.gz |
sysbench: fix memory test
In sysbench version 0.4, the tmp variable used by the memory test to
execute requests is optimized by the compiler. Caching mechanism reduces
the direct accesses to the memory increasing the transfer speed. This
leads to false timing estimations that considerably affect read and
also random write operations.
In sysbench version 1, this issue is fixed adding the volatile modifier
to the tmp variable. This prevents compiler optimizations forcing a direct
access to the memory.
The final result is a realistic transfer speed measurement.
Signed-off-by: massimo toscanelli <massimo.toscanelli@leica-geosystems.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 59cce5ad1603c2975684ae15b639e0e3cd688c40)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-shells')
0 files changed, 0 insertions, 0 deletions