Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp267856pxb; Thu, 25 Feb 2021 01:50:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5Cg7XMLbg024B+vbq3bEhgWoj1JUvZOohfxXxqWZiJoJcTAzWnG4kXWQulNulaunuuxO7 X-Received: by 2002:a17:906:38a:: with SMTP id b10mr1871952eja.438.1614246631664; Thu, 25 Feb 2021 01:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614246631; cv=none; d=google.com; s=arc-20160816; b=rIz9qoMHZqWUH/mthhawz1X49t8TjcsXgI02/SBVGewfNlJQluidbEMvfXgbvTjWzA CqspRZd5LwTTKt8i7Tk2M2w+1tIdREaWWLFCOxWYT7c/y25TWlPNudPPWLqhWnHBqhdU Y2uNR99ZULDtCCB7Z3vhqLC0XKtroNQWOK2EP5CH6OYSWkmg7SkSIAyGytTH+PtTJcqF XJPa+tPICk6E2ofovuplpiL+qJ+GdslR9+LE5JrJZp9lIoylyT5TNKxXLpnejYgbjqgs XYAV22puob2Gh0Tw5hXgY9yfEPJEaM8uZTnQO6Qr7R8Bhyof9cZ/b6TB7Po6n3C8JV1V 30RQ== 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=WKCCMtCbzxfqTiUSpCCEYULXbcAHFbFe4Bf+kfsn4QE=; b=VAL4yaBh3gCB8i88P48B05L02fruOSorm8OyB+ngVeXy+ZBMLsWK3Jhapg6dFje/w8 lqdSK9fhAXMrtkYe+FUZLkjRWFCvC4fkH1S1ZC2X4uyHkLXALjYfeBiYWJhx1ZPB3vmk ZuPzsqe0tKGn4JhBm7MlnLOZLB6G8OyVAdxVhE+4P52P5n75gpROtPEuJRcqe4G7mog/ ptA/8ao37vZYGsnCAYfH7qpJtYbCFFUyDJjoj22qfewljT6M8GPoTd15XW0q6pFxJdfM SOoxolOX+pn3joCL/U63D+j8y5yGMZu6pLvWyuIMP+ICg95rDMpRzZVqkqoa9F/5mgPO xcPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WoZHMIIo; 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 m13si2822905edi.144.2021.02.25.01.50.09; Thu, 25 Feb 2021 01:50:31 -0800 (PST) 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=WoZHMIIo; 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 S235493AbhBYIGK (ORCPT + 99 others); Thu, 25 Feb 2021 03:06:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhBYIGE (ORCPT ); Thu, 25 Feb 2021 03:06:04 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 871D6C06174A for ; Thu, 25 Feb 2021 00:05:24 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id g1so5392048ljj.13 for ; Thu, 25 Feb 2021 00:05:24 -0800 (PST) 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=WKCCMtCbzxfqTiUSpCCEYULXbcAHFbFe4Bf+kfsn4QE=; b=WoZHMIIo/FnwfF5iZnlntHzXD76+Y5AxT+tTnzEzjE6RQacHBiy1eY9pqXzVdj2tpt +Ov83mhEnFATOL+s1CjTDziralISNqgB3dkXR1Ttv1jT6+2s/BtmXiJrvF/R0tCmdu5V kCd7UWHHpccTjeas+g1hZnLkPKxURl5YhLpFmbtXn+VDTR/b5PF5Uh5wsTnwAGjF4DhD a5KPN6zWbrfo8pejV3xiAvRarQngKGmxFXM9LCfLCBvMoJQl2vPlTWHbXsQkIm3yx7sQ eeKFacryWeHZfZUIV2ey0loF2H2c7yF3gdQ5z2KkeVWX1jeNUcjhCq0L/lF7/T9PRVSg dykQ== 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=WKCCMtCbzxfqTiUSpCCEYULXbcAHFbFe4Bf+kfsn4QE=; b=lUbZi+lhW1L4xZ6I/nRy2sADr7SB4PbtNV1eVf0NJFvfpNWfHfyPlnw0GuulFzHnZD sGyjFG2Ncgi+wX2hozJF399ljGnDUY7Ug3PpSxDqrs6naRGc9Gjj/6JZQbP4V4kBphUS AUJ9WXCcUsi+5J+KLqgi1UabV97pHJhzjLLwkPi86RN80GmC/WrMmsNoyC/+vTf3qbJN 9Iq0YX2moOnpCjpLWGx73P0sQBXHVetoJvTi+ohZf4mY5SKaKH+RCInAeGSZn64KjY+v cGMP5Nu6APKeO7C7FJ/7bsFINmOCwBgdh3Dr0NSa5TcCydFsMExH1qmQSwe6aRHA86RJ HvNg== X-Gm-Message-State: AOAM532i5fnY4lJNHgoUJ4gPA7FvPvLFbxE45/hmbsGbRrGdD76M4RR/ O6oZB0YxJqXholsLRIy6A7ialHEECfUOsX6mSEqgeg== X-Received: by 2002:a2e:b5b4:: with SMTP id f20mr948325ljn.445.1614240323036; Thu, 25 Feb 2021 00:05:23 -0800 (PST) MIME-Version: 1.0 References: <20210224133007.28644-1-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Thu, 25 Feb 2021 09:05:11 +0100 Message-ID: Subject: Re: [PATCH 0/7 v4] move update blocked load outside newidle_balance To: Valentin Schneider Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel , Joel Fernandes , Frederic Weisbecker , Thomas Gleixner , Qais Yousef Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Valentin, On Wed, 24 Feb 2021 at 19:46, Valentin Schneider wrote: > > On 24/02/21 14:30, Vincent Guittot wrote: > > Joel reported long preempt and irq off sequence in newidle_balance because > > of a large number of CPU cgroups in use and having to be updated. This > > patchset moves the update outside newidle_imblance. This enables to early > > abort during the updates in case of pending irq as an example. > > > > Instead of kicking a normal ILB that will wakes up CPU which is already > > idle, patch 6 triggers the update of statistics in the idle thread of > > the CPU before selecting and entering an idle state. > > > > Changes on v4: > > - Add a dedicated bit for updating blocked load when entering idle. > > This simplifies the management of concurrency with kick_ilb. > > > > I believe that solves the issues vs nohz balance. > > One last thing for patch 7: mayhaps we could do a tad better to avoid > duplicate updates going through a heapful of leaf cfs rqs, see > > http://lore.kernel.org/r/jhj4kiht7oh.mognet@arm.com rq->last_blocked_load_update_tick is there only to filter duplicate update during _nohz_idle_balance but not for other normal LB. > > > Otherwise, feel free to add to the lot: > > Reviewed-by: Valentin Schneider >