From owner-freebsd-hackers@freebsd.org Tue Aug 23 22:48:14 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 31421BC4E39 for ; Tue, 23 Aug 2016 22:48:14 +0000 (UTC) (envelope-from cse.cem@gmail.com) 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 0EF241340 for ; Tue, 23 Aug 2016 22:48:14 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0DFA4BC4E38; Tue, 23 Aug 2016 22:48:14 +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 0B617BC4E37 for ; Tue, 23 Aug 2016 22:48:14 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6F8F133E for ; Tue, 23 Aug 2016 22:48:13 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f42.google.com with SMTP id f6so4010538ith.0 for ; Tue, 23 Aug 2016 15:48:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=9ofUtcirVC8NFfJ1SsCf/2jCkwfKZETbu7sa1WhcN6c=; b=EuPZt/jX46ikiB/2a5yIfl8d0fbUaOXryYgSYkuKn7kpVO7sBGqMBhhrqtdIgsr3F8 tJYP8BHBKf2yPRrUoE/ePhcxjULIAWbbWxMhyVTTdc/ccUfqodILOOq4Q4EzvlZ2zJpR khD1sCyQeeeZP+IpgS2zoyifaXCweSuvlt698fW8ZyPSxWYlLzPEhedj41YoRJdmv8OI BWZUKXvY76JXJItrPR7fSGxw2ifkDS+LS0/EyyLKns9HLR2vY5gyPXZsshaxWiF1gxaZ UCuqWeLQUnt3/sVKwTRYRzzHrsqTzCjRXVy6OEfNQoPe2RmoaHqHQX3+LhMS598DjruU llGw== X-Gm-Message-State: AEkoouvxhNYnQfOGtU+EkGMHAwyOH4kkKUa15JSS/naaWDJSQrCDwCwcco8nd+OGqx+hWg== X-Received: by 10.36.43.70 with SMTP id h67mr3174527ita.57.1471986592540; Tue, 23 Aug 2016 14:09:52 -0700 (PDT) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com. [209.85.214.45]) by smtp.gmail.com with ESMTPSA id 192sm10284872itk.17.2016.08.23.14.09.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 14:09:52 -0700 (PDT) Received: by mail-it0-f45.google.com with SMTP id f6so292240ith.0 for ; Tue, 23 Aug 2016 14:09:52 -0700 (PDT) X-Received: by 10.107.28.11 with SMTP id c11mr19356ioc.7.1471986591928; Tue, 23 Aug 2016 14:09:51 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.36.220.129 with HTTP; Tue, 23 Aug 2016 14:09:51 -0700 (PDT) In-Reply-To: <60cd4f2c-13a8-3fc1-5f5d-c442cafc6e80@metricspace.net> References: <141b1050-8fb5-e8c7-0e0f-50607f2f28b9@metricspace.net> <60cd4f2c-13a8-3fc1-5f5d-c442cafc6e80@metricspace.net> From: Conrad Meyer Date: Tue, 23 Aug 2016 14:09:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Info about suspend-to-disk To: Eric McCorkle Cc: Warner Losh , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 22:48:14 -0000 On Tue, Aug 23, 2016 at 4:41 AM, Eric McCorkle wrote: > My only reservation about loader is that users will likely want the > system to come back up quickly, as if resuming. Dropping them into the > loader menu might not be what they want/expect. If it ends up being > done in loader, it might be worth having a "fast-path" option that skips > the usual menu. > > Actually, the "fast-path" loader option might be a worthwhile feature > generally, for people who just want fast boot times. That exists: autoboot_delay="-1" > Does suspend-to-swap wipe out what's already stored there? Since you > plan on coming back online, you'd want to preserve all contents of swap. > In any case, I could see it failing if there's not enough free space in > swap (which I guess would also be a possibility with suspend-to-file) > > If dump to swap does preserve the contents of swap, it might be better > to do it that way first to work out all the other issues. It wouldn't have to be to an *active* swap partition; the point is, it's just a raw disk device (partition) that supports polled IO. Best, Conrad