Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3814479pxu; Mon, 12 Oct 2020 01:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeye7nNPuvsHgNTnrpdq/wJ2Nu+p+PbkGFauBiuRomuZvqZUIcgkfO4CvINPWt0Yeuyb0e X-Received: by 2002:a17:906:4a98:: with SMTP id x24mr26357946eju.319.1602491992259; Mon, 12 Oct 2020 01:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602491992; cv=none; d=google.com; s=arc-20160816; b=kZgNmYYLv1kqhcGgUK1E+L9m43JKhPTjQA/bwIX/Wp24fYtIZ3rXrZF+mDdAqDJyia Rd/x8RNpOjBZfy0oSaRhaxM+RxX8BzLpL+o4Ks/EerF1uqSvx6T0/zs2/NjidkHauE6g l6O4CXHcshx5K6/iupumQP1sHDsZ1/G2NIRBjJhy8dcrIlnzwJ3FrCZcS2Hi71fA/qni Ac9laMY2BiPvKntCnDT7dygRP5tpcGUSJLfpSAkGvM1pgJiKp4RbmSR+ZbkGzYMqCR+Z YPIZjC/OKHAIuJZ9tlw2tBddSf0C8wdCMRKSO5P/p/YFRzcxmLmymYTp+Om+JwF8uaeZ TQpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=D+1SMPMcDcnoCaZeqBq0ZoLbQqJl88UPEKndr2FM7/I=; b=ET2p9g8F7br/R/SwyXID0lvfzYWJD66TOhLImX2jbREfkQFiUjvGZb5b26YvBEVzwZ jA6OknRsolP7oLjecdDMPg9TaIknkcIWnZyfLW6m+IJOQwCw5F85q2s8riOxqK7i2hC1 fColZjQgJHOz2CNA8u7EzvSUE9dz4t+LqNk48+pL1ztYfrv6AcR5+QBYoGodfxwcl+rA 6qxanAMtunQeRYLHh4yCAcjc+1Jkt39UtsQ1bYA8CqpSIV7pO2PxJEpYwdZhyYZCXscM gd2EJutQMcAKPqeulH8G1IbfruPD2VkEQMrbDp28et1mXcV4Mm5P8j/Il0jh732cdLg5 2tKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd5si10334618edb.451.2020.10.12.01.39.29; Mon, 12 Oct 2020 01:39:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbgJLIiQ (ORCPT + 99 others); Mon, 12 Oct 2020 04:38:16 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:5416 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgJLIiQ (ORCPT ); Mon, 12 Oct 2020 04:38:16 -0400 X-IronPort-AV: E=Sophos;i="5.77,366,1596492000"; d="scan'208";a="472083300" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 10:38:14 +0200 Date: Mon, 12 Oct 2020 10:38:14 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Sumera Priyadarsini cc: Julia.Lawall@lip6.fr, michal.lkml@markovi.net, linux-doc@vger.kernel.org, Gilles.Muller@lip6.fr, corbet@lwn.net, nicolas.palix@imag.fr, linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [Cocci] [PATCH v4 2/3] scripts: coccicheck: Change default condition for parallelism In-Reply-To: <13de95fe3959459ac9ae8c74d99eb7e3c5702a2d.1602410019.git.sylphrenadin@gmail.com> Message-ID: References: <13de95fe3959459ac9ae8c74d99eb7e3c5702a2d.1602410019.git.sylphrenadin@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Oct 2020, Sumera Priyadarsini wrote: > Currently, Coccinelle uses at most one thread per core by default in > machines with more than 2 hyperthreads. However, for systems with only 4 > hyperthreads, this does not improve performance. > > Modify coccicheck to use all available threads in machines with > upto 4 hyperthreads. > > Signed-off-by: Sumera Priyadarsini Applied, thanks. > --- > scripts/coccicheck | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/coccicheck b/scripts/coccicheck > index d67907b8a38b..209bb0427b43 100755 > --- a/scripts/coccicheck > +++ b/scripts/coccicheck > @@ -79,7 +79,7 @@ else > THREADS_PER_CORE=$(lscpu | grep "Thread(s) per core: " | tr -cd "[:digit:]") > if [ -z "$J" ]; then > NPROC=$(getconf _NPROCESSORS_ONLN) > - if [ $THREADS_PER_CORE -gt 1 -a $NPROC -gt 2 ] ; then > + if [ $THREADS_PER_CORE -gt 1 -a $NPROC -gt 4 ] ; then > NPROC=$((NPROC/2)) > fi > else > -- > 2.25.1 > > _______________________________________________ > Cocci mailing list > Cocci@systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci >