lmbench icon indicating copy to clipboard operation
lmbench copied to clipboard

fix guessing cache stuck in a wireless loop issue

Open rexnie opened this issue 1 year ago • 3 comments
trafficstars

When I test the cache with next command, it stucks in a wireless loop and I can't get the result from the console. ./bin/aarch64-linux-gnu/cache -M 1m -N 1 -W 1 -L 64

The expect result likes bellow: L1 cache: 65536 bytes 1.70 nanoseconds 64 linesize 11.76 parallelism L2 cache: 1048576 bytes 4.91 nanoseconds 64 linesize 3.70 parallelism Memory latency: 14.44 nanoseconds 3.28 parallelism

  1. align the algorithm of find_cache() with lmbench-3alpha4, https://github.com/intel/lmbench

  2. measure p[0].latency before while loop

  3. the first parameter n pass to pagesort() may be 0, it will stuck in outer for loop

rexnie avatar Jun 26 '24 14:06 rexnie