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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63CDDC433EF for ; Tue, 8 Feb 2022 08:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4bt05IX+Nab3Q37sYZUGMUu22knuSxenyh78c1gXosw=; b=V6fyYd//29uQpW BTcvmdJSjVotxBcHrwxCWW2fB4T8VVJWHZCwCoj6zja6u5eB/bg6DIds2lBzN/3FPnGqJhimGyW2i C/YWC4A8OXE8DDNrMAzPusgNosTT8DBAj1HFo5rUol3kJfGu1zufY54GPzrnwooc7EbDzwcCTfaDb HDXu4+Tp41GIq7BJB7Lut/Rn1cANSJENsak86SC8/fkYQKHWuH+PCVtL8G7ywU0Tcy9tmzx4Wqsqr K3Vr78X2Zf0zm/oPR2KqSkLmpi1aFh3nRLm29DhqlssXP7YQ5GJTSXEf9P/U3mlkij144UzfPx+QD JboLX5THL9uuM54Qd5wQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHM6V-00D2qF-HE; Tue, 08 Feb 2022 08:44:04 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHM5c-00D2M6-TO for linux-arm-kernel@lists.infradead.org; Tue, 08 Feb 2022 08:43:11 +0000 Received: by mail-io1-xd29.google.com with SMTP id d188so20204668iof.7 for ; Tue, 08 Feb 2022 00:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Co3BUFT9beNFmBZeCDmBd4UzULJVNB7vW9mGtuUcPnM=; b=ohrEubPZBSY43eIQ5NQCK0B4O7CFbJ/HpKhbez278dzMobVWnfF2oOF3sOrc74B4QQ U41143EltG56aXzdjjzZm/GU4cXZGtH83mvjb2qCX+F563MQ3fpmYtycdSu5kzshBVG8 DqWBAyQynUJHXWlGwhPQOK9if98mUmdwJ8Ir1N0avBzJ6forpYNFs3XqdV58s5cnDsMU W4bwCOSsmJHJTrTl6UvTk9gc5iIIE+0JWF2n38A2tLyC+ff1QK0lTH4UBYtz+UVESmVG gAIT3JizZEMLq6e110ENj51HMCyTWq0cX5c1QvY5BLrH4EK1/TJW9WkstrnYoO1NG7hG geNQ== 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=Co3BUFT9beNFmBZeCDmBd4UzULJVNB7vW9mGtuUcPnM=; b=vrVB7lXRq3u9VCR+rIe6IOwaDSfyTKt80i8aaAznyYGQPIAzZphx50vgS+nSLYnt3u bsiAi5VVTg+/p4DZGKR858Ku8gbDhGY5f9G0+T0fG24EZN49malcU1j/lDTjwk2UHppf b23orxrBrzyIbDgKyPSzEH10yeJxxjkBIxopHMcLF/Y3Sr5wm7lYHenMHkxPKlr9chHB cvGDkgkDA4TMp9iRPErFJpbLRWnmso813HUSU1OqJy9w/0PNzzZsXFcvdP1GqjyfK7G8 5W9jyDR5VJ7wbmpOBXuatO1IJtF1gHHcIlfKM8NplJ1Zj/0Y2SU913rdSaJbr0C0kVOb JflQ== X-Gm-Message-State: AOAM533LN10WpFJAk5LXZexnD6cew2vdSbXCyrKTa+arlGZ/ghHXc+lb SYKpFp8SNum/kD5Q9NISNWoQ9g== X-Google-Smtp-Source: ABdhPJzBcDi7EsMql8HPyIUlcRBl/OsFwSyoeS5mkLvsu+udWvl2GtuObFdyWK2J++yBEFuvf+uvKg== X-Received: by 2002:a05:6638:1501:: with SMTP id b1mr1620304jat.251.1644309787998; Tue, 08 Feb 2022 00:43:07 -0800 (PST) Received: from google.com ([2620:15c:183:200:5f31:19c3:21f5:7300]) by smtp.gmail.com with ESMTPSA id x7sm3011504ilp.88.2022.02.08.00.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 00:43:07 -0800 (PST) Date: Tue, 8 Feb 2022 01:43:03 -0700 From: Yu Zhao To: Andrew Morton , Johannes Weiner , Mel Gorman , Michal Hocko Cc: Andi Kleen , Aneesh Kumar , Barry Song <21cnbao@gmail.com>, Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Jesse Barnes , Jonathan Corbet , Linus Torvalds , Matthew Wilcox , Michael Larabel , Mike Rapoport , Rik van Riel , Vlastimil Babka , Will Deacon , Ying Huang , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, page-reclaim@google.com, x86@kernel.org, Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , Holger =?iso-8859-1?Q?Hoffst=E4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh Subject: Re: [PATCH v7 10/12] mm: multigenerational LRU: thrashing prevention Message-ID: References: <20220208081902.3550911-1-yuzhao@google.com> <20220208081902.3550911-11-yuzhao@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220208081902.3550911-11-yuzhao@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220208_004308_988468_E797F662 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 08, 2022 at 01:19:00AM -0700, Yu Zhao wrote: > Add /sys/kernel/mm/lru_gen/min_ttl_ms for thrashing prevention, as > requested by many desktop users [1]. > > When set to value N, it prevents the working set of N milliseconds > from getting evicted. The OOM killer is triggered if this working set > can't be kept in memory. Based on the average human detectable lag > (~100ms), N=1000 usually eliminates intolerable lags due to thrashing. > Larger values like N=3000 make lags less noticeable at the risk of > premature OOM kills. Refactored min_ttl into a separate patch as requested here: https://lore.kernel.org/linux-mm/YdxSUuDc3OC4pe+f@dhcp22.suse.cz/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel