From a39de4609225129c19df931d556b1d032d806403 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 28 Mar 2019 14:13:10 +0106 Subject: schulung_tools: add scheduling tests This is a set of tests to compare the scheduling using various policies and priorities. Signed-off-by: John Ogness --- schulung_tools/scheduling_tests/busy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 schulung_tools/scheduling_tests/busy.sh (limited to 'schulung_tools/scheduling_tests/busy.sh') diff --git a/schulung_tools/scheduling_tests/busy.sh b/schulung_tools/scheduling_tests/busy.sh new file mode 100755 index 0000000..06630d0 --- /dev/null +++ b/schulung_tools/scheduling_tests/busy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# pin ourself to CPU1 +taskset -p 2 $$ > /dev/null + +echo "`date +%s`: begin $1" + +ct=1 +while [ $ct -lt 1000000 ]; do + ct=$(($ct + 1)) +done + +echo "`date +%s`: end $1" -- cgit v1.2.3