From 4c4a0b1c618d84d0b21b2a28a3a4c843b8b839ad Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Thu, 15 Dec 2022 23:53:18 +0900 Subject: [PATCH] finished the script --- README.md | 5 +++++ test.sh | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 test.sh diff --git a/README.md b/README.md index 57f934b..29f7b07 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # Homework_Lesson_10 +## Assignment +Create a user-space program (any language is acceptable) +that differentiates the performance of the Linux Kernel with the PREEMPT_RT patches from that without the PREEMPT_RT patches. +Compile and run the program. +Submit the source code and the screen shots of the standard output and the kernel log message, respectively, when the program is being executed. \ No newline at end of file diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..aa897ec --- /dev/null +++ b/test.sh @@ -0,0 +1,8 @@ +echo "==================================================" >> output.txt +uname -a >> output.txt +echo "--------------------------------------------------" >> output.txt +hackbench -l 20000 >> output.txt & +sleep 1 +echo "--------------------------------------------------" >> output.txt +sudo cyclictest -q --mlockall --smp --priority=80 --interval=200 --distance=0 -D 1m >> output.txt +echo "--------------------------------------------------" >> output.txt \ No newline at end of file