Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4246353pxj; Tue, 8 Jun 2021 09:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztnEisYWB/UlOw4cr806f3IBiIKbqPmBiLKr3/k1CkKfQgVE/+iaC04nujYpNgrYfg6JZS X-Received: by 2002:a17:906:3d9:: with SMTP id c25mr24749356eja.63.1623170644480; Tue, 08 Jun 2021 09:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623170644; cv=none; d=google.com; s=arc-20160816; b=bsG02HmNQoqmNh2xL7OmUEHzun4P8F9mBHYphU+MP4sJdi0cgvTCW5Q83Ja/uNmTiX ulVmIbnRkGKEp27Em8M0RfLWinhrRFVGCSfPFLMpd+wX5pKLPgg9SmMKF6Jp1T4TzBI+ mOOZyAX5Ze5gWRpSq4z0K7wYs3DItl9+yBrN3o/rLqBxJboFH5AjQR+NwCUi+riILYAz ZXIeif/rezO89C+pDsYoBtnB1jDPoSaJUYIIW+/9xUhB36WlPAEI7iqWLGsAjNbJ1EJl WF2L5HMaqj9n5FCehhxxq+XtZdOs76iqEjiVKuSNPinbzs4KWxjx2G+QZoPHWraKnVmc 6CyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=2YkYqz+ZtymbOhQ5LKg4OZB2IErjraWsnNuYIpmXMpw=; b=Ba1NlBkLV40OX/64CujlLPGPKRt772F88IHgwKU1PLOvi4ps3DPD/kzFkvQulhYojA xx8QAH1dQHEp1NPzS47lIOnzQLvCCAo4E1+lUtsDQfJMW8J/Ez2G8xtQxRcQ3EWJpU2s 1UAdWVkN2Yj3Eo5Z011a0hRM/hFq6iJraokL/0LVgrKk7FTtT9Exm3ITkMfcxQJaS/UH K6Qe9m2xTxoHJb4VuVXytfuqrHdnkGs0q8mwDQregAsOpavi4nkGjf/H98qQdVvPS6yh BaJdfa3ep0AmgRn78XhzPwr5E1qnHha40HReeYqHywjiRI9XwkIoG7cFYjn39TF1n9Rh El5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=U3kPBWzM; dkim=pass header.i=@suse.com header.s=susede1 header.b=U3kPBWzM; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si127712ede.590.2021.06.08.09.43.40; Tue, 08 Jun 2021 09:44:04 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=U3kPBWzM; dkim=pass header.i=@suse.com header.s=susede1 header.b=U3kPBWzM; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231685AbhFHQlj (ORCPT + 99 others); Tue, 8 Jun 2021 12:41:39 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59622 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbhFHQlj (ORCPT ); Tue, 8 Jun 2021 12:41:39 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B247E219C0; Tue, 8 Jun 2021 16:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623170384; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YkYqz+ZtymbOhQ5LKg4OZB2IErjraWsnNuYIpmXMpw=; b=U3kPBWzMvHzcsRUkRNyGFPLYEbf9J+yR7Chy7YTtDt1Ai5jy+UVmpK0Kt2pQ6mIMMLOi2w xceE13H0dnINmYtKvu3REgUm050s8k21StvXeKmIrIiG6PaoEDzvW365NdYbmzdhHwxDG1 y6Mnee6w26nNnjZ3wkZLth9j9x7thVM= Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 4A4E2118DD; Tue, 8 Jun 2021 16:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623170384; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YkYqz+ZtymbOhQ5LKg4OZB2IErjraWsnNuYIpmXMpw=; b=U3kPBWzMvHzcsRUkRNyGFPLYEbf9J+yR7Chy7YTtDt1Ai5jy+UVmpK0Kt2pQ6mIMMLOi2w xceE13H0dnINmYtKvu3REgUm050s8k21StvXeKmIrIiG6PaoEDzvW365NdYbmzdhHwxDG1 y6Mnee6w26nNnjZ3wkZLth9j9x7thVM= Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id haZ9EFCdv2BjWgAALh3uQQ (envelope-from ); Tue, 08 Jun 2021 16:39:44 +0000 Date: Tue, 8 Jun 2021 18:39:42 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Odin Ugedal Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Giovanni Gherdovich Subject: Re: [PATCH v4] sched/fair: Correctly insert cfs_rq's to list on unthrottle Message-ID: References: <20210604102314.697749-1-odin@uged.al> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bjCpVaBEdcHpnVsT" Content-Disposition: inline In-Reply-To: <20210604102314.697749-1-odin@uged.al> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bjCpVaBEdcHpnVsT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. On Fri, Jun 04, 2021 at 12:23:14PM +0200, Odin Ugedal wrote: > @@ -4719,8 +4738,8 @@ static int tg_unthrottle_up(struct task_group *tg, = void *data) > cfs_rq->throttled_clock_task_time +=3D rq_clock_task(rq) - > cfs_rq->throttled_clock_task; > =20 > - /* Add cfs_rq with already running entity in the list */ > - if (cfs_rq->nr_running >=3D 1) > + /* Add cfs_rq with load or one or more already running entities to the= list */ > + if (!cfs_rq_is_decayed(cfs_rq) || cfs_rq->nr_running) > list_add_leaf_cfs_rq(cfs_rq); > } Can there be a decayed cfs_rq with positive nr_running? I.e. can the condition be simplified to just the decayed check? (I'm looking at account_entity_enqueue() but I don't know if an entity's weight can be zero in some singular cases.) Thanks, Michal --bjCpVaBEdcHpnVsT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAmC/nUgACgkQia1+riC5 qSj6Zw/9GyYrkFQquKqXjlrp3PwkSq9ciNFqX2R3JUduT4zfQDhXHZSv7tJrn3mD jFv22NWGZZj1m72YBIFBu5+vYqATnsErIB4XPoDfpHFjlwcazPFcFcObhdaUHLPC ic4KMGpVnUF08qBwjVcDlLvUcGbj/GElzjt0PSVSGXRByNAF7JV1PE6n3kH5VApC 5MOhWRELjS2I3dRuzQI9/oPJ+T3e6SDX+s9Op7SKKTbN2joIbSnRFxwbgNTgVtf/ 4uhmTM7oVLN4DptYIJnIIX5P8CpsqcrgICXyH5bAAs6UTHfdeSCwH8ns5IL8IWgC 7qCjxEo7TMZL2tOhYxqi9NqAxP8ogqOV425LMEVkg67cii4RAaOBPwdDDKFa70Ep M9IelfmsXerwWrfJzbZlHedfIQm30ZJYi57KtshWB+OtxNMkqKi9XHoDsx1FQ2YG W4S1hhZn2vbZcmQv13TpMkIyjEeIVXbFxEElfRj9yO7440rYp0wBZBPmS9wS1WEG nQjmpZTsvtrAEMWXVAPNU7LG7rqEWHsI0KTkou5o4mmVVYt83lTzDxLVW3pgh2Tm IF0ulw6OesHvaDmUW4GO239112ZTtnpl0e+JXWpZq3Aw1ub0fojSBVZffCjGD14C O4Mo0z+I/eQe14D9Zmgxll4ltTeZJvg1EJWWEC3TiZnWJFJQ/Mc= =CXYl -----END PGP SIGNATURE----- --bjCpVaBEdcHpnVsT--