From owner-freebsd-virtualization@FreeBSD.ORG Wed May 27 06:19:05 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91E32761; Wed, 27 May 2015 06:19:05 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [24.104.150.213]) (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 7B98AAE6; Wed, 27 May 2015 06:19:04 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [192.168.40.38] (unknown [109.235.242.18]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 7BC63184F1; Wed, 27 May 2015 06:18:57 +0000 (UTC) Message-ID: <556561CD.2040201@redbarn.org> Date: Tue, 26 May 2015 23:18:53 -0700 From: Paul Vixie User-Agent: Postbox 3.0.11 (Windows/20140602) MIME-Version: 1.0 To: Craig Rodrigues CC: "freebsd-virtualization@freebsd.org" Subject: Re: can we get some interaction between halt/reboot and bhyve? References: <5562755C.8090407@redbarn.org> <20150525030835.GB37063@funkthat.com> In-Reply-To: X-Enigmail-Version: 1.2.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 06:19:05 -0000 Craig Rodrigues wrote: > ... > > I haven't tried them, but Michael Dexter has written more comprehensive > rc.d scripts from bhyve: > > http://vmrc.bsd.lv/ these look good but i'm waiting for man pages, while meanwhile i bake my own toolset. > rc.d scripts work well if you can live with the normal shutdown process > invoking rc.d scripts. > For my uses, I can live with shutdown and rc.d. so can i except in emergencies. > If you want to halt/reboot/poweroff, then you still have the original > problem that Paul pointed out. reboot.c currently detects paging. is there a way to have it detect disk i/o in general? note, 30 seconds isn't always enough. on a DCC server with 4GB mmap()'d, i've run out of time. so, a sysctl for both the minimum (currently 5 seconds) and maximum (currently 30 seconds) reboot i/o drain period would be great. i would code these and submit them if these changes were welcomed. -- Paul Vixie