From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 eHNjC+vbk2MaLgEAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 02:07:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sN+NCuvbk2MqZAEAG6o9tA (envelope-from ) for ; Sat, 10 Dec 2022 02:07:55 +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 C0B883BE0D for ; Sat, 10 Dec 2022 02:07:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3oKm-00051y-4h; Fri, 09 Dec 2022 20:07:20 -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 1p3oKj-00051p-Ca for guix-devel@gnu.org; Fri, 09 Dec 2022 20:07:17 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3oKg-0007tF-QY for guix-devel@gnu.org; Fri, 09 Dec 2022 20:07:16 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D7F65240103 for ; Sat, 10 Dec 2022 02:07:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1670634431; bh=B6SoI4seNKMjlfFcfdAz40ySf0Ep2OKFAJq5B3/tYh0=; h=From:To:Cc:Subject:Date:From; b=miEHNXN3QPY8wgLvZm8PxUeO4TaStdS1uRIRJ4VeiQ4E+SZU6Lc9DLTNs3im3nXqo wwynij2TBMwZYMigdkKAWzGBR54k2MN1L3irBdktkZAaLAzq2hQGJ1T90E0AFdYTe9 41cy3wq1fHMRFL0R8FxPz5J3qqYCTUNjOqgTnOprciaRNo99iDneNhtzzlIpQeka0m WYszJrpBGcSQ3p3DDRuZ+RLK+G43mOme3v8GcnjLwvBZ/6lBDVGhtrL9y58PW0mXYW fxY/EUXo08hgks3h6paEYFxUR6Ry9A5xBnyVh5G1Zqx27RJzJGN/I/v7XeKjJ+iehI aB3R4HRZObMOw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NTV982kGDz9rxB; Sat, 10 Dec 2022 02:07:08 +0100 (CET) References: <87wn79wnfj.fsf@nckx> <87bkockw84.fsf@posteo.de> From: Mekeor Melire To: guix-devel@gnu.org Cc: Ivan Vilata i Balaguer , Tobias Geerinckx-Rice Subject: Re: Status of hibernation (suspend to disk) in Guix Date: Sat, 10 Dec 2022 01:00:24 +0000 In-reply-to: <87bkockw84.fsf@posteo.de> Message-ID: <87lengoymq.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670634475; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ip1yRzFRb6xXINnw8p6LH65aon8bH7a5aETjshHeD1c=; b=P0QN+GLzByb5VrfUlfuOHNL0IDrmTWozzit3TEI+kKiHx8AW4miGe20qju6fDJXCO4+BK9 uOfG7axgQU+FkapSbwgJ+ySVfL9IjYXrsyil1LAzV7fDBfeumaj75bcQar1Cv6SBMMEI4O mNwGpYgbZj0Uf+J8wJvpXQMVjX/B4lgJcHAgKwwZ9cuSbO5mTWl5VBcAk9XYwy6DHlvhXy GDjchN5pXxYs7vZC1IYumayoNHwLU+2CM3zRS5S4PxwEqXhlEcEEDmibsz9gYekpEhId3E dK2nNTVTZSw9xUJP9GdASphQDG3udQBqeSAzjz2C2Jn25bhoaxntN6nSxCkdPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=miEHNXN3; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670634475; a=rsa-sha256; cv=none; b=UQD81c4opWecMFAb9bpDaI+n7qbYnPogE7Yk0SHV+1UBGpzdUaJq6K8sLK127e1vT7iEho qFNbJl2rraYKtArUvRs2BFyGben7uOeT0RYyvpBPJYjJdL6YzX6+gqWsNy4aa/+h4zDBof dWCMDp16lJpdQCOQA/yBqr3OhW34jAX4IbVSQhiqwBUFCN0htMoeGpj+2jY6oprK//qxD+ joqlZiEXZiFW++MXj95pYzJWo+n6nN0sPsvFBF5+cGbm+j2m2OKhWqh+0yvWPat4egZmjF wPbQ/VFWcqrVw60YDGfyTghLn1oW9Z7TvJIimzeEerrkreBAXFQyP+2lZRezyQ== X-Migadu-Spam-Score: -11.61 X-Spam-Score: -11.61 X-Migadu-Queue-Id: C0B883BE0D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=miEHNXN3; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.de X-TUID: S7B35YF5jRU3 2022-12-09 23:10 mekeor@posteo.de: > 2022-12-05 17:23 ivan@selidor.net: > > > in #59746 I skipped documenting `resume_offset` with more detail, even > > if it's needed for resuming from a swap file. The reason is that > > according to [swsusp doc][1], some specific tool may be needed to > > compute the swap file offset. There is [swap-offset][2] from the > > uswsusp suite, which is missing from Guix and no longer shipped with > > Debian. > > What about the "filefrag" executable from the "e2fsprogs" package. > According to this article, it can be used in place of the deprecated > uswsusp suite: > > https://www.linuxuprising.com/2021/08/how-to-enable-hibernation-on-ubuntu.html I just tried this out. And it worked like a charm! I have hibernated and resumed successfully - first time with Guix System. I'm so happy :) Would you like to add instructions for swap-files to your patch-series #59746? What I did: First, determine offset: --8<---------------cut here---------------start------------->8--- $ sudo filefrag -v /swapfile Filesystem type is: ef53 File size of /swapfile is 1717986918 (4194304 blocks of 4096 bytes) ext: logical_offset: physical_offset: length: expected: flags: 0: 0.. 0: 5308416.. 5308416: 1: --8<---------------cut here---------------end--------------->8--- Then, use offset in operating-system declaration: --8<---------------cut here---------------start------------->8--- (kernel-arguments (cons* "resume=/dev/mapper/cryptroot" "resume_offset=5308416" %default-kernel-arguments)) --8<---------------cut here---------------end--------------->8--- Caveat: IIUC, this does not work with Btrfs.