Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp128571lqs; Mon, 4 Mar 2024 18:14:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV98uHqBG0mmAsPSVscoEmNBjPmel4eiubS0GMGALwUBlazNJ2rofTAuZi/P3/NaP9UU/BkxGltTRPTSbZ8FGAbktSZojajWH75lLKWdQ== X-Google-Smtp-Source: AGHT+IGOvQSGolpJ+4Gp+B9jz5QfoiioowyM2si4oM+wSA9BmuHaRScyzrg9w05OEUPrIQN6YvZl X-Received: by 2002:ac2:5286:0:b0:513:23d1:235 with SMTP id q6-20020ac25286000000b0051323d10235mr246170lfm.16.1709604887685; Mon, 04 Mar 2024 18:14:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709604887; cv=pass; d=google.com; s=arc-20160816; b=Hownz3Ts5DtxNf77cwQX39L3aExcEP2nXCuo+X6xvwfOp+hWMX+hJzo6KDECY6DMYG kO/FZ8jrikIiFqh99ke9Tas/FnLdaloRGVHR361WWKM0s6YZDd1+ZDXqofx5lmkzSfX6 s0Y2b+OJmLxrZoDhky8zZaitIRH/YBnIA50833p0xxVfgvOg3S51459QT2DLUl/opCAd Ruqw9b9GfSlZ3tJ7lJoNCKbs1TNDOgp8CjQ2mfXIskZAHfeFntZRal9xktCoxuw0H8id w0LrDynj97yQheJ8WeCirT67e6BrX6ncaAMQi+ayFqKpNLBvgMigTmRHJR6CQBmO9STk y+kA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iYWL+gVoEZhwFv5brMSLgBh5lKRPMNae3MhIIf17YYs=; fh=/9fBz53TV/Me3DZPL3kMenppz5VTiRfYQskFa54GHkk=; b=OyvWPtgsjoIBk9/4p9xW6bFg+tQbatiXB4VDIK6tb2Nv0R5zBmH9Lu5fGMS7YvC4yT OrX+VqBo56QhAr35T5j/1pWkVFTXx8COYoBaEqQ1zV2fqU0nckhaxehpFWYxyL0CfbO7 gROEG9kTvBU6vuYyaVKCR1e53kDL8Abxu6ZnnKeMwHi8CzeQtVY6VCYzzO2EJlB3qUBj PBJj9jpHUZmHtv+dAw3skrcz5P+8ibiG8okxJDt/nD6OHLDqWMfkFYy9xTb1rOCEtODn WFJOcn8KZJQdxP8Pvin4E7Rm6+CzUPJbu5STYsqxmoVP9P+coNOGVh02+Z5rjL6Vj0vp 25bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Xvjr4z9A; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-91542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b18-20020a170906661200b00a3fc1f04a9asi4426174ejp.549.2024.03.04.18.14.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 18:14:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Xvjr4z9A; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-91542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 63FB11F22F50 for ; Tue, 5 Mar 2024 02:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DE451B59F; Tue, 5 Mar 2024 02:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Xvjr4z9A" Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2D4D1AADC for ; Tue, 5 Mar 2024 02:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709604847; cv=none; b=qMXoGDXYAKpChYgo5/JWQR0cgx+WxTtNy05/nPKa7rvpiQ7AO+1HRJL1MBZv52tChn6PneWjBXdN0nF0YEJsoncqNYBdhlKKP+8O1hFpWw/4nLERLVTy+RYZVIcbL5Qvlks4fbhWvcSKPugwHFTQlzqYfEuI3xUGG1C/1s41jDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709604847; c=relaxed/simple; bh=lK5YuSrbfE7Kx/eALl2rZ0XA8T+IedWcCy5Js7/rsFs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ne1YmU326nLNOQzgxPCw2RfxwM33Fi2CuVqi0FTiBtPKsBiseHVatwjNdrl27XGTYAlBjFVtltAoDc8hakNhUvihR7Uvm5Zu1iRp81x5o0OJrPmcwCBCbMN0prdnYw6ZENmgtN4r8+nlZE0jIPVc3FyeUCGmWg82vp7xt8lb9RQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Xvjr4z9A; arc=none smtp.client-ip=115.124.30.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1709604842; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=iYWL+gVoEZhwFv5brMSLgBh5lKRPMNae3MhIIf17YYs=; b=Xvjr4z9AQ/jXJKBP+WXKFIpi7Z/99TH9VDW5BNd8pofeTkIcf/TXFwDGc/6npugkala3DjlXGd2ZnBgQg1QIqdScyY2uIRt+u6jWYSmIRQewgB9cQXvf2knrL0M/d9woRTslKW/skW1Xuwv3RcwzwxdUV3fgMAptJbrNdVsEAXQ= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R331e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=dtcccc@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0W1sbocr_1709604840; Received: from 30.97.48.234(mailfrom:dtcccc@linux.alibaba.com fp:SMTPD_---0W1sbocr_1709604840) by smtp.aliyun-inc.com; Tue, 05 Mar 2024 10:14:01 +0800 Message-ID: <5b863dfe-bb97-4bc9-a117-153b1ba087f0@linux.alibaba.com> Date: Tue, 5 Mar 2024 10:13:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] sched/eevdf: Always update V if se->on_rq when reweighting Content-Language: en-US To: Abel Wu , linux-kernel@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider References: <20240304030042.2690-1-dtcccc@linux.alibaba.com> <20240304030042.2690-2-dtcccc@linux.alibaba.com> From: Tianchen Ding In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/3/4 20:06, Abel Wu wrote: > On 3/4/24 11:00 AM, Tianchen Ding Wrote: >> reweight_eevdf() needs the latest V to do accurate calculation for new >> ve and vd. So update V unconditionally when se is runnable. > > As this should come along with commit eab03c23c2a1, I think it would > be better add a Fixes tag? > I'm not sure. In fact avg_vruntime_sub() in reweight_entity() was first introduced by af4cf40470c2, and at that time the algorithm about reweight was not completed...