Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp588727pxb; Thu, 21 Oct 2021 05:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzvDeC5sbHqNSlD5wKsdueZeQOnWGat7qUIGpSTH1dcgbr/6GeV1JxauoMAvX3YYIQEK65 X-Received: by 2002:a17:906:a2d2:: with SMTP id by18mr7094484ejb.401.1634820484943; Thu, 21 Oct 2021 05:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634820484; cv=none; d=google.com; s=arc-20160816; b=Nh2JuxcV+3JsQXlly5wuMwRjArDZ9yJnXyPwjIhpLaQVrLdQtpH9WGgnGv7qrMoQU7 fOKeIX05mmpZWRnLF4esFggpaeLJjtUhzzuo1V8PrR51djF8asi4o2E9DsdipRCdPT0M Ra5tdHqszKJp6Qc4v2dOZiPu7NyOUrhUEjY/2IN7dEXuT7Z3dQxGvDuGE4hIpo+dVMCj o/HWWRnOry3OAMD6h9Bw+V+/hWzfjCGHoZsxe96BT8Zwc08z6KtJdIx8+4BXRdGJC770 1UBI5anCyk1VX2YoTZGWuRPyC6/7AhZosN1Og1MJ8yPdlZcsK3wHuWIu+GJDWcvVKoE3 O4zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Pxhy3qc+nLWV5NWxoq4OHeKw3idC+IYA3epA9bvPejk=; b=vgCr3tgoh6YviUWpx2Fz+A/95PTHU8adCP18aZLcqiTZfFkqEK184GXMqG2P7wBaNS JJCvtE2PaYbe6BQU95bKOdGOyi2EMAt9rDNEe6VNq6ZDCi73lXgObpBVkvXu/4YGKT9K 0YyAaaSu9rxMk6aV1z15fV7H3e6F+JbhfSxU4Nx77eR71YqJZXOIP0dMagNJud06la9U w3xN5U3hCNyl7yubcuW/BHpRcj07EzLRbXFfVQ9sGHp+PsyIwdbeeidm8CedMuhSlbrR RqaDbriN4PDFUEiR0YsxP975DLES+WKCarWkYGPKRW2hOqXhq0w8GdyiBmWrH8tQb4dU cIVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L+v3jRHg; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si6192633edc.450.2021.10.21.05.47.39; Thu, 21 Oct 2021 05:48:04 -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=@linaro.org header.s=google header.b=L+v3jRHg; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbhJUMrc (ORCPT + 99 others); Thu, 21 Oct 2021 08:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbhJUMrb (ORCPT ); Thu, 21 Oct 2021 08:47:31 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146D7C06161C for ; Thu, 21 Oct 2021 05:45:16 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id g20so1263300qka.1 for ; Thu, 21 Oct 2021 05:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pxhy3qc+nLWV5NWxoq4OHeKw3idC+IYA3epA9bvPejk=; b=L+v3jRHgl6uBQFFizZfYICZ72rZEDgb/ZWV8LFZ/rtUmA8ZNqFV2vhjWphXjJMN5V8 8iehxfu/vahXIk/LGnAQDIFfYqSl+JU1eRp3oUv+g0xiu6QsRQsgwVGghhgTQaIKc4+C JvgCYqkv/2MwB8CoCojZt8bcPuS7G61HsyAByItQzZmsy5kzuOzfiHB770dNi9rDSb/v t3FrEf08/DWwIMi0Zqw+eg91fyUngwrkuejt4d8qshN+gGHHlFNf33vdR60XQoyMfvUN npPPRUDGZRjKEqkq77VjYnNkKSz6AM9BD9P94EiEkT/UKkdzTZLJLs9etAU60YMagkID iSVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pxhy3qc+nLWV5NWxoq4OHeKw3idC+IYA3epA9bvPejk=; b=N0Cv2roo0dYJUGW6dC/dAPsfjuo9PUWEDnMNb73shWv/iccLCeNsF62vJhQiKQcojt qT588b05iEdqGkVSXQHrgH5hbaN4NemQ2t7w5xTyR6foExUt0K2X+Gq3DpE4mAA5jNjy 8b+EW59P1RqAwwc2BmCRy1fa46fnyluaJu5Hbo8dUAxywXDDLZgisDTCzjVycvD0Hicf dY+gYs8PpNyUnP9y/mNnyg2IqZ1o63c8ANP4DkN9iTW5pjQLx9eAGLM1bil6OR9MmV3l 2KPwJM3AYSqTMVB0j9v0+SCusi/xbpfN+H/xEYpZtRSvIMwL0YBZafBMETZPaJnpaIuN iSuQ== X-Gm-Message-State: AOAM532sE+IgjFmqOkHoGd+m5tDp9ydZsaVMH3b/tWOoHTo3TKSjOhOB 5y1UcQpLBDOexO3KKFSJRWbvztfLamECpRK1zwTmew== X-Received: by 2002:a25:bd50:: with SMTP id p16mr2476950ybm.350.1634820315230; Thu, 21 Oct 2021 05:45:15 -0700 (PDT) MIME-Version: 1.0 References: <20211019123537.17146-1-vincent.guittot@linaro.org> <20211019123537.17146-3-vincent.guittot@linaro.org> <20211021094412.GC3891@suse.de> In-Reply-To: <20211021094412.GC3891@suse.de> From: Vincent Guittot Date: Thu, 21 Oct 2021 14:45:03 +0200 Message-ID: Subject: Re: [PATCH v3 2/5] sched/fair: Skip update_blocked_averages if we are defering load balance To: Mel Gorman Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-kernel , Tim Chen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Oct 2021 at 11:44, Mel Gorman wrote: > > On Tue, Oct 19, 2021 at 02:35:34PM +0200, Vincent Guittot wrote: > > In newidle_balance(), the scheduler skips load balance to the new idle cpu > > when the 1st sd of this_rq is: > > > > this_rq->avg_idle < sd->max_newidle_lb_cost > > > > Doing a costly call to update_blocked_averages() will not be useful and > > simply adds overhead when this condition is true. > > > > Check the condition early in newidle_balance() to skip > > update_blocked_averages() when possible. > > > > Signed-off-by: Vincent Guittot > > Signed-off-by: Tim Chen > > The Signed-off-by seems to be in the wrong order but otherwise The right signoff sequence should be: Signed-off-by: Vincent Guittot Signed-off-by: Tim Chen Signed-off-by: Vincent Guittot But I skipped the last one which was only a rebase and my signoff was already there > > Acked-by: Mel Gorman > > -- > Mel Gorman > SUSE Labs