Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22421453rwd; Fri, 30 Jun 2023 07:52:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5YWiqE2c8y9YbIsFkzaWPXUQQMnH7QgvJ0gqDDOdcKW9eGOOfR8/mNoXA7h675LMTG3mJ5 X-Received: by 2002:a05:6808:1491:b0:3a1:e6ec:5cff with SMTP id e17-20020a056808149100b003a1e6ec5cffmr3454054oiw.31.1688136721671; Fri, 30 Jun 2023 07:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688136721; cv=none; d=google.com; s=arc-20160816; b=wbVnf28sM3wdTEdMRGPVB0ofDIoluJ2vIsmdKA4R0B11N2WcoSir8h9o0PSkwYggRT Ru7b25zq3VrCoIZjrbX3okJx/lgZKWIEJzoE4PgxypTsmEaH4o2WdIm3mOWetpZIcBtk hKfRbm9SCHRJRyZR8egVyEL0nRd4BX1Fgvk3bBIucXYWSFKRFjGz+PQppua5AxIZsVrG KBxgWmy/A9Nzv/TVEVHdVL9gTetA2AFnfKPvqHFaOLFQ234JItiXjubXhNTjbNbhMtqx ghUdT4QHxPc8N9UgUD35HTvSK8kbqFiQUA7/ChE9xwe19WN781l68rHZ0CQE82r4z2d7 HOMg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F4P+Rj0oUJhKXVUru8smVHTl7Xg4pceMd76M85J93j4=; fh=/rZ6l34/oqZfx4OJ2XLbIs2PMVwaLzsEoQFq9dTgjh4=; b=uNwCQtv4Htalab/B3x7NDbEwQuUOPZ59pcokMBgYRXaDS6D922h6p7c+xsAwITvzzP oZG+kplQOtrUadlDJcJvmdKRuLWr/I9NAt/teexCpZM18y69PhoGX4T2JCCkZJBFQ402 3Xf0o2yUuPDFnhLcQRhiasVCwf84TRz+ceCLZHtVkNAKciqyFaWGoigs+45eJGKInDim OmhyqS/mJgJlalqG5rA4HvODzMCXNVnEkUkb+acTAiRC4NYkkwlL2U7x60kKQ6m03OPu RvF4MNknKKjyzNfibrEXwCpupDvPCb+pmW+cAep4tmjutPhpGkteA3XEbEMEt8R12Ysh ybJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20221208.gappssmtp.com header.s=20221208 header.b=beH7I+3T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b0054fdce77666si12984658pgb.630.2023.06.30.07.51.46; Fri, 30 Jun 2023 07:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20221208.gappssmtp.com header.s=20221208 header.b=beH7I+3T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjF3Ok7 (ORCPT + 99 others); Fri, 30 Jun 2023 10:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232701AbjF3Okt (ORCPT ); Fri, 30 Jun 2023 10:40:49 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F1CB3C06 for ; Fri, 30 Jun 2023 07:40:42 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f973035d60so3229284e87.3 for ; Fri, 30 Jun 2023 07:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20221208.gappssmtp.com; s=20221208; t=1688136040; x=1690728040; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=F4P+Rj0oUJhKXVUru8smVHTl7Xg4pceMd76M85J93j4=; b=beH7I+3T7UvFuU1PqzWQYYEVZijNNbAuGfoJjqoIk2P+/04qfVXCMQdURQS3ztF2zJ gUd5N0JN4XxXCr6J0hzaYBoz1krJL8RDz4oAgGfUt1OH4/CuT5BUFt9AO11gIe6vPj5r V4GCZ4PZxm1G2uWHIRV93h4Z8SeBFifK1myV9FMLnsR+14Zoi0kAaZFri+aqGIwbdvBq gyzjFQpSQbFHupKYx1C5+rfIb5Hf8IQnu/grB4ef976HYbbEW/kaJ+5r0W9N/xoB+Gjw A6tBdDlkDkftlLcY0ut+qxrt+B30KEFk9eat8LM4IAw6sP8/q6IFCLeVP7Gx9OmPUGDh kCtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688136040; x=1690728040; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F4P+Rj0oUJhKXVUru8smVHTl7Xg4pceMd76M85J93j4=; b=j42eA/8HmofLZrA/AJ5+9f0Kft81VzGxbo1J1b7VUGswcWEdyBfceplnR5QzJoEh8N Av8QzdY+TNIGhE2gP+BYDUfyx0AwQH565ALOSEUhT/UPjUiB9so189QWK6GiQd4qB716 Hm7CC/HlXa10+zso3AMwRo6oXav0PD+qitvSzryCL79qiN8gTdDaC6U3H1KNdNcKBUVd j0ckjODC7Os1XBibKOW/VnO7m0x4vsdAYJYfKW6G770m4Ww1/O4CAQg2QhHPFmhIhieS Yci9hMotEYTF+l4Es+Wm+FQ2ICidzNkXGu/XW9BFwnD1RW3WNiuwbkT3yXlriynKiFIo b5AA== X-Gm-Message-State: ABy/qLY5TlEyR4fl0Q1Pk5LcbyZIoLq12howeKHlUEPhrUwN0DODWFYT +LC5JwSq34gRxiAd0jw5khJGxw== X-Received: by 2002:a05:6512:3b8b:b0:4fb:774f:9a84 with SMTP id g11-20020a0565123b8b00b004fb774f9a84mr3062410lfv.13.1688136040182; Fri, 30 Jun 2023 07:40:40 -0700 (PDT) Received: from airbuntu (host86-163-217-97.range86-163.btcentralplus.com. [86.163.217.97]) by smtp.gmail.com with ESMTPSA id s24-20020a7bc398000000b003fb9ebb6b88sm10815685wmj.39.2023.06.30.07.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 07:40:39 -0700 (PDT) Date: Fri, 30 Jun 2023 15:40:38 +0100 From: Qais Yousef To: Xuewen Yan Cc: Vincent Guittot , Peter Zijlstra , Xuewen Yan , mingo@redhat.com, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, ke.wang@unisoc.com, zhaoyang.huang@unisoc.com Subject: Re: [RFC PATCH] sched/fair: update the vruntime to be max vruntime when yield Message-ID: <20230630144038.v2rv7qtrxi4ujhdg@airbuntu> References: <20230227220735.3kaytmtt53uoegq7@airbuntu> <20230228133111.6i5tlhvthnfljvmf@airbuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xuewen On 03/01/23 16:20, Xuewen Yan wrote: > On Wed, Mar 1, 2023 at 4:09 PM Vincent Guittot > wrote: > > > > On Wed, 1 Mar 2023 at 08:30, Xuewen Yan wrote: > > > > > > Hi Vincent > > > > > > I noticed the following patch: > > > https://lore.kernel.org/lkml/20230209193107.1432770-1-rkagan@amazon.de/ > > > And I notice the V2 had merged to mainline: > > > https://lore.kernel.org/all/20230130122216.3555094-1-rkagan@amazon.de/T/#u > > > > > > The patch fixed the inversing of the vruntime comparison, and I see > > > that in my case, there also are some vruntime is inverted. > > > Do you think which patch will work for our scenario? I would be very > > > grateful if you could give us some advice. > > > I would try this patch in our tree. > > > > By default use the one that is merged; The difference is mainly a > > matter of time range. Also be aware that the case of newly migrated > > task is not fully covered by both patches. > > Okay, Thank you very much! > > > > > This patch fixes a problem with long sleeping entity in the presence > > of low weight and always running entities. This doesn't seem to be > > aligned with the description of your use case > > Thanks for the clarification! We would try it first to see whether it > could resolve our problem. Did you get a chance to see if that patch help? It'd be good to backport it to LTS if it does. Thanks -- Qais Yousef