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 1A1BFC433EF for ; Fri, 11 Feb 2022 20:14:48 +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:MIME-Version:In-Reply-To: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:References: List-Owner; bh=0twzkRn6xFW+1lQBYKaMuF9GaToLEowyejivgHCo6Es=; b=ANrR/7g3jyFw0c 46GRtESiLQxnR//sfpSfjrpdLrVIQp7h7Usdzjyd5yuY1x4UUfEpDIcjph+XROmjZbqoiTbWtoeGR jh0Sd2jQLMYMIpWK1L656j4BcYI48ZUpeXpRGlWat5+/uVm39Fi5CuCwFaFURPNg+RnjGcPZEJh6K pJ536AchQLNn19pAkSCxEKKuFgBPjWNId0KCLB0LqV6kltFo2W4rA45jzp3u6Lxm8CQN/5aD0Zpuk IgXFkH9mbuPdMREj7Nx1/TmNunfyMVLhSzRH9YV0qTG+hRSQCsZWB9FLzSfNsnqpVPZdqDTW8gJzq 4TTdQAQtzPql0D0NXftw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIcIP-008fmc-87; Fri, 11 Feb 2022 20:13:33 +0000 Received: from mxs1.seznam.cz ([2a02:598:a::78:125]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIcIL-008fmF-Ov for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 20:13:31 +0000 Received: from email.seznam.cz by email-smtpc9a.ko.seznam.cz (email-smtpc9a.ko.seznam.cz [10.53.11.15]) id 6ca3cf4ff891bdd66bbed5ab; Fri, 11 Feb 2022 21:12:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=beta; t=1644610357; bh=IgtwdA4RN0Wg/7hbsEWLru8iFgUbT7+Jga+cWjzCwH0=; h=Received:Date:From:To:Cc:Subject:Message-ID:X-Mailer:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:X-szn-frgn: X-szn-frgc; b=TSlECtO1MvwQg6z6ntNkJpM6bWtiNBvrIhXhSLROT/yqfHK8p3UExbv1PywKgy8mz VhCR+ETL/Mb7OGTqpY2mQdF2vJiQz7oylXweEra5QbQa446vsVMJ0JoSEQY2C62yte 5mjztOGg8CK31AlcWSViqpK4PknDWf9r9JhJtcUA= Received: from PC (49659.s.time4vps.cloud [80.209.232.197]) by email-relay27.ko.seznam.cz (Seznam SMTPD 1.3.136) with ESMTP; Fri, 11 Feb 2022 21:12:33 +0100 (CET) Date: Sat, 12 Feb 2022 05:12:19 +0900 From: Alexey Avramov To: yuzhao@google.com Cc: 21cnbao@gmail.com, Michael@michaellarabel.com, ak@linux.intel.com, akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, axboe@kernel.dk, catalin.marinas@arm.com, corbet@lwn.net, dave.hansen@linux.intel.com, hannes@cmpxchg.org, hdanton@sina.com, jsbarnes@google.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@suse.de, mhocko@kernel.org, page-reclaim@google.com, riel@surriel.com, rppt@kernel.org, torvalds@linux-foundation.org, vbabka@suse.cz, will@kernel.org, willy@infradead.org, x86@kernel.org, ying.huang@intel.com Subject: Re: [PATCH v7 00/12] Multigenerational LRU Framework Message-ID: <20220212051219.183d1baf@PC> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) In-Reply-To: <20220208081902.3550911-1-yuzhao@google.com> MIME-Version: 1.0 X-szn-frgn: <2589a48c-6a4d-4565-a2e2-23674c43dbba> X-szn-frgc: <0> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_121329_968228_E0FA1794 X-CRM114-Status: UNSURE ( 5.23 ) X-CRM114-Notice: Please train this message. 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 Aggressive swapping even with vm.swappiness=1 with MGLRU ======================================================== Reading a large mmapped file leads to a super agressive swapping. Reducing vm.swappiness even to 1 does not have effect. Demo: https://www.youtube.com/watch?v=J81kwJeuW58 Linux 5.17-rc3, Multigenerational LRU v7, vm.swappiness=1, MemTotal: 11.5 GiB. $ cache-bench -r 35000 -m1 -b1 -p1 -f test20000 Reading mmapped file (file size: 20000 MiB) cache-bench v0.2.0: https://github.com/hakavlad/cache-bench Swapping started with MemAvailable=71%. At the end 33 GiB was swapped out when MemAvailable=60%. Is it OK? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel