From owner-freebsd-hackers@freebsd.org Tue Aug 23 04:12:16 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 78501BC1AF7 for ; Tue, 23 Aug 2016 04:12:16 +0000 (UTC) (envelope-from eric@metricspace.net) 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 624BA198A for ; Tue, 23 Aug 2016 04:12:16 +0000 (UTC) (envelope-from eric@metricspace.net) Received: by mailman.ysv.freebsd.org (Postfix) id 6150FBC1AF6; Tue, 23 Aug 2016 04:12:16 +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 5E99FBC1AF5 for ; Tue, 23 Aug 2016 04:12:16 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::107]) by mx1.freebsd.org (Postfix) with ESMTP id 3182D1988 for ; Tue, 23 Aug 2016 04:12:16 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:3210:b3ff:fe77:becd] (unknown [IPv6:2001:470:1f11:617:3210:b3ff:fe77:becd]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id 6F9B91A93 for ; Tue, 23 Aug 2016 04:12:09 +0000 (UTC) To: hackers@freebsd.org From: Eric McCorkle Subject: Info about suspend-to-disk Message-ID: <141b1050-8fb5-e8c7-0e0f-50607f2f28b9@metricspace.net> Date: Mon, 22 Aug 2016 23:41:12 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WIhUp11GE7eGqpSRaa8dscf9px0CNsdFl" 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 04:12:16 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WIhUp11GE7eGqpSRaa8dscf9px0CNsdFl Content-Type: multipart/mixed; boundary="OxICMEckHJX6esEqEfqiOVXgRnBSVgAbK" From: Eric McCorkle To: hackers@freebsd.org Message-ID: <141b1050-8fb5-e8c7-0e0f-50607f2f28b9@metricspace.net> Subject: Info about suspend-to-disk --OxICMEckHJX6esEqEfqiOVXgRnBSVgAbK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 --OxICMEckHJX6esEqEfqiOVXgRnBSVgAbK-- --WIhUp11GE7eGqpSRaa8dscf9px0CNsdFl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EARYIAAYFAle7xdgACgkQVsKIQKqABI2XswD/d5koF51216TOHQjpBCgtIsGV Q9Bpy30kCaJV8mIzX5QBAOqGPyi+pZknQOEsUd1lyLUWXvHDiWF0PCsOtMFnZq8P =/LiG -----END PGP SIGNATURE----- --WIhUp11GE7eGqpSRaa8dscf9px0CNsdFl--