Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4195050pxb; Tue, 25 Jan 2022 05:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyu+PlgTFU0fM6nn98VwOrIM3fUnbmpxhGqTCX8kp1t2BPriPeaeMrq58gRDt0+M5PgrVkP X-Received: by 2002:a17:902:d503:b0:14b:10e2:f387 with SMTP id b3-20020a170902d50300b0014b10e2f387mr18852602plg.9.1643117671833; Tue, 25 Jan 2022 05:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643117671; cv=none; d=google.com; s=arc-20160816; b=E0qcBVyrHi3xwh2+mcpppjjxTCIbRClGZlhxj41bdjYhevmq7VxTXAppl9yqpcdRc9 gY+O0iTFwOhtab2rksinGKqp8dGJzEBR95byK9citwEhAm4yDHfhyXZKdMmipVJsNhz8 hxW67DkHkjB0Gec3RAb3D4EPbc3EaDAKPMoe1JmKhjYhncPnFhGPX15Oa0/yIrxWKEa4 /pY7Z1YZbliuCfrNQTlQTVn1OUgFYc5M2HR9uiKcfv7zX6Ze5dVYadpNJsuBDu8zaODh faVfXcDAVSMyE1DtL2y9WuTE1ZYDT/lq+U2GsSzlc4dZnTzeQXLK5z4qHR9TuW6+BZ4L c/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=ajetHMusOMv5MjA4FqtJV4K6Rv1DXIf2A7NFybvtOBg=; b=AtFRtedmQigbG95IsRb7/CWCBD/1tceyRJC9hBTsLG8nn4UVUhQt42ORim1XfIkA+7 za5DEhsLjsMcarH7yJXQgRlozRUwr96wMXHdlvAz+HfHw1bfrQ8Vi29FPQplJ9x/OCjE OwuDZZ8L2xI12dBwsgWx9TFRfimPE+ABSFiOl0TOSgVY6UdO7sQEWqJtcYOz3S117H/b y98kTMaUqhXurkjbX7apMmwZoxVR7vM9qIS+qvJff4xs/MKW1VGNYOefReTJAawpr6ar oJK2VFRzEXojSKQV/OeZNBDzknP2Kn18yCgszF5+W54fAhBRe+eNvEqfuKK+uKeM2TLi iRdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@valdikss.org.ru header.s=msrv header.b=ujOBqSM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valdikss.org.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k70si9477337pgd.272.2022.01.25.05.34.18; Tue, 25 Jan 2022 05:34:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@valdikss.org.ru header.s=msrv header.b=ujOBqSM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valdikss.org.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351901AbiAYJPk (ORCPT + 99 others); Tue, 25 Jan 2022 04:15:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1454669AbiAYJAY (ORCPT ); Tue, 25 Jan 2022 04:00:24 -0500 X-Greylist: delayed 572 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 25 Jan 2022 00:29:43 PST Received: from mail.valdk.tel (mail.valdk.tel [IPv6:2a02:e00:ffe7:c::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06B7FC061A7F; Tue, 25 Jan 2022 00:29:42 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D20D630E0B2; Tue, 25 Jan 2022 11:19:28 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valdikss.org.ru; s=msrv; t=1643098785; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-language:in-reply-to:references; bh=ajetHMusOMv5MjA4FqtJV4K6Rv1DXIf2A7NFybvtOBg=; b=ujOBqSM7nDajeMukRW01MApD5VpGTge2NqZpuKjf7kAjIrteoat/HGOSFYNQByv+8bPA5j ULKcEcPKEP7QTt37CN4Y/BddHVubhMOe2Gjv7nnFX0y4cmGmc5WRVMeKEcHda+WLD8a44k kAfn/L1rKTpijAgjCPNNRf2vF6wZGODGl9lhjLI5vaf9rndD4mmECcV9a4z5gTKoabPETB pCVQEuDjvF9HMsshVfXKxxdCB/U1UaKbxYXzcb1P8LvjM7xmilrtTBZxJvinQmwvTpxnwY tHhzQYrvxeGL387sUUFgL+ilSsT0vf0h8ndDWmezp1axkqYL0OVJzrBZqCXhOg== Message-ID: Date: Tue, 25 Jan 2022 11:19:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.5.0) Gecko/20100101, Thunderbird/78.5.0 Subject: Re: [PATCH] mm/vmscan: add sysctl knobs for protecting the working set Content-Language: en-US To: Barry Song <21cnbao@gmail.com> 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 References: <20211130201652.2218636d@mail.inbox.lv> <2dc51fc8-f14e-17ed-a8c6-0ec70423bf54@valdikss.org.ru> From: ValdikSS In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------060fOdz280xaOYH35TqyCEYA" X-Last-TLS-Session-Version: TLSv1.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------060fOdz280xaOYH35TqyCEYA Content-Type: multipart/mixed; boundary="------------GpvSgEWNSIxnhxGEHv7X0t4X"; protected-headers="v1" From: ValdikSS To: Barry Song <21cnbao@gmail.com> 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 Message-ID: Subject: Re: [PATCH] mm/vmscan: add sysctl knobs for protecting the working set References: <20211130201652.2218636d@mail.inbox.lv> <2dc51fc8-f14e-17ed-a8c6-0ec70423bf54@valdikss.org.ru> In-Reply-To: --------------GpvSgEWNSIxnhxGEHv7X0t4X Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMTMuMTIuMjAyMSAxMTozOCwgQmFycnkgU29uZyB3cm90ZToNCj4gT24gVHVlLCBEZWMg NywgMjAyMSBhdCA1OjQ3IEFNIFZhbGRpa1NTIDxpYW1AdmFsZGlrc3Mub3JnLnJ1PiB3cm90 ZToNCj4+DQo+PiBUaGlzIHBhdGNoc2V0IGlzIHN1cnByaXNpbmdseSBlZmZlY3RpdmUgYW5k IHZlcnkgdXNlZnVsIGZvciBsb3ctZW5kIFBDDQo+PiB3aXRoIHNsb3cgSERELCBzaW5nbGUt Ym9hcmQgQVJNIGJvYXJkcyB3aXRoIHNsb3cgc3RvcmFnZSwgY2hlYXAgQW5kcm9pZA0KPj4g c21hcnRwaG9uZXMgd2l0aCBsaW1pdGVkIGFtb3VudCBvZiBtZW1vcnkuIEl0IGFsbW9zdCBj b21wbGV0ZWx5IHByZXZlbnRzDQo+PiB0aHJhc2hpbmcgY29uZGl0aW9uIGFuZCBhaWRzIGlu IGZhc3QgT09NIGtpbG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5DQo= --------------GpvSgEWNSIxnhxGEHv7X0t4X-- --------------060fOdz280xaOYH35TqyCEYA Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEMiogvXcpmS32v71gXNcgLu+I93IFAmHvsowFAwAAAAAACgkQXNcgLu+I93LM VA/8CoW/5xkgx7D1CDH+ZGLAq+5TFsxMpWEkBZcx3DPiU4wnbtgbL/IwT5ro0Xo/VQQ9TOudB90M zfnpsnlIaO5cVqFcE6vh6mHkVmlOCXod4WJ9P6B87ipd4BQ4pXRQVBBbDSGAexBILjG61/SZuF87 bsoyb4n9+9ZubAVlm6V596hyrRfTqvSbUS1j8TdruOmzEIssiXlCYXuATxdvjTA3QssFz5F8Gw1C rQvIJUcxiZN8kPPCPIH55mZBvv5cwm18pd9s7ZFvJ2i4Cn0+h11/WIDnCopn9ko0wJsBL0CIFfuY WtQQOfBsJx2Egd22slfMUpnM+uG96Cm5R55d0dt2OTjHuIpV46aYwSp1wrVF5kLavKibI1ob9j5W ChHE9qgfUjTWd/4LyT6V83AqRsyrVlsUX0nWhHZor2Wh/T+51X2Dvc2j8wqUiNokJWsRtQYlrvFc 7ZGtf1fz62VJhipW1kYO/ZirhM9lseCQWhS6lHrxy7309qaBoCXeQWTqNLwmkW6DPP0XqnrIQUyK ZKj8436GMw+2xgF9VIwE1BsfJGkD5Y2PMPP2Ww6tM64iT15/wq9rNEGKQ+GJoYD3wX9MqL4YzoEx 2WCrphjY2Dlhwdqaf/suW6ikVf38uk0cNwEjJ8vrTsvdrzjuYC9uvnRgSbPjhMISfXfHrfE/mlyp Foc= =u7UI -----END PGP SIGNATURE----- --------------060fOdz280xaOYH35TqyCEYA--