Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5532311pxb; Wed, 26 Jan 2022 14:18:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsBjVe5We8UlRviEttNpd2JqCxooZn4134MGeXX590rpvFBZddAjio1zDc2qwRr2Yu8bFU X-Received: by 2002:a05:6402:5189:: with SMTP id q9mr1040395edd.314.1643235536707; Wed, 26 Jan 2022 14:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643235536; cv=none; d=google.com; s=arc-20160816; b=H/XhI7TFpUEwQs7dRsOz+VKPlMsRFMlk4cL2X0ua/jN84LPMlu04mhClY8gI1Pdep1 gSujdY5bk5bUC3Yn4m0a/6+kd/YpnPrBQrw3OQTgemWarRTibSFJ+SF7/D/I0cHNfS42 f3/ixACjOkku/+IyjbMEkYZQyII4ePTTKXMUu2NsYAXRdKFya2Jg7oI17Ebs/TE0Pf2V RTY4YU7oLWuJhXllsHjzGw9SHKhF5niBXWweKb+x5ERIBWGa5+UyM4HPWYHRfGTtrwgJ 0Fu3Nw085mblm5V5slx3Xk3y75EAvzfA7VeKQwMGRHHUwhLrlXBYtig6Z4g05aKIXEil 59ow== 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=Hn+3XwLtFaaXewwNrqnpZ08MIqd56MgA4Nzvpzw2Rck=; b=RaE77X6p3aA3QB2JDvYxTRCUCxWu26rHCWyyry9rNj75Cux0KcynPJTy1TBSHQdjmP fP2jkZLXuLVxRDdKHJlYPmftPjsAc/dLUg/8fY3oOZm2sbkjY3H01f26rxARSoSFBFyg E42XWqU5/eUqnNsIVuPT++Nv5324vL1E4vCKL+hMaVZa/4KYef59gNa23yZif2clyBM3 q4j+jvu8UItKYd1FZW1tyUprZMgg/xsE0T7elLIkD+1iMT2xUc1vFRNQ+LiKzCY2hO9r c3lplyq8ie45Y0AXybqwVQAkK2T5sbtZf34zYEy3kJfK7F3Ptyy4TTIjYC8zrcJAHRkJ tkzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=loX2o69c; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si227763ejm.628.2022.01.26.14.18.31; Wed, 26 Jan 2022 14:18:56 -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=@google.com header.s=20210112 header.b=loX2o69c; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243258AbiAZQoZ (ORCPT + 99 others); Wed, 26 Jan 2022 11:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236669AbiAZQoW (ORCPT ); Wed, 26 Jan 2022 11:44:22 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 708FCC06161C for ; Wed, 26 Jan 2022 08:44:22 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id p5so419585ybd.13 for ; Wed, 26 Jan 2022 08:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hn+3XwLtFaaXewwNrqnpZ08MIqd56MgA4Nzvpzw2Rck=; b=loX2o69cxQhfTbzaEheoHgyXMWaVN9Fl0oxkMMeaymKtyfb/tRiCv15dLMUFO5R39a dNhnFqAWDCbIX+sE7BR0FjCwkUB30+XKHMpTd9eZC30WYqQMKlheE+d7ofFQVLQUPMTR s6KPtRFoUFG+FMLGvY6pIGHj8wQHUQ+2MprOCGocfP+vWo1X5i/plCUlJPz6IhQCidis 8/IlzQItYwp2BZ4jhbVFSHGQCijxmFl5PtNn8evTImkHAcsgwUernq90pBSLiHh/cx4C Rjx3BaQ8VtJbDcDvlfRJU/HiHoLFMoBbQJP473y8eCIoYbSjQYYWu2iTcxf2nkv8Phx6 Ajgw== 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=Hn+3XwLtFaaXewwNrqnpZ08MIqd56MgA4Nzvpzw2Rck=; b=crzoEwrKWcI0mAMqxZ0jfrP8cYR2LHxk8na7ZWtPcTJOCfRNmW9qcG0ay1nhJ4/FaV 8KR/trjfZnJp4lBwwTVfxvbqiREaEdl8v52R/Iu9KbcojrA5VMm3dWzXu9BhFtAAOlHB BIiDGPu3l81I8JDEjLChh89nN8aIe0phYEQ9PACmbh/WM0UYz3oiX+uGRtQt94HfuY9N cm6bZm5Ccqc3gWVEZNotxphXVdjcdXuTlNLmjgJgQ3ZwRWEG6nhvfo6Ink6xcwtAGoPu Yrn5EuAvaRvBnSLPnvub73WdrPmQMqpuTTYQyOlkdYnYC3GliE1M/dRlKolL21JjCF+Q qdRg== X-Gm-Message-State: AOAM532O4lXI2CoogQwEKKWFMp7fmbFjj2Leh2FVZc7YkCYUfkJRswSL 1zJxvlTDQUVn/zC45bRVew9vFVhGrqD8ZRRYrIg9ag== X-Received: by 2002:a25:d7cf:: with SMTP id o198mr36466764ybg.602.1643215461475; Wed, 26 Jan 2022 08:44:21 -0800 (PST) MIME-Version: 1.0 References: <1643093818-19835-1-git-send-email-huangzhaoyang@gmail.com> In-Reply-To: From: Suren Baghdasaryan Date: Wed, 26 Jan 2022 08:44:10 -0800 Message-ID: Subject: Re: [PATCHv4] psi: fix possible trigger missing in the window To: Johannes Weiner Cc: Huangzhaoyang , Peter Zijlstra , Zhaoyang Huang , Ingo Molnar , linux-mm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 6:40 AM Johannes Weiner wrote: > > On Tue, Jan 25, 2022 at 02:56:58PM +0800, Huangzhaoyang wrote: > > From: Zhaoyang Huang > > > > When a new threshold breaching stall happens after a psi event was > > generated and within the window duration, the new event is not > > generated because the events are rate-limited to one per window. If > > after that no new stall is recorded then the event will not be > > generated even after rate-limiting duration has passed. This is > > happening because with no new stall, window_update will not be called > > even though threshold was previously breached. To fix this, record > > threshold breaching occurrence and generate the event once window > > duration is passed. > > > > Suggested-by: Suren Baghdasaryan > > Signed-off-by: Zhaoyang Huang > > Acked-by: Johannes Weiner Looks good. Thanks! Acked-by: Suren Baghdasaryan