Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2742014ybi; Thu, 4 Jul 2019 18:31:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx7RUqRk3sVoISlpoDCAssid4m+9p0LhKP4cu8mIyQAh8+cPXANyBBF7EQuPEel2LCTXba X-Received: by 2002:a17:90a:1ae2:: with SMTP id p89mr1027751pjp.26.1562290260667; Thu, 04 Jul 2019 18:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562290260; cv=none; d=google.com; s=arc-20160816; b=pnwXv6luCSum3IhARWIx7P6zIbr2lf2nLi/DFjaq6zY9w5hq1haB9AXhcvf0MOJYfj RYskbwhxFxxEm0G4zyH7Zj3mcqJmpsUR5g9DAvE8oY9rIfsl/J4s8Xj0JMSIPFoEcqqy gjw/txIafU6DV9PcXydTXhiVmMqwNeE+/gVLtz91Jf78fo3/o5lNaW6nwVdzdyxuv2MJ jCGs5OaFORds0aRda3G9zM/pjWZyphCwQrVRLumhMYXixciCRugNn/oSes24pwepQxyL FG6bruMlNaFAvYFe8heClBDX4fVr9m+NhVOexEEhzicIB9luOoQCUBn2zTmBHHGOOnYU euOw== 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=Xlw3kVLTCjaSvKw+rIgG9SbeiQltDs3GF8b3q7bEgYA=; b=r3avnNE55PUXLW4VrN5RsTA41VHnGmAuOmsBLPPaVZQNeS6wiB3timtGsxcOF7Zn3q DjRm1spQjc+vBW47B948Pp0wSXcZjhG0nY5+KUYgwOdTYpKyDIFa5q4vXXx9UmrStJcj dd7BQWs5iopZWT01nb171iMzMEcmECIooP+hDNDwBvXaqqUHpYnMLkeaBNqCOSyMl3bE VA+bI07LWw3/gewIgq2JKhOommgpJN0ygjOrEtDIhKFcsbuK9pTLffzv2Xrloyrdod+T sIpfyBE9IPSCceRvJuUzc8NT/JQQ/iYEdxGi+23veeyO2nq3m5EpD3IAiaUFqQUS2Xc7 +a5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si6782279pgg.190.2019.07.04.18.30.17; Thu, 04 Jul 2019 18:31:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727696AbfGEBCi (ORCPT + 99 others); Thu, 4 Jul 2019 21:02:38 -0400 Received: from shelob.surriel.com ([96.67.55.147]:33454 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfGEBCh (ORCPT ); Thu, 4 Jul 2019 21:02:37 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hjCcT-00033v-9G; Thu, 04 Jul 2019 21:02:33 -0400 Message-ID: <422f78651940a1b13f41fc126b7e95e8071db69e.camel@surriel.com> Subject: Re: [PATCH 05/10] sched,fair: remove cfs rqs from leaf_cfs_rq_list bottom up From: Rik van Riel To: Vincent Guittot Cc: linux-kernel , Kernel Team , Paul Turner , Dietmar Eggemann , Peter Zijlstra , Ingo Molnar , Morten Rasmussen , Thomas Gleixner , Mel Gorman Date: Thu, 04 Jul 2019 21:02:32 -0400 In-Reply-To: References: <20190628204913.10287-1-riel@surriel.com> <20190628204913.10287-6-riel@surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-QHn6K+DAVLQF2fswAdlJ" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-QHn6K+DAVLQF2fswAdlJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-07-04 at 11:33 +0200, Vincent Guittot wrote: > On Fri, 28 Jun 2019 at 22:49, Rik van Riel wrote: > > Reducing the overhead of the CPU controller is achieved by not > > walking > > all the sched_entities every time a task is enqueued or dequeued. > > @@ -7687,6 +7700,10 @@ static inline bool cfs_rq_is_decayed(struct > > cfs_rq *cfs_rq) > > if (cfs_rq->avg.util_sum) > > return false; > >=20 > > + /* Remove decayed parents once their decayed children are > > gone. */ > > + if (cfs_rq->children_on_list) >=20 > I'm not sure that you really need to count whether childrens are on > the list. > Instead you can take advantage of the list ordering and you only have > to test if the previous cfs_rq in the list is a child. If it's not > then there is no more child >=20 > and you can remove the new field children_on_list and inc/dec it Good suggestion. I'll do that for v3. Thank you. --=20 All Rights Reversed. --=-QHn6K+DAVLQF2fswAdlJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl0eoagACgkQznnekoTE 3oM5UQgAo55+GMijHhjejYhB2bx8PpgGhlAso0whA1DcmecPXVZczWk9Fyq5oyLc aqCbxf94P2KUut119bz+1Nof/xB85Z0cc9E23NChpMXHFe2O179pgrSJrRa5lYy/ Yo6MXlhZzO1cnXnuKo9mp7fmAhrvqn+FGRnn4lksx6bQDRMpPI0sqXy3VbRRxAjJ BwZ2a3b6J2zBXDBbzQGh9hmxgsMMmbirXWJggZfN+B3mbxBdV0ip+7yO9NrOQRTm u3KRrQZrtm4WbONPJ5lwpXk7hc5Z47nvM0QcUz7ooBrvxmW5UaT79HbH55pofCkK 9IF/1hqQ7Y9FaHyU60n+k3AjUZPViQ== =BIT/ -----END PGP SIGNATURE----- --=-QHn6K+DAVLQF2fswAdlJ--