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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2231EC3F2D1 for ; Thu, 5 Mar 2020 01:29:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B4BB720866 for ; Thu, 5 Mar 2020 01:29:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="y1apH15K"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZYnJu/Wq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4BB720866 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 04D596B0003; Wed, 4 Mar 2020 20:29:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F409E6B0005; Wed, 4 Mar 2020 20:29:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E087C6B0007; Wed, 4 Mar 2020 20:29:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0210.hostedemail.com [216.40.44.210]) by kanga.kvack.org (Postfix) with ESMTP id C567F6B0003 for ; Wed, 4 Mar 2020 20:29:45 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6DEEB2DFC for ; Thu, 5 Mar 2020 01:29:45 +0000 (UTC) X-FDA: 76559576730.18.cream13_71f82eb4e620a X-HE-Tag: cream13_71f82eb4e620a X-Filterd-Recvd-Size: 4422 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Thu, 5 Mar 2020 01:29:43 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 355FA21C46; Wed, 4 Mar 2020 20:29:41 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute4.internal (MEProxy); Wed, 04 Mar 2020 20:29:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=T9JaF4sGM4j6APTDjyVGLfdoZyWnOlU PZp/Hqn+ZrA8=; b=y1apH15KPMNh2yNs/t38MuiG9vqULi0LjWZ8Ury1oTimMXN hX5b54APNeUiFQdR8N5YAT9tHIxCn7eVzuDYjh1yo586pzuq4Vs6XSlQphYATqlJ akFK/WIxGNNIxnGCwCOnVISQxbl/7KRPhFH14XD9tsDb5bXUfJR6TsRTVlq5rgyc jd9NYf5Vjmq+S5lq7I3SYqXfE+E86CqnYEUE1QOcvAcJB2CHocXxi0kpzjHllyEV x+YHqeFvrCKv3jDYaTjxjxcSqpDUg9nibza8Bt0vpm+PqrzF0nhdojGD9y32SgE8 GtaeSukZXFag/JTYElWPcTXYwkgGsXT7xq7HgDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=T9JaF4 sGM4j6APTDjyVGLfdoZyWnOlUPZp/Hqn+ZrA8=; b=ZYnJu/Wq3I5F4OKn/ROuu4 sZ2gB/Y+V8sfwnXZ0RaE3s/AJhQLc0THe9jvAlNiTOYL4jnCTtAKN9ZW/wTtezWR KUGPnSaAOAttEvL0iFN7JAe3JTLygMONl/Wcov0s92NmjAf2BZN+fFy3PAg9HJSR zmHVvxkXpwTuKuDFfnfJkbqpxMK4Anb85YYKozLeOplZt0n5/9jh2SDpAJBl1eOI eApMgsTWcQTlUOoarKQvsaizLwYqJ5AKFGLxt6AwiRyVRy6W0MSz+j5Ms58UiU41 75Ax1rxAbx4xz8uj6Be8UOkIA1QPnhUvxP8eeYaHEYOn+NDxlVpauBBtkEfTKH9g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtledgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdludejmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder redtnecuhfhrohhmpedfffgrnhhivghlucgiuhdfuceougiguhesugiguhhuuhdrgiihii eqnecuffhomhgrihhnpehlfihnrdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurd ighiii X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 308E214C010C; Wed, 4 Mar 2020 20:29:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-988-g326a76f-fmstable-20200305v1 Mime-Version: 1.0 Message-Id: <5e0c59bd-ad59-4999-9a41-4239b96b1fc9@www.fastmail.com> In-Reply-To: <20200304171051.GK189690@mtj.thefacebook.com> References: <20200304163044.GF189690@mtj.thefacebook.com> <20200304100231.2213a982@lwn.net> <20200304171051.GK189690@mtj.thefacebook.com> Date: Wed, 04 Mar 2020 17:29:18 -0800 From: "Daniel Xu" To: "Tejun Heo" , "Jonathan Corbet" Cc: "Benjamin Berg" , cgroups@vger.kernel.org, linux-mm@kvack.org, "Johannes Weiner" Subject: Re: Memory reclaim protection and cgroup nesting (desktop use) Content-Type: text/plain 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 Wed, Mar 4, 2020, at 9:10 AM, Tejun Heo wrote: > On Wed, Mar 04, 2020 at 10:02:31AM -0700, Jonathan Corbet wrote: > > On Wed, 4 Mar 2020 11:30:44 -0500 > > Tejun Heo wrote: > > > > > > (In a realistic scenario I expect to have swap and then reserving maybe > > > > a few hundred MiB; DAMON might help with finding good values.) > > > > > > What's DAMON? > > > > https://lwn.net/Articles/812707/ > > Ah, thanks a lot for the link. That's neat. For determining workload > size, we're using senpai: > > https://github.com/facebookincubator/senpai [...] For reference, senpai is currently deployed as an oomd plugin: https://github.com/facebookincubator/oomd/blob/master/src/oomd/plugins/Senpai.cpp . The python version might be a bit out of date -- Johannes probably knows.