Set GPU priorities + improved modeld priorities (#2691)

* give gpu threads rt priority

* modeld gets highest prio on core 2

* fix frame stream

* lower prio of cal thread

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c57ee16e86
This commit is contained in:
Adeeb Shihadeh
2020-12-15 19:22:03 -08:00
committed by GitHub
parent 2442d7522c
commit 762eda95cd
11 changed files with 37 additions and 29 deletions

View File

@@ -69,6 +69,11 @@ function two_init {
done
echo 2 > /proc/irq/193/smp_affinity_list # GPU
# give GPU threads RT priority
for pid in $(pgrep "kgsl"); do
chrt -f -p 52 $pid
done
# Check for NEOS update
if [ $(< /VERSION) != "$REQUIRED_NEOS_VERSION" ]; then
if [ -f "$DIR/scripts/continue.sh" ]; then