From patchwork Thu Oct 3 15:56:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 11172801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E106513B1 for ; Thu, 3 Oct 2019 15:57:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE70721848 for ; Thu, 3 Oct 2019 15:57:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730194AbfJCP51 (ORCPT ); Thu, 3 Oct 2019 11:57:27 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:38556 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730951AbfJCP50 (ORCPT ); Thu, 3 Oct 2019 11:57:26 -0400 Received: from smtp2.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id B17BAA25EC; Thu, 3 Oct 2019 17:57:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id EwYUdx7ekI3h; Thu, 3 Oct 2019 17:57:22 +0200 (CEST) From: Hauke Mehrtens To: backports@vger.kernel.org Cc: johannes@sipsolutions.net, Hauke Mehrtens Subject: [PATCH 11/11] backports: ckmake: limit load to number of CPUs Date: Thu, 3 Oct 2019 17:56:42 +0200 Message-Id: <20191003155642.14909-12-hauke@hauke-m.de> In-Reply-To: <20191003155642.14909-1-hauke@hauke-m.de> References: <20191003155642.14909-1-hauke@hauke-m.de> MIME-Version: 1.0 Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org Instead of limiting the maximum load to a fixed number limit it to the number of available CPUs. This should hopefully increase the speed as less task switches are needed. Also reduce the number of treads per build to half the number of available CPUs. Normally multiple builds are done in parallel anyway. Signed-off-by: Hauke Mehrtens --- devel/ckmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devel/ckmake b/devel/ckmake index d8c16773..d16de3a7 100755 --- a/devel/ckmake +++ b/devel/ckmake @@ -152,8 +152,8 @@ def process_kernel(num, kset, cmdline_args): work_dir, ignore=ignore_patterns('.tmp*', ".git")) build = '%s/build/' % rel['full_path'] - jobs = '-j%d' % kset.build_jobs - load = '-l%d' % 50 + jobs = '-j%d' % (kset.build_jobs / 2) + load = '-l%d' % kset.build_jobs make_args = ['KLIB=%s' % build, 'KLIB_BUILD=%s' % build] nice = ['ionice', '-c', '3', 'nice', '-n', '20']