Skip to content

Commit

Permalink
Merge pull request #56 from shuhaowu/rt-throttling
Browse files Browse the repository at this point in the history
Disable RT throttling on boot
  • Loading branch information
LanderU committed Sep 1, 2022
2 parents 0e187e2 + 62fcc03 commit 9e801bd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=RT throttling
ConditionPathExists=/proc/sys/kernel/sched_rt_runtime_us

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/opt/ros2-rt-rpi4/rt-throttling

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo -1 | tee /proc/sys/kernel/sched_rt_runtime_us
3 changes: 3 additions & 0 deletions image_builder/data/jammy-rt/scripts/phase1-target
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ fi
systemctl disable ondemand
systemctl enable cpu-frequency

# Disable rt-throttling
systemctl enable rt-throttling

# Disable unattended-upgrades
apt remove -y unattended-upgrades

Expand Down

0 comments on commit 9e801bd

Please sign in to comment.