Djordje Senicic
2018-09-21 20:51:05 UTC
* Priorities of main application threads are increased, whereas weston process priority is decreased
This eliminates intermittent "Bulk transfer failed" messages
Signed-off-by: Djordje Senicic <***@ti.com>
---
.../runSimplePeopleTracking.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
index 8b74be2..a148f8d 100644
--- a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
+++ b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
@@ -2,4 +2,10 @@
machine_type="`cat /etc/hostname`"
echo "Simple People Tracking TOF demo started!"
-SimplePeopleTracking -w 160 -h 120 -f 30
+SimplePeopleTracking -w 160 -h 120 -f 30 & pid=$!
+renice -n -19 -p $pid
+for adjpri in $(pgrep weston)
+do
+ renice -n 19 -p $adjpri
+done
+
This eliminates intermittent "Bulk transfer failed" messages
Signed-off-by: Djordje Senicic <***@ti.com>
---
.../runSimplePeopleTracking.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
index 8b74be2..a148f8d 100644
--- a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
+++ b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
@@ -2,4 +2,10 @@
machine_type="`cat /etc/hostname`"
echo "Simple People Tracking TOF demo started!"
-SimplePeopleTracking -w 160 -h 120 -f 30
+SimplePeopleTracking -w 160 -h 120 -f 30 & pid=$!
+renice -n -19 -p $pid
+for adjpri in $(pgrep weston)
+do
+ renice -n 19 -p $adjpri
+done
+
--
1.9.1
1.9.1