From patchwork Wed Oct 4 01:17:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Jordan X-Patchwork-Id: 148126 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2453258vqb; Tue, 3 Oct 2023 18:19:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWxoqGlDnvmt5yDYeeDcBlvkVlQgyrwvTroyjVK+YRez2URBCG054W6kSjw90Ub6RHqI1/ X-Received: by 2002:a05:6a20:938b:b0:157:d7cd:ebd with SMTP id x11-20020a056a20938b00b00157d7cd0ebdmr1156739pzh.1.1696382355890; Tue, 03 Oct 2023 18:19:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696382355; cv=pass; d=google.com; s=arc-20160816; b=fsmV3DK6UP9peYb1imD2gLywQ4Lt59bdyyu0T5FbtZAjWYZrC34ObOoP2zO+MimAix u7UYnUKclehnlljWZgeHdxtNTtYl+YxzZsAI8Lq46uqV9uVexweRqJypf5xPkLQ/ZGj4 Xt81yjYGzdY0vo9GWFVyEhkT+pa028+zOYxJsV3HN6T7/gdZwCu6S8DHTnvxU3bycy/p exqUxJiFnByXKwPwv4+IvZo+Y1ujhEqYFXeP6S9sDtfm7uPaLkGwKNiisWVKqjkn3KJ4 U2qTrCqCa1WcGd0u/EFqWtgqri7i03tPjwswDyaDq0eoubEKJoJM0v4KVj5xAg7hQAQv TFuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=nR1kDZN1k2WqZLE04D2NJTBVOZWtc0ZEhRKRUS3Ks74=; fh=mwBXYUk+/7bNUQH4PYrLJeFuUY7rKllAsh5RMPxNJ9s=; b=tD5EjJJYG7NBoj804n13hdgPuTGaCx05nVslYJP93ZJHremqwK5YO5sc3GTzMAw4Je FVzA2G5LToG3bei68N5ruKyllR0r8cXUprO/ReuiQyL4wodba74ubC95Q39kJv3An6x1 n9s/BLQGOClGVRBuQhPtb/d9xMDreWVQJI8HhkcQ1r91OGgb1cCTEPkjnEFXKZuCnQhK uU7KYwpEuHmwxd6X+FEEfTCvgCXH2enm0bvXFIpNYZps/DwjfCR5ZY7cPDb8f+oe4QHp xYOGXGP9ek8zlPJXmJ2swGMB0pGaAJwluK++AHCAfWSQN14CDXUd6vtXemmetfwEV/hA A8aA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=t+aVoYQi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eVTZwOcM; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id cd22-20020a056a00421600b0068a3c575900si2557322pfb.84.2023.10.03.18.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 18:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=t+aVoYQi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eVTZwOcM; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BB8E28198013; Tue, 3 Oct 2023 18:19:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239384AbjJDBTD (ORCPT + 17 others); Tue, 3 Oct 2023 21:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232262AbjJDBTB (ORCPT ); Tue, 3 Oct 2023 21:19:01 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D666B7 for ; Tue, 3 Oct 2023 18:18:56 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 393I56Pj006407; Wed, 4 Oct 2023 01:17:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=nR1kDZN1k2WqZLE04D2NJTBVOZWtc0ZEhRKRUS3Ks74=; b=t+aVoYQiUEs+vIE2sjlr9Ty4UgS15LTY6VJhEPoTA2/heWT+yE9YGgUgVwUSd2jkigwN oncMo2w7cdhAzFRwVVg2QTE9pH+RCHPm0yQo8DhtG9wyCwtIqSrcibLfWiWuTapfnYG3 ZXo99laQ3UEHPS5LFZ0OPUod3EgAWBADGckQLhD4rZ6fISXMO9Mo6ZS60lGlhPbvwmSv s3F14/UN6CQcuUXBIZu22mObzINTuh35JNl+S6etZTXAAPzeyKC3ivglm/xJFrq4YEiH a5Jv7He/51OUziVS0pf3o3bSCn8teA31Llx/e1EbHUcPN0Gh6mLFMtrs1G8t7Zdf7cA/ 8w== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tec7vdxgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Oct 2023 01:17:44 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39416lYP008693; Wed, 4 Oct 2023 01:17:44 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2041.outbound.protection.outlook.com [104.47.51.41]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tea47c0u6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Oct 2023 01:17:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hdTVaE6ATEIR9wr0zCGndGVljcXTG7WresonvFO6MO7HJshE+4q7B6Ggh5b1A6CkBOapn8yGeXVxotS4zp84TJ2WveWlMbnNxbnnfa5q70j4iaO/uCpQYHjPwVvqJGaiGa2/lJ94D8+fxKLAev2fcAMErtMSlQY2eB5f7o0K4lkpDM1IaTqvkHwlZQIF5l5Ogocm2eMqQ6Z3LITGQY2DV54PBfXRog1ljfZBJKw72j1PCrBONL65M8PFq77GLRgirPyeZ9E/78detmOJEMfCbm3IICJJWc1sd9058MUTF78jMrxd3edQlIs6y7jKwM43M51So4WfEs5JATU0OmtDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nR1kDZN1k2WqZLE04D2NJTBVOZWtc0ZEhRKRUS3Ks74=; b=Fa05FsT/g+fGbDJnHwSpUjtmYfWAJU9o1FZlDRa7o8ImGW0SZ0pwYWp2EjUDAOWo3HjGa/tVNvyADopSWx2esZf+8/4Y49ORcH+B/sXvSarK1NN8xMJnbo86AGNFD2q3ydiXs12EACAdYnzVSBZLPTpMdAzOz2EytNqz1mIUD4Gq3HbLkIdIhizJzHbwRqe0ePduhjOlT3A8zc2CZ3DHkG9TmNElpRzHVYqIUeXtA9cxRrqevjpS0q//8FtE3fwcMXaRxrjXbLpP06kJNhS1hi1dsZQetw0G/nPt295t5Qb9DUILc2eHtnm5kd7Pr/jg784DXo5RDDo8IKlWszM0eQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nR1kDZN1k2WqZLE04D2NJTBVOZWtc0ZEhRKRUS3Ks74=; b=eVTZwOcML/tOn+wbo2EZKpev2UplS3kyK2EaI5NYSIU7HoY/WhitkAZ/jdH/PaEhXXAnT1zprh/jviDpVECE8mJOGepo0iHb9YBrVkxuiU3qvmyNMcm5yQGX6B3havehGwR0efLylf/Rz2JURvNclfiwOqrX37EduezULoyqVkk= Received: from SA1PR10MB5711.namprd10.prod.outlook.com (2603:10b6:806:23e::20) by CH0PR10MB4828.namprd10.prod.outlook.com (2603:10b6:610:c8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Wed, 4 Oct 2023 01:17:40 +0000 Received: from SA1PR10MB5711.namprd10.prod.outlook.com ([fe80::1aa1:e3a9:cfdd:f48]) by SA1PR10MB5711.namprd10.prod.outlook.com ([fe80::1aa1:e3a9:cfdd:f48%4]) with mapi id 15.20.6792.026; Wed, 4 Oct 2023 01:17:40 +0000 From: Daniel Jordan To: peterz@infradead.org Cc: bristot@redhat.com, bsegall@google.com, chris.hyser@oracle.com, corbet@lwn.net, dietmar.eggemann@arm.com, efault@gmx.de, joel@joelfernandes.org, joshdon@google.com, juri.lelli@redhat.com, kprateek.nayak@amd.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@kernel.org, patrick.bellasi@matbug.net, pavel@ucw.cz, pjt@google.com, qperret@google.com, qyousef@layalina.io, rostedt@goodmis.org, tglx@linutronix.de, tim.c.chen@linux.intel.com, timj@gnu.org, vincent.guittot@linaro.org, youssefesmat@chromium.org, yu.c.chen@intel.com, daniel.m.jordan@oracle.com Subject: [PATCH] sched/fair: Preserve PLACE_DEADLINE_INITIAL deadline Date: Tue, 3 Oct 2023 21:17:37 -0400 Message-ID: <20231004011737.188682-1-daniel.m.jordan@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230531124604.068911180@infradead.org> References: <20230531124604.068911180@infradead.org> X-ClientProxiedBy: BLAPR03CA0059.namprd03.prod.outlook.com (2603:10b6:208:32d::34) To SA1PR10MB5711.namprd10.prod.outlook.com (2603:10b6:806:23e::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR10MB5711:EE_|CH0PR10MB4828:EE_ X-MS-Office365-Filtering-Correlation-Id: b1782110-9c90-43eb-75b9-08dbc477b3f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iqkbODpoKDO3dD4ZBcKU7q1bseqx7flLXrcHWlf4iZ+PxRowAnI36gUrXBFxXYE9pvKfOyZ5Z5pYbGB57/2WCl9vuMjdnFFyOcNfQcHwTXKkOuXd7eEyeSuMbcSqDhG9TJcMPp1G1fozITVR+r2GOoFKmHevn7wJmv3vXUUigcWKbjO2UzZp5wTB7tbN6Lu3nAlvB/EQO5go8xTml0DqDqiNTsGg6Ck/rxou7gCsIPrepbJrCgETPi0LoMbk1M0A6jkohXl+rU7Tgd+n1TChHd0mHC9S4tKAkc2tWf7FQ7Wm7L3/x+c6oALT5SHDK3IekSW2NXvYlrsmAQKemFIiHzzYYWOGXUFJ4ztrPUjHBSjtKACxc7Y0lufucjdEOb2MVU9NNH/GFPKvlGQYlMs1dQJIwa7l93Ncrk+kfunjXbGBCnv0DMXCLP59vXFJ20HKmWDENjvyW+RtUT2DCMaNi9ZgEXIqoaphGjIBji7HAZjXmODv+lhpKE3JfvrCG1qHg0rkNAWLQrYz9heft65L2htHY78z9p6AnGAqVvll0zKoNpRhtW/ciMGWK6UlMMlu X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR10MB5711.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(366004)(39860400002)(136003)(396003)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(1076003)(41300700001)(107886003)(6486002)(2616005)(316002)(6506007)(6512007)(66556008)(66476007)(6916009)(66946007)(4326008)(26005)(5660300002)(478600001)(8936002)(8676002)(6666004)(7416002)(83380400001)(2906002)(38100700002)(36756003)(86362001)(103116003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AhzwlzWR4vMh27NTQ/unWqZ+XtiSGeZ/vmZzOFEvuV5JZgG0kwqE2NaKGR9YqVyxNLZTKMkSeIdPk4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C1tjKtTIep6PEbl6Gf6TV4UziB9ekPdYUqkPG/cYUNGhVnypu7mhyEaWLew7prMnMzSBycgWZoDmiLa8/saZA5+4cIdTSYEztEz2nV/zWWhFA/mEeTKjKcMrXPaPHZcmn84d84XWZRpfZFr5F0p9MJgQt0wLi6f0X21arK/k3Wkc5DlpC/ClHMXefQ/ajCnt8xba758SEent9EVAaN9BrtzZ/gayfO/rYpDwhgCkoRANjipIaOHb9obcdiqYI/GPdxWmbFxp0vCpR3QbfXDwaJNN1kWgZHBZztqPW9ko2C26fWM7paf8U7/VdTvYiIj8Ih6MsfTucTRynjNJ631peVtopT/P3lYUSNYMIHh/1KknYOH49OCpQ5F1rbLW+s+WQyLxWUk2cp9ixoiLNxzwB10vIVY7ch0OGUgy7O5zvVvzBo8KjjDT9oPD7pP5RXPLjtU5saqhk+okqGV3OSTm/CQbfs8gx+Sb0WZ2ck3lhYx0h/7ObBuube6f/XWJMg+seOIj9YFsPptOvVqI2EEqHQfGmSsyg4DjnS0GodQUo4isa3NAoWK2mmN9LjSGLItZSkl/I4kDcJs+rE+VmIdAc7Ic4+plUihtw7R4mJrZJsLL93Edqed9QBUADc10F/dPsNsAn5ExnuhRm7GQMHw8zOrVhBYCU0YO8QVL/55rqHxZCAi8CsJSOS/rDPa5A1VzQSvbWg3cHf63C/vcfIGRsQEB8GXU49E/DOsrqcJPiklH/aezK1QhgLzGSdslcLVs5z14vVZEcMwRhQkvUB18SEZc/pMfhZ0l+o29CtDptD2P6s7hpMpj7Sw8pHydxkVmw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1782110-9c90-43eb-75b9-08dbc477b3f5 X-MS-Exchange-CrossTenant-AuthSource: SA1PR10MB5711.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 01:17:40.6948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qz4nsFrMSfHl/zWyCJDzhvMV/vY4Sp5xDrwidmV2XT+IU5BI+ILJ6/bDb80kO1SJf0wERFgGklCBh2GUmBC1BgH5knRNIjgi4tqdajAIb8w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4828 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-03_20,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040006 X-Proofpoint-ORIG-GUID: beeKUWdsc7izn8Fb1HwvACZsWLl7iaCL X-Proofpoint-GUID: beeKUWdsc7izn8Fb1HwvACZsWLl7iaCL X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 18:19:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778785824797316750 X-GMAIL-MSGID: 1778785824797316750 An entity is supposed to get an earlier deadline with PLACE_DEADLINE_INITIAL when it's forked, but the deadline gets overwritten soon after in enqueue_entity() the first time a forked entity is woken so that PLACE_DEADLINE_INITIAL is effectively a no-op. Placing in task_fork_fair() seems unnecessary since none of the values that get set (slice, vruntime, deadline) are used before they're set again at enqueue time, so get rid of that and just pass ENQUEUE_INITIAL to enqueue_entity() via wake_up_new_task(). Fixes: e8f331bcc270 ("sched/smp: Use lag to simplify cross-runqueue placement") Signed-off-by: Daniel Jordan --- Tested on top of peterz/sched/eevdf from 2023-10-03. kernel/sched/core.c | 2 +- kernel/sched/fair.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 779cdc7969c81..500e2dbfd41dd 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4854,7 +4854,7 @@ void wake_up_new_task(struct task_struct *p) update_rq_clock(rq); post_init_entity_util_avg(p); - activate_task(rq, p, ENQUEUE_NOCLOCK); + activate_task(rq, p, ENQUEUE_INITIAL | ENQUEUE_NOCLOCK); trace_sched_wakeup_new(p); wakeup_preempt(rq, p, WF_FORK); #ifdef CONFIG_SMP diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index a0b4dac2662c9..5872b8a3f5891 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -12446,7 +12446,6 @@ static void task_fork_fair(struct task_struct *p) curr = cfs_rq->curr; if (curr) update_curr(cfs_rq); - place_entity(cfs_rq, se, ENQUEUE_INITIAL); rq_unlock(rq, &rf); }