finished the script

This commit is contained in:
paul-loedige 2022-12-15 23:53:18 +09:00
parent 29cc2bad1a
commit 4c4a0b1c61
2 changed files with 13 additions and 0 deletions

View File

@ -1,2 +1,7 @@
# Homework_Lesson_10 # 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.

8
test.sh Normal file
View File

@ -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