[SCM] BOINC packaging branch, master, updated. upstream/7.0.28+dfsg-468-gd6b251e

Steffen Moeller moeller at debian.org
Fri Jun 15 17:22:48 UTC 2012


The following commit has been merged in the master branch:
commit d6b251e6bc4b22a2f4ecd481d307d23f0c20257c
Author: Steffen Moeller <moeller at debian.org>
Date:   Fri Jun 15 19:22:00 2012 +0200

    Upon request: increasing priority of boinc client
    
    up from 19 to 10

diff --git a/debian/boinc-client.init b/debian/boinc-client.init
index 2372c4e..dfb890e 100644
--- a/debian/boinc-client.init
+++ b/debian/boinc-client.init
@@ -181,13 +181,18 @@ schedule()
     if [ ! -x "`which chrt 2>/dev/null`" ]; then
       log_progress_msg "chrt not found"
     else
-      (chrt_many --idle 0 19 $pid $children >/dev/null \
-        && log_progress_msg "idleprio") || \
-      (chrt_many --batch 0 19 $pid $children >/dev/null \
-        && log_progress_msg "batch") || \
-      (chrt_many --other 0 19 $pid $children >/dev/null \
-        && log_progress_msg "normal") || \
-      log_progress_msg "chrt failed"
+      # BOINC client needs higher priority than scientific apps
+      renice 10 -p $pid > /dev/null || renice -n 10 -p $pid
+      # Apps receive minimal priority
+      if [ -n "$children" ]; then
+        (chrt_many --idle 0 19 $children >/dev/null \
+          && log_progress_msg "idleprio") || \
+        (chrt_many --batch 0 19 $children >/dev/null \
+          && log_progress_msg "batch") || \
+        (chrt_many --other 0 19 $children >/dev/null \
+          && log_progress_msg "normal") || \
+        log_progress_msg "chrt failed"
+      fi
     fi
     for BPID in ${pid} ${children}; do
       if [ -w /proc/${BPID}/oom_adj ]; then

-- 
BOINC packaging



More information about the pkg-boinc-commits mailing list