Message ID | 8b7a3270fe253de1cd2b71473e29394409b2a0f7.1676067791.git.quic_sudaraja@quicinc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 528D4C64EC7 for <linux-mm@archiver.kernel.org>; Fri, 10 Feb 2023 22:31:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DEF5C6B0202; Fri, 10 Feb 2023 17:31:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D9EF46B0204; Fri, 10 Feb 2023 17:31:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BA4256B0205; Fri, 10 Feb 2023 17:31:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id A20C66B0202 for <linux-mm@kvack.org>; Fri, 10 Feb 2023 17:31:26 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 79E0B1C6612 for <linux-mm@kvack.org>; Fri, 10 Feb 2023 22:31:26 +0000 (UTC) X-FDA: 80452829772.16.34E98F8 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf18.hostedemail.com (Postfix) with ESMTP id 0834C1C001E for <linux-mm@kvack.org>; Fri, 10 Feb 2023 22:31:23 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=fcfkfN1K; spf=pass (imf18.hostedemail.com: domain of sudaraja@qualcomm.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=sudaraja@qualcomm.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676068284; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to:in-reply-to: references:references:references:dkim-signature; bh=3rQq0M5c931UdY9o+/rvHh66nmcY55XG+xeXQsM0jW8=; b=dKogn9PXG3iTRqJMpTmnhevcyZpsAHtUEtla4L0rwuj9fbtdsfPR+yK9Pi+lUq4IJFWbT5 ONTIYURSmRDIWWQtJrcBZaML7FHJPMqHPluVPNO0CX7fJ0z6szFuPcvyUq3No97DdtxCVt n93RZ+4/JXEWwcsCbRkYCIFV5tmVqRQ= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=fcfkfN1K; spf=pass (imf18.hostedemail.com: domain of sudaraja@qualcomm.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=sudaraja@qualcomm.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676068284; a=rsa-sha256; cv=none; b=zt0xKt/3vfoacj3CPo8qRXQGzzIm8LbuApVqh+5OUmvDLwV5EnR4XbL0o5g2QFYOet3mc8 m270eaX+DxuLMZYXrxURYbJwRrMkMYOechJXcUqikD4oqCa0fwwrKVBKhI2iezKuAUxXDN fRlcHDkTYNtAH30CUc53l85j0NuTP2g= Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31ALd11l026130; Fri, 10 Feb 2023 22:31:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : in-reply-to : references; s=qcppdkim1; bh=3rQq0M5c931UdY9o+/rvHh66nmcY55XG+xeXQsM0jW8=; b=fcfkfN1KgE5nUnkMKamgjfysPjMtx8nMYNirhDXJDIR1sTzFMYHmJlook38YkvZB8Ohy SsRlVOsaH5LnZIva0lMeyK1bnhD2esdD8Xpiz9Ijy3p7WZMmY54TXzYHCKyO0HKyXxU5 mgYT5mMm4oYAteAL3pxHLnaOgaZqbKl3nd5ESg1mx9R3um3JL4kgCpB3RmiSRDjx0ivb rNYBdAV7G3yviqhdP3Q8NXlNrTHfGs6XrYw/t61qCWyVbgjWvo9ePCtd8gtjHB7iHlwv gtjSNyvVaYEE8hqIsXR9GrYqCQQaRi2qI4aKdWNu+RcWJ7Xgg4oOR6NTWA5sHqV7qoaP gA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nncxttcjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 22:31:09 +0000 Received: from pps.filterd (NASANPPMTA02.qualcomm.com [127.0.0.1]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 31AMV87B001702; Fri, 10 Feb 2023 22:31:08 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NASANPPMTA02.qualcomm.com (PPS) with ESMTPS id 3nmwfp2y40-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 10 Feb 2023 22:31:08 +0000 Received: from NASANPPMTA02.qualcomm.com (NASANPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31AMV8GE001692; Fri, 10 Feb 2023 22:31:08 GMT Received: from th-lint-014.qualcomm.com (th-lint-014.qualcomm.com [10.63.177.51]) by NASANPPMTA02.qualcomm.com (PPS) with ESMTP id 31AMV78j001691; Fri, 10 Feb 2023 22:31:08 +0000 Received: by th-lint-014.qualcomm.com (Postfix, from userid 455663) id B2AA2DA3; Fri, 10 Feb 2023 14:31:07 -0800 (PST) From: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com> To: David Hildenbrand <david@redhat.com>, Johannes Weiner <hannes@cmpxchg.org>, Suren Baghdasaryan <surenb@google.com>, Mike Rapoport <rppt@kernel.org>, Oscar Salvador <osalvador@suse.de>, Anshuman Khandual <anshuman.khandual@arm.com>, 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 Cc: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>, Trilok Soni <quic_tsoni@quicinc.com>, Sukadev Bhattiprolu <quic_sukadev@quicinc.com>, Srivatsa Vaddagiri <quic_svaddagi@quicinc.com>, Patrick Daly <quic_pdaly@quicinc.com> Subject: [PATCH] psi: reduce min window size to 50ms Date: Fri, 10 Feb 2023 14:31:02 -0800 Message-Id: <8b7a3270fe253de1cd2b71473e29394409b2a0f7.1676067791.git.quic_sudaraja@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <cover.1676067791.git.quic_sudaraja@quicinc.com> References: <cover.1676067791.git.quic_sudaraja@quicinc.com> In-Reply-To: <cover.1676067791.git.quic_sudaraja@quicinc.com> References: <cover.1676067791.git.quic_sudaraja@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: kWrxcnxV7F0kx70P-NQNA-dawBSVIoHI X-Proofpoint-GUID: kWrxcnxV7F0kx70P-NQNA-dawBSVIoHI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=739 clxscore=1015 bulkscore=0 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100193 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 0834C1C001E X-Stat-Signature: son7uoubrp8pjkaoms438io55zmepczp X-HE-Tag: 1676068283-162251 X-HE-Meta: U2FsdGVkX1/ZSYMoIeP+NKUJUFyUOh8TtBN1cuALwgWKSZtg2ircODHWZOhXngYlb5u7tz/An28wYzITFFjTyluaKxIn+okHQXKCBncliHEdgzt8m+By/WUpKvXuR90mZunpKocvmWn1UGo+QicGIoJ70tSJdOrDJC6CRD+4XwtNQUgVe78dpfGq0MDY/ddYMB//cPydsyJAF9n0WborcpmyCDbLy995EudpA8+z6JplIGJAQsPnTdzZgKecr7sJBORmhcUD3E/+ctuYI2Fu/Tv2e4N+MA0wwv0anTkOHDBzUDQRlKxYjS17/SznyN4TRfyLM1PFN5Ev35rg5mmVsIU9RA7px8r+Q71AO2IHuiNsA8a3LHyeL8/9yIrr7Cm4dr7R4e3QSx7l0+aYOIvdeybH8EzpFZmeMFaDTIU1mypBqFTWXfUcdjeFVOEQqOZ/VSaGfmmApzUQolhRQV3mYlEchasp82QVfEEF0MyCObg8GXgSS7GRBWOmw8GJwT5UCIMxhHeA/QZE5ochV90FbLCHNh8PH7Wme/EyJRp3OlISa9d/jM10DX70js329Yl7Gh9X5DHsZm9POKwGLkCVA8/p29j3cM7J/OG4U7bXdB1gglcbLoB7c4WDUIiw9dwI9N/m/ajR1Zoggmzwy/1Wg9gbO+cMS+96uoIeTJGGAuXC9Xt7pxD1MUmeJAtGghzMhbmqC3wtCvVkdushVjZupTJiBxz94+J2bktfnFt2m0CU2d+De7v3RPxAfvwP/5Oh6ZnVBXaNkRcgPSQk3mmNU29ziYeHeAQW2ffdB0aquPSfQruKtPWVAHljpHKA4AMnWfOhf7PaJEnHIMNtOXoqhmyymEMiN8Up0BQOFdEkwp59mRgfV2wuBqGs1p5+NY1peQxwe68jPAp7ASVvNCFMvhtJW98/MEK5EPQxlOsr0hzkTUgK2s67k0V/N+iN7jya8Zfh22KkOcWyGg5spYW LYL8RI6x GN8MxtFXVpUV3XEH0N2jMQz3nqzWWkFThi6j1bRInT+P6dbcLsSDog59gQb55kmM+LvYg/l4/7Xvn38UydBDY4lL1mQkKWCW+hBfkwhNZUsHpZzxzTA3PhG4C9dwD7dK9A563SAMs0s4asEmrV3Y+abwuHEvMHTINO7as9DwirnSWZT2VjP5mCdf0RySy05kvGT3PgAhnLOXtlTTHwydO/O1Ewcfw5X6hDIHlNsEl07c6zdrSGmXwq+zq6vCBxbyu8s+1afX3dagzDYI2Twdv7cG58eXcoKPte6jjzN7pY59aTg65E1n/d1jgXSaUIt2eGrFoanIXCGE9Bn7xtBv9pIpKj5NBFaXHMa83XAYpTHlv+/LIU46WREg2+wmDkB3NyOHTtnd5ASgiScG2/GIj+quv1i3m4C3BtNaW 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: <linux-mm.kvack.org> |
Series |
psi: reduce min window size to 50ms
|
expand
|
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index ee2ecc0..6eabf27 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -160,7 +160,7 @@ __setup("psi=", setup_psi); #define EXP_300s 2034 /* 1/exp(2s/300s) */ /* PSI trigger definitions */ -#define WINDOW_MIN_US 500000 /* Min window size is 500ms */ +#define WINDOW_MIN_US 50000 /* Min window size is 50ms */ #define WINDOW_MAX_US 10000000 /* Max window size is 10s */ #define UPDATES_PER_WINDOW 10 /* 10 updates per window */
Few systems would require much finer-grained tracking of memory pressure in the system using PSI mechanism. Reduce the minimum allowable window size to be 50ms to increase the sampling rate of PSI monitor for much faster response and reaction to memory pressures in the system. With 50ms window size, the smallest resolution of memory pressure that can be tracked is now 5ms. Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com> --- kernel/sched/psi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)