diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-03-28 14:13:10 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-03-28 14:14:28 +0106 |
| commit | a39de4609225129c19df931d556b1d032d806403 (patch) | |
| tree | 6e83c9726da17c292e3107ae729b59eb557b018e /schulung_tools/scheduling_tests/busy.sh | |
| parent | 0b94092f4d96f0c48f24272641af171fc8065515 (diff) | |
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/scheduling_tests/busy.sh')
| -rwxr-xr-x | schulung_tools/scheduling_tests/busy.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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" |
