Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp633760pxy; Thu, 22 Apr 2021 09:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0kzxALy0ea/+UBmTdNfBv56njJyuVIsxxz0V8QrFmOWSUoHwYOD/bybSOPNqRBT4M9eR4 X-Received: by 2002:aa7:95aa:0:b029:256:143:e5d8 with SMTP id a10-20020aa795aa0000b02902560143e5d8mr4276640pfk.67.1619110175118; Thu, 22 Apr 2021 09:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619110175; cv=none; d=google.com; s=arc-20160816; b=HSQ9l/oKYoQFe8gWK0mDC0TpM8Eja4be39aCbUAHktShS12ZOiS9fDUdDEOO78u16G /NrTCWv+IgUU9patf/XBu74hRF8OkvW0guUFdKeKiMwD9h1ipPfPLgWHEAOC8hWk/BYb 5vSpeUFcpQ+xJ/PL/7gZDp1dm7holIRW//5fKhtNLW9k0WVXtM2LTwkX9O81yIYVmS+Y Qz6cwQABoYeD9auFxaJKDlXFQo+wT1EyQZM8EtnNZQsMeIlqKU7Rg4cWYQ2loH4q4gYi e2W3ILy/BFtKq5Bq6nMyz1Mzf0NaA1f+a2shhCTZsfzX8ynNTiyDqIba8wBJ01KJdglJ LeFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=Wl0CThEj2DCfIAmotlSHQiLANUQdC4j0CqEQY8TqjaI=; b=rVlHuRb05xovlgfncDORUo1L3KysMV0SZpean2xsizgJgPTCD2sUfW8QlnZYOhSDvr pCBTSwWmB8OyKzZ+iKmyO0d4zCx8fpRWb19fbbhVl6J1ifLI/unBGL9nqn2HfUC2vGw0 C/1fpuuO1CY5R1RiVCQgK0KDdsM+AuWLNFRx15NA2f7W/rCxvWHYR79cBOqUBQsDT3zW v+0kjVWrSBQBTfbykxGmvzTb74J2p8m8QoTcOPDO3+tf+QD/TWhikZFR7kCQPzfbEHAQ YBAbp+S7PFt9aY3wWV+wvRrvsvCqCCxjj3uHbRuECHGrRUws2/JyrIZk23C5v6k7JjAn LMhA== 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 h1si3469169plc.296.2021.04.22.09.49.22; Thu, 22 Apr 2021 09:49:35 -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 S237829AbhDVQrn (ORCPT + 99 others); Thu, 22 Apr 2021 12:47:43 -0400 Received: from shelob.surriel.com ([96.67.55.147]:35582 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236657AbhDVQrn (ORCPT ); Thu, 22 Apr 2021 12:47:43 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lZcTl-00088P-I4; Thu, 22 Apr 2021 12:47:01 -0400 Message-ID: <416c515026af10cc913a83bc72c18aeb296c6583.camel@surriel.com> Subject: Re: [PATCH v3] sched,fair: skip newidle_balance if a wakeup is pending From: Rik van Riel To: Vincent Guittot Cc: linux-kernel , Kernel Team , Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , Mel Gorman , Valentin Schneider Date: Thu, 22 Apr 2021 12:47:01 -0400 In-Reply-To: References: <20210420120705.5c705d4b@imladris.surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-yCBy0EHXV/dXifHXfKvy" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-yCBy0EHXV/dXifHXfKvy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2021-04-22 at 10:37 +0200, Vincent Guittot wrote: > On Wed, 21 Apr 2021 at 19:27, Vincent Guittot > wrote: > >=20 > > > - if (pulled_task) > > > + /* > > > + * If we are no longer idle, do not let the time spent > > > here pull > > > + * down this_rq->avg_idle. That could lead to > > > newidle_balance not > > > + * doing enough work, and the CPU actually going idle. > > > + */ > > > + if (pulled_task || this_rq->ttwu_pending) > >=20 > I confirmed that the line above generate hackbench regression on my > large arm64 system (2 * 112 CPUs) > I'm testing hackbench with various number of group : 1, 2, 4, 16, 32, > 64, 128, 256 but I have only put the 2 results which significantly > regress. The other ones are in the +/-1% variation range >=20 > hackbench -g $group >=20 > group v5.12-rc8+tip w/ this patch w/ this patch > without > the line above > 64 2.862(+/- 9%) 2.952(+/-11%) -3% 2.807(+/- 7%) +2% > 128 3.334(+/-10%) 3.561-+/-13%) -7% 3.181(+/- 6%) +4% OK, I guess this part of the patch needs additional work. I'll send a v4 with just the first two changes. Thank you for running those tests. --=20 All Rights Reversed. --=-yCBy0EHXV/dXifHXfKvy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmCBqIUACgkQznnekoTE 3oOUmgf/Z/szhtFna60CfwqqA2THsv3i0ehF+f4r1z7Y9HSkk3YSKcdfutPXIUOU kBrkd7+mns5HS8iVsmeIHB6LjyPtfARpqgVWIS9yF+6LWL7mU18yTABwjFFu0wk0 Dgr2SbNkRvTtqin93k4bPvA3FQhH3yx+Zn5+4qt72zy7aJcb9FJTruxQ8PZFctge ApHrxhTvZlFjx9sbakHiVpD6KoCWlJJoa8CNosPsDhZyi8spUNsfUybOb5XR9C5X AS00AcYwzRdKJYAcVptLUv7Nn6ikqVZb/WvG4k7vDok7yXueKKEejcEpoI3MXL76 Ad8UIoASVdzpXD0NlzKP9Yc4f7bihA== =dEQ8 -----END PGP SIGNATURE----- --=-yCBy0EHXV/dXifHXfKvy--