Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2019 05:09:56 -0700
From:      Paul Vixie <paul@redbarn.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop
Message-ID:  <212b6254-1e27-8311-885b-601f8b1d710c@redbarn.org>
In-Reply-To: <20190423041358.GA2992@admin.sibptus.ru>
References:  <20190421154616.GA59283@admin.sibptus.ru> <201904211708.x3LH8DiK028282@gndrsh.dnsmgr.net> <20190423024301.GA940@admin.sibptus.ru> <d33ea04e-4f4f-253a-b658-e6ecfd2308a6@redbarn.org> <20190423041358.GA2992@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


Victor Sudakov wrote on 2019-04-22 21:13:
...
>>>>       sleep 1
...
>> i think this is worse than brutal, it's wrong. consider freebsd's own
>> work flow when trying to comply with the first soft shutdown it got:
>>
>> https://github.com/freebsd/freebsd/blob/master/sbin/reboot/reboot.c#L220
>>
>> this has bitten me more than once, because using "pageins" as a proxy
>> for "my server processes are busy trying to synchronize their user mode
>> state" is inaccurate. i think _any_ continuing I/O should be reason to
>> wait the full 60 seconds.
> 
> Would it be beneficial to just hack /usr/local/lib/vm-bhyve/vm-* ?

no, i really think the hypervisor should add i/o monitoring, so that if 
the soft shutdown signal is sent, the client kernel is allowed to keep 
running until either a really long timeout (60 seconds or more), but if 
it becomes quiet, then the hypervisor can exit sooner.

>> i agree with this.
> 
> Will you please support the bug report:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237479

done.

-- 
P Vixie




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?212b6254-1e27-8311-885b-601f8b1d710c>