From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Xvjr4z9A" 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...