Project

General

Profile

Actions

Bug #13463

open

bhyve locks up when viona ring buffers on loan to a local zone are not returned by sockfs

Added by Jorge Schrauwen over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
bhyve, viona
Gerrit CR:

Description

Since neither I or jbk can seem to locate the ticket.

I've been suffering from an issue for a while where bhyve would completely lock up.
Giving it a forceful shutdown would leave the zone (SmartOS) stuck in shutting_down. Sometimes waiting a long long time can make the VM unfreeze, I guess once the buffers are eventually returned. But this is not always the case.

Hopefully jbk can full in what he remembers from this as he did look at this and found some stuff.

I can trigger this with the following setup with a high repeatability rate:

.---- [ cn1 ]-----------------.
| .-[bhyve_vm1]---.           |
| | OS: FreeBSD   |<===============> [switch] <===> [modem]
| | Role: fw      |           |
| '---------------'           |
|    ^                        |
|    +                        |
|    v                        |
| .-[native zone]---.         |
| | OS: native      |         |
| | Image: pkgbuild |         |
| '-----------------'         |
'-----------------------------'

There is a caching service in the pkgbuild zone that caches the pkg used when running the sandbox to do builds, it seems to be very good at holding onto the ring buffers so building a larger package like samba usually stalls the vm.
Since the VM is acting as a firewall and forwarding traffic, the package downloaded by the pkgbuild zone come form one of the viona interfaces in the vm.

Actions

Also available in: Atom PDF