Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5988546pxb; Mon, 14 Feb 2022 12:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXpWCf0WMoHqtWwM0OzjUjqd1Lywfc9azZhNpEmbOtuuk4+2pde7uQa4HkAhRBiGWhPEoU X-Received: by 2002:a17:90b:2251:b0:1b9:4d5b:5da3 with SMTP id hk17-20020a17090b225100b001b94d5b5da3mr489582pjb.92.1644870546197; Mon, 14 Feb 2022 12:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644870546; cv=none; d=google.com; s=arc-20160816; b=zPt7BxMCkRTn02GyrudQtOtCZEWWk32CtIZuP0D/Ptv7zv4X8N1m1xGyGpXIoeLJQR 70cgDo1JMuHN878Tqke+brKrTlQnnOKfPevxY/JJpfQGilMVm4eFdrqzNQWswQ24tKxB Gd/WmQekDaq70BbfS0Cu6ZIjD6bjlVjUWJ2W8yKFEZugbuT1k95gqd4JGp9P07sGCO4h llB9oQbWZrmkKT3dWM35TS522ixN6sOm+McNBOQPbgS1BlwKuzyNnj45gtFAs34pPqd5 weYCki29iUJali8gQP8OTML1rp4/g6wJshqGG5PpLdNt7lZsWEOpy+AdkJO+jWJ+ZLzI IT6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rwVAodOL1EH3E2Lb+JFjMWVXe7YxW9eI5axnQQxt+8s=; b=k4So7NuRyrMNTbZp4AtUdbIdp6e3c3PfKEV8ozvEz8y0eI5h/KwjAfPC0g4UAEf0md uAXZpKPQ2FmNMLdeokJH4yvymwi5wG1tsgtcqiZ8J16uPPWou3whMic9P0S7+lSIByAz 8JosuCKyz/8oebeGC0UcaC9dfeHROmDGIhjT4gaoz1eLYWBcMlsAE7Wui9px0yjIJnqC JLbX4H3MJbFLoElVnBYuLTW2JnilQYGnyc+xfa8KFdn4N4dDesunYEV0quJuJ2SlPUPS B9e3hHI6VpvFbxwiz3bRhIz6vDSZVUZIYSfq5jd6ij+5wR1xCW9VAhbNx09cRnVLuYFQ l2KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=Blcmsc5N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m3si10253271plm.283.2022.02.14.12.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:29:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=Blcmsc5N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46AB6193B1C; Mon, 14 Feb 2022 12:01:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235359AbiBNPGD (ORCPT + 99 others); Mon, 14 Feb 2022 10:06:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355596AbiBNPFs (ORCPT ); Mon, 14 Feb 2022 10:05:48 -0500 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCF37B84F for ; Mon, 14 Feb 2022 07:05:39 -0800 (PST) Received: by mail-qk1-x729.google.com with SMTP id g145so14584693qke.3 for ; Mon, 14 Feb 2022 07:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rwVAodOL1EH3E2Lb+JFjMWVXe7YxW9eI5axnQQxt+8s=; b=Blcmsc5N/kIb5n3TBW2qeHMOmRpQxeJLgz/718gzF5QOwt1Joo0UUjQrTiHTfXLwpx mHtQjpUOy3MUi7I8xet5mgQMQZMVzKylhTzcyZp+na2TPRPZDnnsJRkFgdqjqYsY3CqX uBxCoaMyFc2YKDn5I5BZrEHHgZAVtgyutMVV4wwdrkEoxL2HArIbXDzl5eqC6b9B7ti9 fZFU/jIv4MaYGqxX9KX35TOZ+z64y8kiVPoRDNdSnK3EzMcgFkXun7peHhMnlGNuz1fi U8ll9bnwJrAqvMnjoH5EBpE1VJO/lOsAHb2RKjBjbJGIzMVX/7JnydEOaqIHfBIKvigT a1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rwVAodOL1EH3E2Lb+JFjMWVXe7YxW9eI5axnQQxt+8s=; b=15tw90YeBN/dv+nE1ei7KMGO9pxEMxsK/kYt0lJjEaXOF0v3Nb44tyVkjbL272Cn9b gOCUmLPKUsdqbgExtQmeqLff99TqRVrof/1VDErX3Nnvf7zi8DWuZLD36WD+1CNF72/6 18S2lNW5Rw+ZD+otLXG5Wpys19HSBSd2i3KTA5rkAcvh1zJRcUbGvPR9Zd2GcryCAb5A 9tEOKxYpagC0JlEBF6sOKNLM9XELOTMzZQyAfluXIu0Fb9tVpjk6ujy6xxlNdnVwS9v1 JeDejlfKvujTcpHooUiZ/DVv6FNL42cs4KWQnRF0YoGfNQH27F3ecP5G8wKRKfphYgAz N5fw== X-Gm-Message-State: AOAM533yZwT8Vz8TQwH0x7tZYKhu2J2PuWtSBLOPyGYUfoFKPNWGkUBr gL6FrgLdtnoF6+StmhRvgfqF0Q== X-Received: by 2002:a37:a987:: with SMTP id s129mr7341056qke.681.1644851138994; Mon, 14 Feb 2022 07:05:38 -0800 (PST) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id y15sm15842513qko.95.2022.02.14.07.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 07:05:38 -0800 (PST) Date: Mon, 14 Feb 2022 10:05:37 -0500 From: Johannes Weiner To: Peter Zijlstra Cc: Suren Baghdasaryan , Huangzhaoyang , Zhaoyang Huang , Ingo Molnar , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv4] psi: fix possible trigger missing in the window Message-ID: References: <1643093818-19835-1-git-send-email-huangzhaoyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1643093818-19835-1-git-send-email-huangzhaoyang@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Hey Peter, would you mind taking this through the scheduler tree? It's got my and Suren's acks. It's not a recent regression so I'm thinking for 5.18 is fine. Thanks!