brand/bhyve: Prevent long delays when shutting down unresponsive VMs#531
Open
hrosenfeld wants to merge 1 commit intoomniosorg:masterfrom
Open
brand/bhyve: Prevent long delays when shutting down unresponsive VMs#531hrosenfeld wants to merge 1 commit intoomniosorg:masterfrom
hrosenfeld wants to merge 1 commit intoomniosorg:masterfrom
Conversation
Sometimes a VM can get in a state where it doesn't respond in reasonable time to shutdown request, such as when the OS isn't running yet or isn't running anymore, having crashed or otherwise locked up. In such a case, halting the zone can take a very long time. This patch reduces the shutdown timeout from 30min to 20s in the default zone shutdown code, and introduces a force-poweroff in case the guest didn't shut down in time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This code was written by Patrick van der Linden of EFit Partners.
Sometimes a VM can get in a state where it doesn't respond in reasonable time to shutdown request, such as when the OS isn't running yet or isn't running anymore, having crashed or otherwise locked up. In such a case, halting the zone can take a very long time.
This patch reduces the shutdown timeout from 30min to 20s in the default zone shutdown code, and introduces a force-poweroff in case the guest didn't shut down in time.
Here is a sample without the patch applied
Here is a sample with the patch applied
The VM shudtowns as expected
halting a zone when emulating a non responsive VM is very faster ;)