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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FEB9C678DB for ; Fri, 24 Feb 2023 12:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjBXMrm (ORCPT ); Fri, 24 Feb 2023 07:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjBXMrj (ORCPT ); Fri, 24 Feb 2023 07:47:39 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECAE063DC2; Fri, 24 Feb 2023 04:47:37 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9E51F38C9E; Fri, 24 Feb 2023 12:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1677242856; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FRS6JIVxD98UMfKKQQi4U8ooVdVzZHO1t/2LZ6jiUFs=; b=r3ur6fxcW92yEcWBOA6q76sBEhcOGqHa26Ze7DErSHeh+g0UKez4w4NTMAH1baJ9s0s49f xTKXrXS5ST25dtnvUjd6jghioSjnLxf+zZMwu6tYOw+ri2WBg+7UF2viOdwlud9VBybt96 vFWJK8WI8B5vjik2Bzm3Fp1IyCm1aI4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8174D13A3A; Fri, 24 Feb 2023 12:47:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K39AHOix+GOELwAAMHmgww (envelope-from ); Fri, 24 Feb 2023 12:47:36 +0000 Date: Fri, 24 Feb 2023 13:47:35 +0100 From: Michal Hocko To: Suren Baghdasaryan Cc: Sudarshan Rajagopalan , David Hildenbrand , Johannes Weiner , Mike Rapoport , Oscar Salvador , Anshuman Khandual , mark.rutland@arm.com, will@kernel.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Trilok Soni , Sukadev Bhattiprolu , Srivatsa Vaddagiri , Patrick Daly Subject: Re: [PATCH] psi: reduce min window size to 50ms Message-ID: References: <15cd8816-b474-0535-d854-41982d3bbe5c@quicinc.com> <82406da2-799e-f0b4-bce0-7d47486030d4@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 14-02-23 11:34:30, Suren Baghdasaryan wrote: [...] > Your suggestion to have this limit configurable sounds like obvious > solution. I would like to get some opinions from other maintainers. > Johannes, WDYT? CC'ing Michal to chime in as well since this is mostly > related to memory stalls. I do not think that making this configurable helps much. Many users will be bound to distribution config and also it would be hard to experiment with a recompile cycle every time. This seems just too impractical. Is there any reason why we shouldn't allow any timeout? Shorter timeouts could be restricted to a priviledged context to avoid an easy way to swamp system by too frequent polling. Btw. it seems that there is is only a limit on a single trigger per fd but no limits per user so it doesn't sound too hard to end up with too much polling even with a larger timeouts. To me it seems like we need to contain the polling thread to be bound by the cpu controller. -- Michal Hocko SUSE Labs