From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6JESAIn5omNXaQEAbAwnHQ (envelope-from ) for ; Wed, 21 Dec 2022 13:18:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mLYVAIn5omPq/wAA9RJhRA (envelope-from ) for ; Wed, 21 Dec 2022 13:18:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8774FAE67 for ; Wed, 21 Dec 2022 13:18:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7y32-0004cY-BS; Wed, 21 Dec 2022 07:18:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7y2s-0004ZV-Kh for guix-patches@gnu.org; Wed, 21 Dec 2022 07:18:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7y2s-0004ZO-CV for guix-patches@gnu.org; Wed, 21 Dec 2022 07:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7y2r-0006dg-O2 for guix-patches@gnu.org; Wed, 21 Dec 2022 07:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59746] [DOCUMENTATION] [PATCH] doc: Introduce using Swap Space for hibernation, with an example. Resent-From: Ivan Vilata i Balaguer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Dec 2022 12:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59746 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59746@debbugs.gnu.org Received: via spool by 59746-submit@debbugs.gnu.org id=B59746.167162503325502 (code B ref 59746); Wed, 21 Dec 2022 12:18:01 +0000 Received: (at 59746) by debbugs.gnu.org; 21 Dec 2022 12:17:13 +0000 Received: from localhost ([127.0.0.1]:51508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7y24-0006dG-Rx for submit@debbugs.gnu.org; Wed, 21 Dec 2022 07:17:13 -0500 Received: from lev.selidor.net ([66.246.138.156]:35797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7y22-0006d9-V3 for 59746@debbugs.gnu.org; Wed, 21 Dec 2022 07:17:11 -0500 Received: from sax (unknown [91.207.57.115]) by lev.selidor.net (Postfix) with ESMTPSA id CB28FCADD; Wed, 21 Dec 2022 12:17:09 +0000 (UTC) Date: Wed, 21 Dec 2022 13:16:59 +0100 From: Ivan Vilata i Balaguer Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2EJBk/5fRdGSzO9R" Content-Disposition: inline In-Reply-To: Autocrypt: addr=ivan@selidor.net; prefer-encrypt=mutual; keydata= mQINBE2V9nABEADNCic9+LrC7YRRrZn/zEZPvWiFrORMf7lkc2vtAUTo2RepFT3ekGLKF5nZYTJ 4yKGV6NbRCDUL9adbMGRhv9/TEAaoNRtyfhtDAj1RTk5tpEsIiP78/guYBH1BifXJKNIfybvT56 7VMalh4h6aiapW5/tbMkzMS4GeSR/AcEnhPnaE4WrYRHd25j+NrlrbakHH/kS0rfR1f2lA/eT9A hRYw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There: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671625096; a=rsa-sha256; cv=none; b=PWUA2GLdyOaQzhxSpLWpVlUeuF2EzfCcVqSbhcDYBcnLund6tUOZwJYjo2WUyEbn5PUILN 8Y7SFIoGo7fMWxn7VPIgnkyUhFaidd7PUsKeIJI/supJfZqQpPQSgyt8KyhKh+AhYYEih7 Be7LhCAHAXVXS04FFmNo1cOnXsIRM0C2nBsEc4EpKqZIun7ePAhOCUl4WDJC0zg/BRgomF eEZ6l60pl+oQc4aX6oqEK5yctr0ByaPKpDT3iBuB2VZculNvm8zbbHze22Y1KKTsMs9s95 eGhWfvRqgmjeJKbflGh7iPPMemJPBdgAn+xJs0Ta4OzlFHdIC2wvDgaoPMv/lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671625096; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post:autocrypt:autocrypt; bh=nqci5aqD1MAoCXARYiNT51+eUYtwSfk4fgGKalItdMM=; b=klRsthefOJsM5+81mavwSx1dnrhFj/qLBFTm3ansQ2Eddf4Uo+yOzXykrOyeLTVyI49wLP L7IKmGkOCHXEy9IQcuboBeYcVierebHif5BH0GyzOkII3nHos7nuhjlDatLGOBHvqZByI+ tYTUTnvLhd0AsmIfhp2oN6aoTV1wDHZlM0d8dbjtQmk1HdcdcjjdWPycbn883ccFKPHg0c pEpwcKH0nzi2BeDqSIao/HzB6CgA3dfzTcLM2F3u7/pV+91ExzsgVqnjQ3kj5LZXa9VbPe zyyDNkMRGL9iicNyyIowxmgmXxPxRoFLuR2sp2GwG9fQHckyI2s8ByYo5smFTw== X-Spam-Score: -4.89 X-Migadu-Queue-Id: 8774FAE67 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.89 X-TUID: Hln1tNc8G6m/ --2EJBk/5fRdGSzO9R Content-Type: multipart/mixed; boundary="cYkn5dYHzigd0QVF" Content-Disposition: inline --cYkn5dYHzigd0QVF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch replaces the previous one and enhances it with several minor fix= es and the missing information related to computing the swap file offset, as discussed [in the guix-devel thread][1]. [1]: https://lists.gnu.org/archive/html/guix-devel/2022-12/msg00028.html Thanks and cheers! --=20 Ivan Vilata i Balaguer -- https://elvil.net/ --cYkn5dYHzigd0QVF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-doc-Introduce-using-swap-space-for-hibernation-with-.patch" Content-Transfer-Encoding: quoted-printable =46rom e95d79ef8c466e495c730f722b7aefc4d2d5969f Mon Sep 17 00:00:00 2001 =46rom: Ivan Vilata-i-Balaguer Date: Wed, 21 Dec 2022 13:08:48 +0100 Subject: [PATCH] doc: Introduce using swap space for hibernation, with examples. * doc/guix.texi (Swap Space): Add a concise introduction to hibernation and specifying a swap space to the kernel to make resume work. Mention space requirements and the need of an offset for swap files. Include a trivial example on how to set up a mapped swap volume for hibernation and another o= ne for a swap file, including how to compute the file offset. --- doc/guix.texi | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index aacf748838..f04a541583 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -109,6 +109,7 @@ Copyright @copyright{} 2022 Simon Streit@* Copyright @copyright{} 2022 (@* Copyright @copyright{} 2022 John Kehayias@* +Copyright @copyright{} 2022 Ivan Vilata-i-Balaguer@* =20 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -17072,6 +17073,15 @@ Swap Space allocated at disk formatting time (logical volumes notwithstanding), whereas files can be allocated and deallocated at any time. =20 +A swap space is also required in order to hibernate a system using the +Linux kernel. Hibernation (also called suspend to disk) uses at most +half the size of the RAM in the configured swap space. The kernel needs +to know about the swap space to be used to resume from hibernation on +boot (via a kernel argument). When using a swap file, its offset in the +device holding it also needs to be given to the kernel, but that value +has to be updated if the file is initialized again as swap (e.g. because +its size was changed). + Note that swap space is not zeroed on shutdown, so sensitive data (such as passwords) may linger on it if it was paged out. As such, you should consider having your swap reside on an encrypted device (@pxref{Mapped @@ -17157,6 +17167,57 @@ Swap Space file system mounted at @file{/btrfs}. Note how we use Guile's filter to select the file system in an elegant fashion! =20 +@lisp +(swap-devices + (list + (swap-space + (target "/dev/mapper/my-swap") + (dependencies mapped-devices)))) + +(kernel-arguments + (cons* "resume=3D/dev/mapper/my-swap" + %default-kernel-arguments)) +@end lisp + +The previous snippet of an @code{operating-system} declaration enables +the mapped device @file{/dev/mapper/my-swap} (which may be part of an +encrypted device) as swap space, and tells the kernel to use it for +hibernation via the @code{resume} kernel argument +(@pxref{operating-system Reference}, @code{kernel-arguments}). + +@lisp +(swap-devices + (list + (swap-space + (target "/swapfile") + (dependencies (filter (file-system-mount-point-predicate "/") + file-systems))))) + +(kernel-arguments + (cons* "resume=3D/swapfile" + "resume_offset=3D92514304" + %default-kernel-arguments)) +@end lisp + +This other snippet of @code{operating-system} enables the swap file +@file{/swapfile} for hibernation by telling the kernel about the file +(@code{resume} argument) and its offset on disk (@code{resume_offset} +argument). The latter value can be found in the output of the command +@command{filefrag -e} as the first number right under the +@code{physical_offset} column header (the second command extracts its +value directly): + +@smallexample +$ sudo filefrag -e /swapfile +Filesystem type is: ef53 +File size of /swapfile is 2463842304 (601524 blocks of 4096 bytes) + ext: logical_offset: physical_offset: length: expected: flag= s: + 0: 0.. 2047: 92514304.. 92516351: 2048: +@dots{} +$ sudo filefrag -e /swapfile | grep '^ *0:' | cut -d: -f3 | cut -d. -f1 + 92514304 +@end smallexample + @node User Accounts @section User Accounts =20 --=20 2.38.1 --cYkn5dYHzigd0QVF-- --2EJBk/5fRdGSzO9R Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEHpvwBPZcchIQr6TuPezBBfXdI4IFAmOi+SoACgkQPezBBfXd I4J5dw/+KQ/I7/6FkjAhLf6Lfvc8sw7RSHdf2m5CtaQFN+P1rDkaVww+5XZhyAxE dVdNlUVe6I5BciPdCR34vC3j+nGsrM8HvZzAwn82et/pVGVFM7UMoiIQVlmPc1Ps 0vHm9kCaNg9Q51n5AQJafYROQzZOYLKlA86z/kbJEwXSYQDD2wunnLSDXMYsOBOj VWX4mucTS+dYxIdkOMVaYSDYlyMicNjv3X92Iwx7jFICOrQFXxH4ruKUSgJDgkbE EbGzsqAVGBSh594zomwd2HqQmLUqGSualV386uLekkGhzhX5Ve7WTImUVz37rguf Y+htLkzvK4c4yB0PDqezwX5wfrXAPqXNmz6gloBQxXK2ck/1tX/kA23MlmHevO7M CIbyhsyMb8ckcZ/I+3qBOldUxxdLF5kqLm72NeJEJWC7VrA8f7v072pKfBDsHnU1 3v0prP2Pc62L1+T5fAwGEQobQlfI8EGUR5WArYaB4+jmUfggG5KJH/bNYOTyu5bX dfUpHZ/nZRG1kZCZy4NpKhjUKhak+PDFTU2klNEZElZODMXwJS+BkM/K4MFARgtP pnfsdlD3546YMJ3WaQP4xVlydzfP3fbgoG418hC64TKazIhkDbu9o1XwFM/DCDJa YvjYDJrv2pYmX5ieinvItXC7FM3fju2gdIUmJBibiu5+W9bfilQ= =og8r -----END PGP SIGNATURE----- --2EJBk/5fRdGSzO9R--