From c081e0287520c074387ba47dfb6cf59aaeef3663 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 9 Dec 2010 13:17:55 -0500 Subject: metabuild: Use chrt --idle This way on Linux we never get priority over another app that wants the CPU. --- bin/metabuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/metabuild b/bin/metabuild index 9e303a2..9043341 100755 --- a/bin/metabuild +++ b/bin/metabuild @@ -41,6 +41,12 @@ else: # "Constants" (well, some are derived from the environment) subprocess_nice_args = ['nice', 'ionice', '-c', '3', '-t'] + +# In the future we should test for this better; possibly implement a +# custom fork handler +if os.uname()[0] == 'Linux': + subprocess_nice_args = ['chrt', '--idle', '0'] + subprocess_nice_args + default_make_parallel = ['-j', '%d' % (cpu_count() * 6, )] user_specified_jobs = False configargs = ['--prefix=' + root, '--libdir=' + libdir] -- cgit