Submit #3146
closedVirtio Memory Balloon
Added by ddegroot about 6 years ago. Updated about 6 years ago.
90%
Description
Ported the FreeBSD Virtio Memory Balloon Driver. Looking like some review/comment/testing.
Files
0001-Virtio_Ballon-implementation-for-DragonFly.patch (40.6 KB) 0001-Virtio_Ballon-implementation-for-DragonFly.patch | ddegroot, 10/25/2018 01:37 PM |
Updated by ddegroot about 6 years ago
- File 0003-Implemented-suggestions-made-by-ivadasz.patch added
Updated by ddegroot about 6 years ago
- File 0004-Added-virtio_teardown_intr-handling-to-vtballoon_det.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0002-Adapt-to-DragonFlyBSD.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0003-Implemented-suggestions-made-by-ivadasz.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0004-Added-virtio_teardown_intr-handling-to-vtballoon_det.patch)
Updated by ddegroot about 6 years ago
- File 0002-Adapt-to-DragonFlyBSD.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0002-Adapt-to-DragonFlyBSD.patch)
Updated by ddegroot about 6 years ago
- File 0002-Adapt-to-DragonFlyBSD.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0002-Adapt-to-DragonFlyBSD.patch)
Updated by ddegroot about 6 years ago
- File 0002-Adapt-to-DragonFlyBSD.patch added
Updated by ddegroot about 6 years ago
- File 0003-Do-not-use-VM_ALLOC_INTERRUPT.-Add-better-inflate-de.patch added
Updated by ddegroot about 6 years ago
- File 0004-Adding-virtio-balloon-statistics.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0004-Adding-virtio-balloon-statistics.patch)
Updated by ddegroot about 6 years ago
- File 0004-Adding-virtio-balloon-statistics.patch added
Updated by ddegroot about 6 years ago
- File 0005-Fix-KASSERT-issue-Reported-by-Tuxillo.patch added
Updated by ddegroot about 6 years ago
- File 0006-Add-extra-debug-flag.patch added
- File 0007-Don-t-collect-stats-when-initialially-loaded-Reporte.patch added
Updated by ddegroot about 6 years ago
When testing with qemu:
host-side:
- add "-balloon virtio" to the qemu command-line, to provide a PCI Balloon interface to the guest.
- make sure you have access to the monitor interface (qemu [...] -qmp tcp:localhost:4444,server,nowait)
guest-side:
Load driver
- kldload virtio_balloon
Increase debug level
- sysctl dev.vtballoon.0.debug_level=0x7
Inflating the balloon to 96 Mb on my 4096Mb Guest (4096->4000) (ie:reverse)
host side (monitor interface):
telnet localhost 4444 (to connect to the monitor)
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 6, "major": 1}, "package": ""}, "capabilities": []}}
{ "execute": "qmp_capabilities" } { "execute": "balloon","arguments":{"value":"4194304000"} } # 4000 * 1024 * 1024 { "execute": "query-balloon" } { "execute": "qom-list", "arguments": { "path": "/machine/peripheral-anon/" }} # to get the balloon interface device name { "execute": "qom-get", "arguments": { "path": "/machine/peripheral-anon/device0", "property": "guest-stats" } } # Collect quest stats { "execute": "qom-set", "arguments": { "path": "/machine/peripheral-anon/device0", "property": "guest-stats-polling-interval", "value": 5}} # stat collection every 5 seconds
or host side (using virsh):
qemu-monitor-command --domain xxxxx --hmp 'balloon 4000'
qemu-monitor-command --domain xxxxx --hmp 'info balloon'
qemu-monitor-command --domain xxxxx '{ "execute": "qom-get", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats" } }'
Updated by ddegroot about 6 years ago
- File 0008-Fix-comments-review-schwildner.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0008-Fix-comments-review-schwildner.patch)
Updated by ddegroot about 6 years ago
- File 0008-Fix-comments-review-swildner.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0001-Initial-checking-fbsd-virtio_balloon.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0002-Adapt-to-DragonFlyBSD.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0003-Do-not-use-VM_ALLOC_INTERRUPT.-Add-better-inflate-de.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0004-Adding-virtio-balloon-statistics.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0005-Fix-KASSERT-issue-Reported-by-Tuxillo.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0006-Add-extra-debug-flag.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0007-Don-t-collect-stats-when-initialially-loaded-Reporte.patch)
Updated by ddegroot about 6 years ago
- File deleted (
0008-Fix-comments-review-swildner.patch)
Updated by ddegroot about 6 years ago
- Subject changed from [WIP/RFC] Virtio Memory Balloon to Virtio Memory Balloon
Updated by ddegroot about 6 years ago
- File 0001-Initial-checking-fbsd-virtio_balloon.patch added
Updated by ddegroot about 6 years ago
- File deleted (
0001-Initial-checking-fbsd-virtio_balloon.patch)
Updated by ddegroot about 6 years ago
Updated by ddegroot about 6 years ago
- Status changed from New to Resolved
[gitweb-dfbsd] -
- LINT64: Add comments to the virtio devices. - http://tinyurl.com/y7crcwzf - Sascha Wildner <saw@online.de> - Virtio_Balloon implementation for DragonFly - http://tinyurl.com/yd6t849m - Diederik de Groot <ddegroot@talon.nl>
- sys/conf/files: Move vmx a bit up. - http://tinyurl.com/y8xder5o - Sascha Wildner <saw@online.de>