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=-8.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 219A7C3F68F for ; Mon, 27 Jan 2020 16:13:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DAF7021739 for ; Mon, 27 Jan 2020 16:13:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hewknFv0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAF7021739 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 71E096B0005; Mon, 27 Jan 2020 11:13:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6CDCB6B0006; Mon, 27 Jan 2020 11:13:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60BAF6B0007; Mon, 27 Jan 2020 11:13:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0037.hostedemail.com [216.40.44.37]) by kanga.kvack.org (Postfix) with ESMTP id 4A93A6B0005 for ; Mon, 27 Jan 2020 11:13:32 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 0471737F1 for ; Mon, 27 Jan 2020 16:13:32 +0000 (UTC) X-FDA: 76423909464.15.smash95_590253aa3f41e X-HE-Tag: smash95_590253aa3f41e X-Filterd-Recvd-Size: 4073 Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Mon, 27 Jan 2020 16:13:31 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id z8so10621748ioh.0 for ; Mon, 27 Jan 2020 08:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U5t113PHW/Vq6RO8HpYXV+qUnHp+2hvADozVVkcwYWk=; b=hewknFv0NpWq20dKsMjPjU4FFwhqDzoprCrng8SHxfUA/XjkMFVNRMVbHIpWm5NIC4 PMS5K+aXU4V+t8FxEFvmZJl8V9954l9DqC2yNsdP1pdeTGVqwMgaFkXsTAIVMwmiJBt+ 2ZJ9QpQ+3R/oFLxZCnv6Z7zEX9GhY6ONDudaCzzUvdoMuCsdvIOjuF0NDCJ3u+adjwtI ynE30QLS1j8T9U0yfGxs9vIYZuDBAduethBELWHTO9RRxsgTtdzHpO0kQJJ6+5jc5UTL CGM8G26753rzhBviMbljMzMd2QKakzoNYkoSXPyhxMVxlLjCQZh2qRHlTSgbKqaUv7qn 0IEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U5t113PHW/Vq6RO8HpYXV+qUnHp+2hvADozVVkcwYWk=; b=SjdGHlJF87hRYENKCgkPHratYj6XYu8Fb+PPfndUoNVertH/Vgiq26q7IVF0FXffbw 6m6XQHD/E+km3odR/FvVC+A+nMxRjDe9QB+wDAHmpuWfsB+9K+uP+eMf9Ygtb2jjJbR2 orp54su719+8MH6ytdY5hKWAygCl3JwD6BOy7m1rAi8l5Br0mCPCyfdRXEo1hEGj8WoR h7KQsX5ivYd+nKyMG/Rxd4IJGsn2hNhqDuMM9HnXPsj4Sqx+JCyGzEpDNyoVW3hkc7Th EIuooiN5c8vTyoyw29o3Zfg5wUnj8Tt2RUJBQvehMr+JtF5QQGi3L8KPwwhPnL167v8j qTSA== X-Gm-Message-State: APjAAAUtBsBaMoPmRvlNxswg0eT/k/KDYYGYz7z9wCpZ9JKlLxkbrOWo wQopHp0iCXFM9bEAWzDqZNlnwb8oAN2gaXiVqHdrcA== X-Google-Smtp-Source: APXvYqwnz43ru2itb/mbS70oB09GHfBA6mE+bDUqNqwrj5GRoED72skpxDugGA9gl4SL8m9kfS/uQepFVA8gEH0+efU= X-Received: by 2002:a5d:84d1:: with SMTP id z17mr13124921ior.169.1580141610083; Mon, 27 Jan 2020 08:13:30 -0800 (PST) MIME-Version: 1.0 References: <20191226220205.128664-1-semenzato@google.com> <20191226220205.128664-2-semenzato@google.com> <20200106125352.GB9198@dhcp22.suse.cz> <20200108114952.GR32178@dhcp22.suse.cz> <20200127141637.GL1183@dhcp22.suse.cz> In-Reply-To: <20200127141637.GL1183@dhcp22.suse.cz> From: Luigi Semenzato Date: Mon, 27 Jan 2020 08:13:21 -0800 Message-ID: Subject: Re: [PATCH 1/2] Documentation: clarify limitations of hibernation To: Michal Hocko Cc: Linux Memory Management List , linux-kernel , "Rafael J. Wysocki" , Andrew Morton , Geoff Pike Content-Type: text/plain; charset="UTF-8" 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 Mon, Jan 27, 2020 at 6:16 AM Michal Hocko wrote: > > On Fri 24-01-20 08:37:12, Luigi Semenzato wrote: > [...] > > The purpose of my documentation patch was to make it clearer that > > hibernation may fail in situations in which suspend-to-RAM works; for > > instance, when there is no swap, and anonymous pages are over 50% of > > total RAM. I will send a new version of the patch which hopefully > > makes this clearer. > > I was under impression that s2disk is pretty much impossible without any > swap. I am not sure what you mean by "swap" here. S2disk needs a swap partition for storing the image, but that partition is not used for regular swap. If there is no swap, but more than 50% of RAM is free or reclaimable, s2disk works fine. If anonymous is more than 50%, hibernation can still work, but swap needs to be set up (in addition to the space for the hibernation image). The setup is not obvious and I don't think that the documentation is clear on this. > -- > Michal Hocko > SUSE Labs