zephyr/tests/kernel/mem_pool
Andy Ross c4e2f1b217 tests/kernel/mem_pool/mem_pool_threadsafe: Reduce tick rate
Qemu just can't handle 1000 Hz ticks.  On our CI machines, CONFIG_HZ
on the host (which is the limit of timing precision for things like
idle wakeups and signal delivery, both of which qemu seems to use for
timing) is 250.  When the mismatch gets this large, we start seeing
artifacts like interrupts being delivered "in the past" (i.e. code
sees a z_clock_elapsed() value of "2" ticks before getting a
z_clock_announce() call for "1").

As it happens, this test doesn't actually require timing with that
precision, it just wants "lots of context switching" to exercise the
threadsafety of the mem_pool APIs.  So decrease the tick rate to the
100Hz default, but put a loop counter in the worker threads to force
them to do 10x more work, keeping the number of preemptions constant.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-03-15 05:50:43 +01:00
..
mem_pool tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mem_pool_api cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
mem_pool_concept tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
mem_pool_threadsafe tests/kernel/mem_pool/mem_pool_threadsafe: Reduce tick rate 2019-03-15 05:50:43 +01:00
sys_mem_pool tests: convert to use app shared memory 2019-02-08 07:04:30 -05:00