From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20AFDC433EF for ; Mon, 14 Feb 2022 15:10:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4C226B0075; Mon, 14 Feb 2022 10:10:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FAC06B007B; Mon, 14 Feb 2022 10:10:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8EA246B007D; Mon, 14 Feb 2022 10:10:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 7F3286B0075 for ; Mon, 14 Feb 2022 10:10:09 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4479722B39 for ; Mon, 14 Feb 2022 15:10:09 +0000 (UTC) X-FDA: 79141720938.04.39DE74D Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf23.hostedemail.com (Postfix) with ESMTP id 7E2B2140013 for ; Mon, 14 Feb 2022 15:10:08 +0000 (UTC) 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: Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=PEeXRgIn; spf=none (imf23.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none X-Rspamd-Server: rspam07 X-Rspam-User: X-Rspamd-Queue-Id: 7E2B2140013 X-Stat-Signature: xq7xfk3pzizxor3yxaoqrw7f7zhretzs X-HE-Tag: 1644851408-257168 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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!