diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 16:43:41 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 17:14:31 +0100 |
commit | 9a04030825a6e990276402383ae6614e348286bb (patch) | |
tree | df3efe6f2012c508b4c982306d73b2cc72de0077 /devel/ckmake | |
parent | cdcec8e61280bdff61310e46f5694c4284e7e915 (diff) |
ckmake: restrict make to load average <50
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'devel/ckmake')
-rwxr-xr-x | devel/ckmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/ckmake b/devel/ckmake index 07227126..9129a7f2 100755 --- a/devel/ckmake +++ b/devel/ckmake @@ -153,6 +153,7 @@ def process_kernel(num, kset, cmdline_args): ignore=ignore_patterns('.tmp*', ".git")) build = '%s/build/' % rel['full_path'] jobs = '-j%d' % kset.build_jobs + load = '-l%d' % 50 make_args = ['KLIB=%s' % build, 'KLIB_BUILD=%s' % build] nice = ['ionice', '-c', '3', 'nice', '-n', '20'] @@ -180,7 +181,7 @@ def process_kernel(num, kset, cmdline_args): kset.baking(rel) - p = subprocess.Popen(nice + ['make', jobs] + make_args + [config_name], + p = subprocess.Popen(nice + ['make', jobs, load] + make_args + [config_name], cwd=work_dir, env=all_config_env, stdin=null_file, stdout=log_file, @@ -188,7 +189,7 @@ def process_kernel(num, kset, cmdline_args): p.wait() if p.returncode == 0: - p = subprocess.Popen(nice + ['make', jobs] + make_args, + p = subprocess.Popen(nice + ['make', jobs, load] + make_args, cwd=work_dir, stdin=null_file, stdout=log_file, |