Skip to content

Commit 8bee4ca

Browse files
cloehlePeter Zijlstra
authored andcommitted
sched/deadline: Convert schedtool example to chrt
chrt has SCHED_DEADLINE support so convert the example instead of relying on a schedtool fork. While at it fix the wrong mentioning of microseconds, it was nanoseconds for both schedtool and chrt. Signed-off-by: Christian Loehle <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Juri Lelli <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2cab4bd commit 8bee4ca

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Documentation/scheduler/sched-deadline.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -749,21 +749,19 @@ Appendix A. Test suite
749749
of the command line options. Please refer to rt-app documentation for more
750750
details (`<rt-app-sources>/doc/*.json`).
751751

752-
The second testing application is a modification of schedtool, called
753-
schedtool-dl, which can be used to setup SCHED_DEADLINE parameters for a
754-
certain pid/application. schedtool-dl is available at:
755-
https://github.com/scheduler-tools/schedtool-dl.git.
752+
The second testing application is done using chrt which has support
753+
for SCHED_DEADLINE.
756754

757755
The usage is straightforward::
758756

759-
# schedtool -E -t 10000000:100000000 -e ./my_cpuhog_app
757+
# chrt -d -T 10000000 -D 100000000 0 ./my_cpuhog_app
760758

761759
With this, my_cpuhog_app is put to run inside a SCHED_DEADLINE reservation
762-
of 10ms every 100ms (note that parameters are expressed in microseconds).
763-
You can also use schedtool to create a reservation for an already running
760+
of 10ms every 100ms (note that parameters are expressed in nanoseconds).
761+
You can also use chrt to create a reservation for an already running
764762
application, given that you know its pid::
765763

766-
# schedtool -E -t 10000000:100000000 my_app_pid
764+
# chrt -d -T 10000000 -D 100000000 -p 0 my_app_pid
767765

768766
Appendix B. Minimal main()
769767
==========================

0 commit comments

Comments
 (0)