From 7dc1efce3fbb539e955a2be6d8dc72e80200f1e5 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 19 Aug 2014 05:16:17 -0400 Subject: lmbench: fix lmbench memory check failure lmbench can't proceed on some targets. The memory check fails because the memory latency of each page is longer then 10us, which is a time limit set in the original memsize.c. The memory latency is very different on different targets due to the hardware and current system load. The targets with slower memory chips or heavy system load need much longer time to read or write the memory. This fix changes the fixed time limit of 10us to a specific value calculated from the runtime target. Also set an upper limit of memory size used for lmbench testing. The memory check sometimes fails if the target has a large amount of memory, for example more than 4G. Signed-off-by: Qingming Su Signed-off-by: Fupan Li Signed-off-by: Mark Hatle Signed-off-by: Jackie Huang Signed-off-by: Martin Jansa --- meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb') diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb index d8238ae4b5..c5d6ac8c37 100644 --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb @@ -17,6 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \ file://update-config-script.patch \ file://use-base_libdir-instead-of-hardcoded-lib.patch \ file://lmbench_result_html_report.patch \ + file://fix-lmbench-memory-check-failure.patch \ " SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf" SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551" -- cgit 1.2.3-korg