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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 49240C2D0C3 for ; Sat, 28 Dec 2019 00:23:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EC02C20828 for ; Sat, 28 Dec 2019 00:23:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.b="i3YoAEf3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC02C20828 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 824488E0005; Fri, 27 Dec 2019 19:23:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AD5C8E0001; Fri, 27 Dec 2019 19:23:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 674C78E0005; Fri, 27 Dec 2019 19:23:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0063.hostedemail.com [216.40.44.63]) by kanga.kvack.org (Postfix) with ESMTP id 4EF2E8E0001 for ; Fri, 27 Dec 2019 19:23:13 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id CF8A4181AEF10 for ; Sat, 28 Dec 2019 00:23:12 +0000 (UTC) X-FDA: 76312650624.12.salt89_5633f731f4653 X-HE-Tag: salt89_5633f731f4653 X-Filterd-Recvd-Size: 3702 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Sat, 28 Dec 2019 00:23:12 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id q10so27523915wrm.11 for ; Fri, 27 Dec 2019 16:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1KyYQ5Zcs22K/7e4CJrn6UHz29HnjXO1go/8UaQ7ENk=; b=i3YoAEf35kjETtCM1h3cBxqNruCxiXPK2RY51ObXUxCak7/yJpc4y4Bntq3hkDvTkf 8zYX2hscEIF24rzyg85oOrEd+abjB+vCY+FdkJpyrT1XtSKp2UkEe0L3b3IBBCwLvg9M qOnshnkNSgj3AsUbW+p5oDYdjxv3GqcrHRE4I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1KyYQ5Zcs22K/7e4CJrn6UHz29HnjXO1go/8UaQ7ENk=; b=nHViJ+EMmH6UmDJn3zCWjayF3Oi2vdpb/qZ/LetOT/5u+ZYDkDHi+OzTcsWaxwqWOP A0iZeZgNCjLl5a3/qlvgxgk19J6cBIWlY3/+MuG4VuusYk+12icUPWf4AKqKVSwKc9V4 WpJ2b8C4UPHzYB8ueIOXs9KXW1OnzL+Jz9b+5UCkkwnCeNQQy7LdlwHJMVh9baqhxKG0 Tkzh77AN0lGGay1Y1UZZN9MbhTAwcMNa+xEt//HPwPH3DTKdT3XZhqHf27KNlA2haSiU 8E4YwLavspG438eI4wD6TGVJ/cFxBmNsUBPzGO9CHfMSqaeKsDfjouPc26vFOaXKfDRj 73xw== X-Gm-Message-State: APjAAAV6NzqUSZkdt+68mTPhl46wNWRgN32syEH/LreZalld2wkJHZL6 LLPCqPtNwV5Z/jRWiRLmpNO2YA== X-Google-Smtp-Source: APXvYqxjUVbh5Y/iif8CwBBRe5IRvGdf0iYSP5smFNNCvzQAiZr+YEAe0NuUL/QgJRf5hGxCsSt5Jg== X-Received: by 2002:a5d:558d:: with SMTP id i13mr53383812wrv.364.1577492591012; Fri, 27 Dec 2019 16:23:11 -0800 (PST) Received: from localhost (host-92-23-123-10.as13285.net. [92.23.123.10]) by smtp.gmail.com with ESMTPSA id e18sm36101848wrr.95.2019.12.27.16.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 16:23:10 -0800 (PST) Date: Sat, 28 Dec 2019 00:23:09 +0000 From: Chris Down To: Luigi Semenzato Cc: linux-mm@kvack.org Subject: Re: [PATCH 1/2] Documentation: clarify limitations of hibernation Message-ID: <20191228002309.GA544630@chrisdown.name> References: <20191227213439.139123-1-semenzato@google.com> <20191227213439.139123-2-semenzato@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191227213439.139123-2-semenzato@google.com> 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: Luigi Semenzato writes: >+One possible workaround (besides terminating enough processes) is to force >+excess anonymous pages out to swap before hibernating. This can be achieved >+with memcgroups, by lowering memory usage limits with ``echo > s/memcgroups/memory cgroups/ I also wouldn't say "excess", it implies that the cold(er) pages are unnecessary, which may not be true. >+/dev/cgroup/memory//memory.mem.usage_in_bytes``. However, the latter >+operation is not guaranteed to succeed. This is cgroup v1, which is frozen and in the process of being deprecated. We should at least mention memory.high or similar. Also, /dev/cgroup? /sys/fs/cgroup has been more or less standardised for quite a while now... (I also wonder whether the need for this in general is something the user shouldn't have to care about and we should improve management of in-kernel, but I know very little about hibernation so I'll leave that alone.)