Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1280683pxa; Thu, 20 Aug 2020 07:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0QsZtq5/F4WLPtzFaPrR102hi71qvk0GOFxNccUb2tTPGfFgAuo36GbZQsL2j5QSMltg7 X-Received: by 2002:a50:d942:: with SMTP id u2mr3318422edj.0.1597933522497; Thu, 20 Aug 2020 07:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597933522; cv=none; d=google.com; s=arc-20160816; b=dcuZ2OimvyYUxexOXWtjcWFfd5cuvSS7Dl3aPyN96jCWM3eBCD75+qspSrFsjxP2UZ A16zh+KntpMCu7CxOUq3MP9BKWYG/JWP+b4sHq8JcBs3JVkBufMEJFFisP4Ke2/yv4k2 L6L+I7mNaNF3cV0RN8BxGtjjNwZLYj5BL4TnHoq8wOcDIHoLr+HwkCgiXtAX4AO/8NUH qAs5cj0PV2TLGRU3MuYSHhAg1+1pRvyP/TGFClQZMUWlHnZ6NZrqaefD50ppKtJN48Wj 7jDYPcYuKL3Qxv3ziZNeowx7II9sYfDslXrGPK3E3qp+NR+OLS2O8u2CbP30M3i0ruKx X4ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=h6nbYux31Ygm+S1ZFzocKiKaMUxITSb9tEwn8M8YVaA=; b=xlqA3sEp7lE5T0DcUuvQHKrz9UKqmyfNM/NLF+kz0Zk7D5IaLH7B8jPLxXP0YzDhXZ hA/l989T3GnHPMfoFt8iAwEXPLf0PHpyfw29TuygthO7N1MkRMJtGStCYQEJ1kr02R+p P05uLQ6ugJs7NFx9PQ7dNxOLsNCn6MrsqNEsQV1nu/e0HYEOvQmSQWHi3t07uJ+MZfpw ZytrMgCCF4FmNLdBt68INmBkei2nGG7qHiTWjs6O8Z67kWn6lG3EiEW/AuPUZ34ULLQO Awf3Ez05+/+mwrO0wBoWbezr00zeuRW4YUlACc9/6PhUsTruV175qkzyedaPOULYnebk yXwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C1nV8xXD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 90si1504862edr.528.2020.08.20.07.24.58; Thu, 20 Aug 2020 07:25:22 -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=@gmail.com header.s=20161025 header.b=C1nV8xXD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbgHTOYW (ORCPT + 99 others); Thu, 20 Aug 2020 10:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbgHTOYS (ORCPT ); Thu, 20 Aug 2020 10:24:18 -0400 Received: from mail-oo1-xc41.google.com (mail-oo1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66EC5C061385 for ; Thu, 20 Aug 2020 07:24:18 -0700 (PDT) Received: by mail-oo1-xc41.google.com with SMTP id j19so450765oor.2 for ; Thu, 20 Aug 2020 07:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h6nbYux31Ygm+S1ZFzocKiKaMUxITSb9tEwn8M8YVaA=; b=C1nV8xXDoFlHvnIY11XJxDmj0dqIaVLKAbMEibphui4S/YRRDZQFf5sQqb88jwrUaU EM0bcBsChm943BRU6jEVva11pImi5CZ1BQvUb+oSM8GxlXJ/5p5HB+vLLsbT2clB/ZHK ysK3MVQduxqfTsdivbJMg1m2qkw+ow+W2zqD/uLfOlmHKFM1Hy5pOFceBAhGnjTxitWK wzHZnkWdcjRas+uljGkWETPT1GK/TWGEFcMp+sIfaO3SLPpHKMYLx0lGYBRayFxXao9p 952Ueu7AapruTZLLpYdKaBEGvO/vyKrtNBhKAM6jw8onrGsJ8WF5a2tNsMN9nEzPqkRf cKrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h6nbYux31Ygm+S1ZFzocKiKaMUxITSb9tEwn8M8YVaA=; b=jTS7ecoNrbc5/n9XTVJs58U/vAYqunOsuy2jqfAkcrzZFQfuuo91VfQ22aZ9bDyx+H Wg0JNhO4vw+34t3nC7Evsspdi5ZhZgwKHLEZxnhO8mD/zHfhF8xiqbA+snv+DV8v7xau eKg0KDWynjiZJvBeN5FAFF/U5e2qgvIODijGh2MpspzuLykCIKYBg0WOh4zbVpOAsN1T qwKQeLsfhE3se0jJFN6N+Dur/jqF7YTPQhJscEaMqmotnuc5ZOUqEBJXiQ7bEnJodSgH 5jYciQhCAeJs8RBaTBiWsVVmlo19bOP02pealxr/Fz6uta3LNXve45RDQpYIuFH/JZpm D3wg== X-Gm-Message-State: AOAM5338BMjOUShpdfYJL1dPW3FNbAL15kAQZHImMJoRgUswUuPpN+iK Y73xchh3p6ir2wpWDnGCfpTl7Z8jrAaNbiOPw9Y= X-Received: by 2002:a4a:c299:: with SMTP id b25mr2575576ooq.35.1597933457899; Thu, 20 Aug 2020 07:24:17 -0700 (PDT) MIME-Version: 1.0 References: <20200820120025.74460-1-benbjiang@tencent.com> <20200820125829.GT2674@hirez.programming.kicks-ass.net> <20200820134341.GW2674@hirez.programming.kicks-ass.net> In-Reply-To: From: Jiang Biao Date: Thu, 20 Aug 2020 22:24:07 +0800 Message-ID: Subject: Re: [PATCH] sched/fair: avoid vruntime compensation for SCHED_IDLE task To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel , Jiang Biao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Aug 2020 at 22:09, Vincent Guittot wrote: > > On Thu, 20 Aug 2020 at 15:44, wrote: > > > > > That's been said, not compensating the vruntime for a sched_idle task > > > makes sense for me. Even if that will only help for others task in the > > > same cfs_rq > > > > Yeah, but it is worth the extra pointer chasing and branches? > > For that I let Jiang provides figures to show the worthful I'll try to have some tests and show the wakeup latency difference after applying the patch later. Thanks for your time. Regards Jiang > > > > > Then again, I suppose we started all that with the idle_h_nr_running > > nonsense :/