From f233638bddd59cf80617e2fb7ecf21d5e9e1c5b2 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 28 Dec 2015 18:32:48 +0000 Subject: [PATCH] Revert "Run all the jobs at a low priority" This reverts commit 43e61b538b2fe24b0a784df2813c8f8bbad16391. That change caused problems. For example, more jobs running simultaneously than there should be. --- install-dependencies | 2 +- vigil | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/install-dependencies b/install-dependencies index 920c548..bdcc6e7 100755 --- a/install-dependencies +++ b/install-dependencies @@ -6,7 +6,7 @@ set -e echo "Install the dependencies of the vigil script..." sudo apt-get --yes install python3-minimal python3-pygments python3-pyinotify \ - python3-urwid python3-psutil + python3-urwid echo echo "Install all the tools vigil may need..." ./install-tools diff --git a/vigil b/vigil index f487538..a8ecd97 100755 --- a/vigil +++ b/vigil @@ -55,7 +55,6 @@ import threading import time import traceback -import psutil import pyinotify import fill3 @@ -137,12 +136,6 @@ def status_to_str(status, is_status_simple): return status -def make_process_nicest(pid): - process = psutil.Process(pid) - process.set_nice(19) - process.set_ionice(psutil.IOPRIO_CLASS_IDLE) - - class Result: def __init__(self, path, tool, is_stored_compressed=True): @@ -193,7 +186,6 @@ class Result: start_time = time.time() self.process = multiprocessing_process( tools.run_tool_no_error, self.path, self.tool) - make_process_nicest(self.process.pid) new_status, result = self.process.result_conn.recv() self.status, self.result = new_status, result self.process = None