Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3738523pxb; Wed, 13 Oct 2021 11:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEtVV2Nn7GkjMdao1l4Xzss9l/v43Ea6FRQyyP7F5UEM4frwtUXCPjaO064ggT50VE+JMq X-Received: by 2002:a05:6402:4315:: with SMTP id m21mr1579091edc.277.1634151348029; Wed, 13 Oct 2021 11:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634151348; cv=none; d=google.com; s=arc-20160816; b=pdXP9e/WTv6PAScRv3ZT6Hi/yP/eKvQ32IZlUSTdsLDRuG/L1joomGymKKXB3ayZOJ VE1oSDE9xEsuPGWmLABxvvw6lZKH5EjvbxZ6OxcYjbDsALnbSzrtnODAq/v4goAKfBba zapGDbR+abMer4OzJqNEK7oTao919TBUTXUROHQkdAbitVfMRS+Zp/0aQymcx5uO0XyS opH8lDK7HOuNts18otAH6Puyoi2v25LavaIdhS1iOI4wGQtg/8Y0ffGf1R6CuhJft8xM uNeqX+Ed0+IokcF6MqRaUSSnKjCCUEPFK4uceaMM+CTVZmRpHKQBeW4HqAuWy5n9lbFo yNiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=v0HU+U56E0Lrcr8H6vwMSPlZZnY8aeLcodPp7JstL30=; b=hRHjibV7orggGxdnRCChLOrWkO6hFXj7oC0rx23RvQZxiuWRHwZkO+BhZHoHa7LHkj +ML7KmFGzM7Ro8KQbHtLplSecheTzTiqLrpv32ms+DKfOhDz3DvtKEKpRbCaGo+mTK2t KS5YeBVbVNO4HRSM0hlDOnHCNx3VWgrtMZkYyzbXqZp80MNa4+MKFAr1kPM8D3tuGfTA kjjBY1gLVb3whmRaGBG6oPptmpgx/LMMRm64x4koyeQMOxfoPXwenF7pjdUiSg1IZx2a Gh1SmgsnjHWIS+Fkvpy57+4p/PH9/tcMLKhYsbup98AkvBU82VEFLWC6NMZIH9l1uamT Oceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@uged.al header.s=google header.b=qPMVA8oK; 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 p22si469233ejm.526.2021.10.13.11.55.22; Wed, 13 Oct 2021 11:55:48 -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=@uged.al header.s=google header.b=qPMVA8oK; 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 S231522AbhJMSyu (ORCPT + 99 others); Wed, 13 Oct 2021 14:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhJMSyu (ORCPT ); Wed, 13 Oct 2021 14:54:50 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8077BC061570 for ; Wed, 13 Oct 2021 11:52:46 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id bl14so3209599qkb.4 for ; Wed, 13 Oct 2021 11:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uged.al; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v0HU+U56E0Lrcr8H6vwMSPlZZnY8aeLcodPp7JstL30=; b=qPMVA8oKa/JA3c4vLQPRtrq5Dcg8ETvfRoQqgUHfA3tj0J1T/nRxileoSuOJndSctP AvYYdzrekCeUka3/3EVHv1bVsBTJpgKxHPQzfZ0htqucd6rh7oXJBJl0pVRJnfwyj2KK KsBsrqqcBxs/WKlc7WVfoqaZtwHylsk5A4UmWgHOdAB2zoJJFIK0cbY2PSoaxUBXx3uY CEadwhIPiXu0IqBW4a8ifJdMUlLzPNZrYkd6AdlcEXJ/C6eYGBphqAmQfd3yCRpdvvmD Dq9VLuDiqQbLejcEdNrR5XxxJ94FVql1jYxuTI0FVrHuHY/DfbbGrHwec1b80jxqqV2q qy0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v0HU+U56E0Lrcr8H6vwMSPlZZnY8aeLcodPp7JstL30=; b=ljsZhxQUuWhBhGMXgp+DLr0iM2E9m7ygLhCmXXVGIebd7tppmAJ5ewOhhFtXxeger6 UDSE2muJgc7gdkiZ15vQyJpBDnu9eCMKNLucBghZv7B2HwHQvf68Un3bLIqfuctLfivw 7NKqRIdl/jQrWOhjkiE8seTop3cU93UiTAKW4Zdn6Ho1e1sLXAIfLBUzyoFgRWmpg1Vn P3Nu2xAFOTCQfmjluLrd8Mevntu0LNSAz61QJMDZni2CvJxtyjmvEaV99DFN3EQ3XHwO dS4wvcl/urxjkd3U66oD0X2mpCFpF+63qkW6LCV7/zax/8i4fr7I889XSCYZSgryNm/1 agPg== X-Gm-Message-State: AOAM533VC1C7RPockZd6q6L8aWIN9OC+ujs2yCUEDDKPzSXd89FqrKp1 mIgGsbmMGb5ZmeNYhRjVdB4yV1sWxTMLhg/RNwNAew== X-Received: by 2002:a37:be87:: with SMTP id o129mr846941qkf.213.1634151165602; Wed, 13 Oct 2021 11:52:45 -0700 (PDT) MIME-Version: 1.0 References: <20211011172236.11223-1-mkoutny@suse.com> In-Reply-To: From: Odin Ugedal Date: Wed, 13 Oct 2021 19:52:34 +0100 Message-ID: Subject: Re: [PATCH] sched/fair: Use rq->lock when checking cfs_rq list presence To: Tao Zhou Cc: Odin Ugedal , =?UTF-8?Q?Michal_Koutn=C3=BD?= , open list , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, tir. 12. okt. 2021 kl. 19:31 skrev Tao Zhou : > > Er.. this is considered specific to this fix I think. Normal unthrottle(not > race with delete, avg maybe used in after) also need the normal avg decay. Yeah, it was more meant as a way to express my idea, should probably have said that more explicitly. It would essentially be a revert of a7b359fc6a37 ("sched/fair: Correctly insert cfs_rq's to list on unthrottle"), while "temporary" fixing the problem it fixed, by removing the load from the tg. But yeah, it would still need to decay the load properly to _actually_ be fully correct and work as it does today. But in most cases nr_running>0 on unthrottle, but yeah, it is definitely not always the case. Thanks Odin