summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb
diff options
context:
space:
mode:
authormassimo toscanelli <massimo.toscanelli@leica-geosystems.com>2021-07-08 12:58:51 +0000
committerKhem Raj <raj.khem@gmail.com>2021-07-13 09:39:15 -0700
commit59cce5ad1603c2975684ae15b639e0e3cd688c40 (patch)
treefe2e71c15e1c8347cda2a709ef98afe74556051c /meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb
parenta19be0890100022853e3bef457a3132ce153f6af (diff)
downloadmeta-openembedded-59cce5ad1603c2975684ae15b639e0e3cd688c40.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>
Diffstat (limited to 'meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb')
-rw-r--r--meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb b/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb
index 708c71f4f..d1725dddd 100644
--- a/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb
+++ b/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb
@@ -8,7 +8,9 @@ inherit autotools
8 8
9# The project has moved from Sourceforge to Launchpad, to Github. Use the source tarball from 9# The project has moved from Sourceforge to Launchpad, to Github. Use the source tarball from
10# Launchpad until the next release is available from Github. 10# Launchpad until the next release is available from Github.
11SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/${BPN}_${PV}.orig.tar.gz" 11SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/${BPN}_${PV}.orig.tar.gz \
12 file://0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch \
13 "
12 14
13SRC_URI[md5sum] = "3a6d54fdd3fe002328e4458206392b9d" 15SRC_URI[md5sum] = "3a6d54fdd3fe002328e4458206392b9d"
14SRC_URI[sha256sum] = "83fa7464193e012c91254e595a89894d8e35b4a38324b52a5974777e3823ea9e" 16SRC_URI[sha256sum] = "83fa7464193e012c91254e595a89894d8e35b4a38324b52a5974777e3823ea9e"