Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6019124pxb; Mon, 14 Feb 2022 13:16:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzIWKkrz/t81Z3wLIpe3CXshHhxfLLC2GwAcYpQinP6us5gusj50TsZUco5DRXivY0CEOD X-Received: by 2002:a17:902:7797:: with SMTP id o23mr699218pll.111.1644873383200; Mon, 14 Feb 2022 13:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873383; cv=none; d=google.com; s=arc-20160816; b=PKvF43kctcld5W/I5dftm+uXAZL2EfMbmhBRqq60fI4ZpYjHibOuaVEfIt9B9SELr1 uOuK19Ghu+gtFiBdyH0nLy2L8wP5K8D/pbN37OqmY6OL/5lSBBTGCBfSU7sMOGk+qzZf uUSzKvw/mlaojrtFXEBnua0ppzrG9w1dB1IWWBZzoPjPuwRJc21RNCW6CSYtYDMGKDJd jAxJJDZv9ISxqKXcnZLmQ4Pdy/lUe+h7X6M4OA2CgBeo+b9ruDuINVwRLDRqo/UfYQ/z BFL/lFjYtH5kXYPcmt5rDMDBQGzE41tbVmwdHWtLWSvgVnSCapzzsvtVvbTOgwoSJb92 uhRQ== 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=gWxjbdrkRGmqmtbjFFW9HNxR1us/bLZnWaqnhT7labg=; b=H8N5jG0AjLWdYgd2RGbrnAEZsMqv6yzxQEGpRRUmrjA8jSK0LRBCjdh/35rvQa9qFo b4KnF5Z4UtR+XEnFpPFZ5d5rXUQlbHE/MWaSiY6zqNX5Q8fsCAIwGZOqsVjZnRbiqhWw IpgO5dkvRnJ9tXeVLBa+kCxxb2Rn2OpKq3QRiEf63yr4qz9L1v3fFBKLBIqCY87/TQdi ts1bIuTGhBAwf0gYmSJgZFpRpU6NAbN4d5vPKQT1fwQJR/9udhmbTbP9BK+Smor3UoW9 3z7shnhoqcrqZD2Qz/jKByu+zEe5RPWhUyUAnhVpwy8DcEy+GGtb1h6N/TDq1ZmDk1+S 1qDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PEeXRgIn; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m15si31674513pfc.252.2022.02.14.13.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:16:23 -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=@infradead.org header.s=desiato.20200630 header.b=PEeXRgIn; 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 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7536C1A275A; Mon, 14 Feb 2022 12:35:12 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355637AbiBNPKU (ORCPT + 99 others); Mon, 14 Feb 2022 10:10:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243886AbiBNPKT (ORCPT ); Mon, 14 Feb 2022 10:10:19 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 249B439A for ; Mon, 14 Feb 2022 07:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gWxjbdrkRGmqmtbjFFW9HNxR1us/bLZnWaqnhT7labg=; b=PEeXRgInirf88NuCQkEIcfLaWd tKQXFQQCU8xD2LfzbZNdRQzaN0L8eWGX0RxMCvyhpq9OYq/SYvH1YyBwyf1zrZF5eVlLeP5gBgdpW Lo0BVAV7eSSPBeNf5hpCMrWpQ1kEa+yHEezt4rn7X3Hgo3jcw4SD/kWrEQ2yaSXo8qDU1lWHTys99 ZLOfQeXzH3uZfS8722Us9fLCC+ZmRclxtCYidi2ZyjGO0c0IlMkhpTt92SqbcSkgt+k4eg7jajjij Veu1t+8kEeg39QzeNnCF8VagIrtniDvSQtp67FrlktGiMxa2AY0r8Nfp05rkwlfmOC9x1mB3K2wEN qDusvu8w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJczD-009vjC-6r; Mon, 14 Feb 2022 15:09:55 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 73EEA30003C; Mon, 14 Feb 2022 16:09:53 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5105120CE5792; Mon, 14 Feb 2022 16:09:53 +0100 (CET) Date: Mon, 14 Feb 2022 16:09:53 +0100 From: Peter Zijlstra To: Johannes Weiner 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: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Mon, Feb 14, 2022 at 10:05:37AM -0500, 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 > > 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! Sorry, missed it, got it now. Thanks!