From owner-freebsd-hackers@freebsd.org Tue Aug 23 10:48:08 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC3E1BC2453 for ; Tue, 23 Aug 2016 10:48:08 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 99EFA15DE for ; Tue, 23 Aug 2016 10:48:08 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: by mailman.ysv.freebsd.org (Postfix) id 993F5BC2451; Tue, 23 Aug 2016 10:48:08 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98E3EBC2450 for ; Tue, 23 Aug 2016 10:48:08 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from toco-domains.de (mail.toco-domains.de [176.9.39.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 650A715DD for ; Tue, 23 Aug 2016 10:48:08 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from [192.168.0.120] (port-212-202-156-99.static.qsc.de [212.202.156.99]) by toco-domains.de (Postfix) with ESMTPA id 82C201AAF018; Tue, 23 Aug 2016 12:48:00 +0200 (CEST) Subject: Re: Info about suspend-to-disk To: Eric McCorkle , hackers@freebsd.org References: <141b1050-8fb5-e8c7-0e0f-50607f2f28b9@metricspace.net> From: Torsten Zuehlsdorff Message-ID: <9a1f190c-9d43-cb8f-ab85-a0caa132a4e6@toco-domains.de> Date: Tue, 23 Aug 2016 12:48:00 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <141b1050-8fb5-e8c7-0e0f-50607f2f28b9@metricspace.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 10:48:08 -0000 On 23.08.2016 05:41, Eric McCorkle wrote: > Hi everyone, > > I'm gathering information in preparation for possibly working on > suspend-to-disk functionality. I have a fairly good idea of what it > would take and one way to attack it. The overall plan would look > something like this: > > * Use dump functionality to write an entire OS image out to disk. As > this is a voluntary dump, it should be possible to go through the FS > interface to produce a regular file. > > * Modify boot1 to check for saved images. Load and resume if one exists. > > * Presumably there would need to be some new device methods added to do > saving/reinitialization of devices. > > > The major open questions for me are the following: > > * Is there/has there been significant work in this direction? > > * Is there perhaps a better strategy? > > * Do the codepaths currently exist to allow dump functionality to write > to a regular file in the case of a voluntary dump, or would this need to > be added? > > * What would be the most sensible default behavior for device > hibernate/unhibernate methods? > > * Any other significant issues What about encryption? I used encryption and ZFS - how should this work? ;) Greetings, Torsten