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 13063C433F5 for ; Mon, 13 Dec 2021 08:39:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 602BF6B0071; Mon, 13 Dec 2021 03:39:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 58B1B6B0073; Mon, 13 Dec 2021 03:39:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42BE26B0074; Mon, 13 Dec 2021 03:39:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay032.a.hostedemail.com [64.99.140.32]) by kanga.kvack.org (Postfix) with ESMTP id 2EF256B0071 for ; Mon, 13 Dec 2021 03:39:08 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DAEA3605D4 for ; Mon, 13 Dec 2021 08:38:57 +0000 (UTC) X-FDA: 78912120714.04.28796FC Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf11.hostedemail.com (Postfix) with ESMTP id D981140008 for ; Mon, 13 Dec 2021 08:38:55 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id w1so49271763edc.6 for ; Mon, 13 Dec 2021 00:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mhgDMsvRarSfV0WUVOS+UIrf7Z2BgPxSrPMePub8zEI=; b=ev+wZKb9RhuR6DO8+Mc5e9v1nvGYgn5/Jl2RppiCCSFZt39G84O4PobYVmalE3z3Mm KGa/DKT7HYUh3VThDWcNN1Jr/3E3WmfL2kMtcsFHjTZQTaBw4NAczCyVQpxxxQCfhANV eObecQpVIlenUEfnZOKw3AjkLGhsAZ0qbCj1I6srxzZ5wDfmZVh0Q9+bd2GwT3o5P5Ha CNZiSvo2I0BZVH0O3Rt6C+7Y8cSgSSdd/fj1j0CHlOp4a4kWKxnW6t0AwI00GYeLuWcO VjKuBVHNohLRpxxD/lXEhRgreirGTm3zlfeySW4zE8e8qChCZRDHjrq/9xmYIeKxQkQ4 v+2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mhgDMsvRarSfV0WUVOS+UIrf7Z2BgPxSrPMePub8zEI=; b=FzDY0lQb+BjcjRiAkjbQ+QgDyuaHNwvaXnSLZ2WRj36lhV5LsfOtIIgvPl/O25f4AG QerlE2HASvdDE8L11b7wjdei6TxOpgVcEExvDAVFlwHRK/FR5mqF+X7mu20zlCI4z5Xs FMZxhplIa8qnxtBcDNFWnYMGggxM1+7vYC1QLQ4mMQcfjaUDjgjp3E6qibqMgz8oO2co 8Rcs+v5xUSiTPIWYO90oYud04porDrN5kdwQ2hQb4BKmjXcs2rC7EJA2LTw1XORKlNfH z3cqujOB850iWnXJbYFvD+Wg4uZUksDFHMhqZUtX68ok54HDyh/QKqXfNHNGjqx5gEgl 3gKw== X-Gm-Message-State: AOAM5317zgOyrJEayDpRtRLpYDW3lH9/SOAUidgPy4BJiDAZ9Vnvxm2d 0NuivjGD9w9VUHiWfRZEKKt3K05rIBLfl9bwVzk= X-Google-Smtp-Source: ABdhPJyzicQrltpvFvHdvxxR4MA4FPSz4sVTF6W6YypDa+e0iCqDsSkMQnDmhxBDb+aSI37ZovL6TsK1YTM+BZalpW4= X-Received: by 2002:a17:906:7109:: with SMTP id x9mr41899126ejj.559.1639384736111; Mon, 13 Dec 2021 00:38:56 -0800 (PST) MIME-Version: 1.0 References: <20211130201652.2218636d@mail.inbox.lv> <2dc51fc8-f14e-17ed-a8c6-0ec70423bf54@valdikss.org.ru> In-Reply-To: <2dc51fc8-f14e-17ed-a8c6-0ec70423bf54@valdikss.org.ru> From: Barry Song <21cnbao@gmail.com> Date: Mon, 13 Dec 2021 21:38:45 +1300 Message-ID: Subject: Re: [PATCH] mm/vmscan: add sysctl knobs for protecting the working set To: ValdikSS Cc: Alexey Avramov , Linux-MM , Linux Doc Mailing List , linux-fsdevel@vger.kernel.org, LKML , Jonathan Corbet , Andrew Morton , mcgrof@kernel.org, Kees Cook , yzaikin@google.com, oleksandr@natalenko.name, kernel@xanmod.org, aros@gmx.com, hakavlad@gmail.com, Yu Zhao Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: D981140008 X-Stat-Signature: j84bk6ugy7esogiqzobs355bkh5yof53 Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ev+wZKb9; spf=pass (imf11.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=21cnbao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-HE-Tag: 1639384735-762614 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 Tue, Dec 7, 2021 at 5:47 AM ValdikSS wrote: > > This patchset is surprisingly effective and very useful for low-end PC > with slow HDD, single-board ARM boards with slow storage, cheap Android > smartphones with limited amount of memory. It almost completely prevents > thrashing condition and aids in fast OOM killer invocation. > Can you please post your hardware information like what is the cpu, how much memory you have and also post your sysctl knobs, like how do you set vm.anon_min_kbytes, vm.clean_low_kbytes and vm.clean_min_kbytes? > The similar file-locking patch is used in ChromeOS for nearly 10 years > but not on stock Linux or Android. It would be very beneficial for > lower-performance Android phones, SBCs, old PCs and other devices. > Can you post the link of the similar file-locking patch? > With this patch, combined with zram, I'm able to run the following > software on an old office PC from 2007 with __only 2GB of RAM__ > simultaneously: > > * Firefox with 37 active tabs (all data in RAM, no tab unloading) > * Discord > * Skype > * LibreOffice with the document opened > * Two PDF files (14 and 47 megabytes in size) > > And the PC doesn't crawl like a snail, even with 2+ GB in zram! > Without the patch, this PC is barely usable. > Please watch the video: > https://notes.valdikss.org.ru/linux-for-old-pc-from-2007/en/ > The video was captured before using this patch? what video says "the result of the test computer after the configuration", what does "the configuration" mean? Thanks Barry