Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3670197ybl; Mon, 27 Jan 2020 08:14:50 -0800 (PST) X-Google-Smtp-Source: APXvYqz2VjLqOo6UvnR+Aw/mVaxPYOrogT1HE6DmNt2m/R6V5FcG4M3Jr3dWJIUk6wc5EBJs06SC X-Received: by 2002:aca:c7cb:: with SMTP id x194mr8064340oif.157.1580141690032; Mon, 27 Jan 2020 08:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580141690; cv=none; d=google.com; s=arc-20160816; b=rpAcGRzm801Zx4V25CaeHbeAAW26iPuSo9D49k/bDHmF25F2T/5hzynNyZgZVq1R6Z koEnCojQF+JHbJ0tWwq6Wy4bcJ1IqwDooiLK3jnatc3U6iSKJwRUjHYxfPoEFqgBId6N hYXvXftFi49KNy4pqGKBXWLEySH4Tyf4WaEfXwsFUtU6UvLQbS6tGuFIIo33x/Bs4hsL 00kwnxSg5JODHZBVb4Al7Axt74vUIitU6mocs2j+KuqRcjp+T/Vsv/SQ+rnpRg8oggEt ba9wgGuiHjgi5rpIovBfCisai10ijZncc05xvp88ywH7aOf7oVorPnf/6O6Q1iRdiphd wsHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=U5t113PHW/Vq6RO8HpYXV+qUnHp+2hvADozVVkcwYWk=; b=llj91wf9uCsA+ufrwp1zDClc9zXnH0tCl7rubB8UvF+wMj3N4SqtgazYX1Mj9VEZsD tG0VB4iUmf+ySI8nvOtxjQ4ugBTgOtiFGeernx5eep1HlQi3Xlb5F4OVDaJ6J2kYPcit dRTCLgdoY06VeJV/1VsGCRUL4S3rkGnFU5wtijKZ42gnGrb/JCO53IrKY2llFr+yR7wo KlsSc5qpAve9HkX2jrj8ajR334LMXT3Fjt00NQoCoZ9s8Kg6VFEYB+2VJtVQJCPrbdGI iV6XOnzILT6cxrNZLojKgZLy+OKNOCVpQinimec7mWX7VdhDNpDXVSi27479PpGgZYUJ jXuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hewknFv0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si7779707otf.285.2020.01.27.08.14.38; Mon, 27 Jan 2020 08:14:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hewknFv0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729762AbgA0QNb (ORCPT + 99 others); Mon, 27 Jan 2020 11:13:31 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:41173 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729470AbgA0QNb (ORCPT ); Mon, 27 Jan 2020 11:13:31 -0500 Received: by mail-io1-f68.google.com with SMTP id m25so10586942ioo.8 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=A01JRdaeYZfi6AQ4WtqryrCf48nQ35xE7GL+bQJ4J8ff/3tncaZxg3iEYkhRPa8WDl 4RJAJx/Qh5pX3S1qEyf6X4DAfEVITt9o+iAMMFBZdGrz4/XaBMRcvXx9i86nEDkM4KBi HtYU+kB8stLWdKm37WlYoWjm72mdeC9JOxnuIcBKW/NoAY6JSrdHKyxi8D3KU84148Fj qsg9gIRAAwKsQ8P7Q0x7zP3UaoUij4XoFHoJsugN1uBK3SFoo9bK7V6IriXk3RywIQgr jPfrJFz4K+tr3RTDhfF2Yhox9Fq0Gl9O0K66MUqnW6z8+Jmx7t07sEoObMqEGFtNgvx7 nNRw== X-Gm-Message-State: APjAAAWlQZHgQH6pW/vWHiOqBpxpkBf4TjCaK8cnh/Cqwk0ZKpxRLBc5 p0cbNbbf82X7Y3+wUc+n+brOZS1FiI7Y0umRB+wT8g== 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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