diff options
author | Colin Walters <walters@verbum.org> | 2010-12-09 13:17:55 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-09 13:17:55 -0500 |
commit | c081e0287520c074387ba47dfb6cf59aaeef3663 (patch) | |
tree | 7adf4100a3ef8fee7438e03a342e93efe759c11a | |
parent | 1c0bc7fc61c7004b98d18a7b527652ad360391f1 (diff) | |
download | homegit-MOVED-TO-GNOME-c081e0287520c074387ba47dfb6cf59aaeef3663.tar.gz homegit-MOVED-TO-GNOME-c081e0287520c074387ba47dfb6cf59aaeef3663.tar.xz homegit-MOVED-TO-GNOME-c081e0287520c074387ba47dfb6cf59aaeef3663.zip |
metabuild: Use chrt --idle
This way on Linux we never get priority over another app that wants
the CPU.
-rwxr-xr-x | bin/metabuild | 6 |
1 files changed, 6 insertions, 0 deletions
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] |