Date: Thu, 30 Nov 2017 17:15:19 -0600 From: Dustin Wenz <dustinwenz@ebureau.com> To: freebsd-virtualization@freebsd.org Subject: bhyve uses all available memory during IO-intensive operations Message-ID: <F4E35CB9-30F9-4C63-B4CC-F8ADC9947E3C@ebureau.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I'm using chyves on FreeBSD 11.1 RELEASE to manage a few VMs (guest OS is also FreeBSD 11.1). Their sole purpose is to house some medium-sized Postgres databases (100-200GB). The host system has 64GB of real memory and 112GB of swap. I have configured each guest to only use 16GB of memory, yet while doing my initial database imports in the VMs, bhyve will quickly grow to use all available system memory and then be killed by the kernel:
kernel: swap_pager: I/O error - pageout failed; blkno 1735,size 4096, error 12
kernel: swap_pager: I/O error - pageout failed; blkno 1610,size 4096, error 12
kernel: swap_pager: I/O error - pageout failed; blkno 1763,size 4096, error 12
kernel: pid 41123 (bhyve), uid 0, was killed: out of swap space
The OOM condition seems related to doing moderate IO within the VM, though nothing within the VM itself shows high memory usage. This is the chyves config for one of them:
bargs -A -H -P -S
bhyve_disk_type virtio-blk
bhyve_net_type virtio-net
bhyveload_flags
chyves_guest_version 0300
cpu 4
creation Created on Mon Oct 23 16:17:04 CDT 2017 by chyves v0.2.0 2016/09/11 using __create()
loader bhyveload
net_ifaces tap51
os default
ram 16G
rcboot 0
revert_to_snapshot
revert_to_snapshot_method off
serial nmdm51
template no
uuid 8495a130-b837-11e7-b092-0025909a8b56
I've also tried using different bhyve_disk_types, with no improvement. How is it that bhyve can use far more memory that I'm specifying?
- .Dustin
[-- Attachment #2 --]
0 *H
010 + 0 *H
00A0
*H
010 UUS10U Minnesota10USaint Cloud10U
eBureau10UIntegration10Uebureau.com1"0 *H
support@ebureau.com0
170505161615Z
270503161615Z0J10 UUS10UDustin Wenz1%0# *H
dustinwenz@ebureau.com0"0
*H
0
rW{aQFb~˞C .h`h]:=LbGl`S#kY0]<P!
J2TCzU)
+4g :wb<xU~@w<cs8L\[O
s vyS6:ϷSX?<H ͉OܾE9,(s~V$_=XV|x.2]&
ɬNjnʝwddv) g0c0 U0 0U0'U% 0+++0UˋPz[K}:BjZ40U#0Àg`,P |顁010 UUS10U Minnesota10USaint Cloud10U
eBureau10UIntegration10Uebureau.com1"0 *H
support@ebureau.com r0ŗ00 `HB#!http://www.ebureau.com/ca-crl.pem0
*H
vΩWA)pe?Dki?(ŷF'b3`Gܣ;:dBx,[-5r0peJWqBy}j=$j<aYT6{:ZZwa9<&ɞa{{]ҚnǙp'vR9Ht
{+Lµ+֧v}u.de*IeȚS} vKRWp,t{&C1Z#H^}c܁Yg100010 UUS10U Minnesota10USaint Cloud10U
eBureau10UIntegration10Uebureau.com1"0 *H
support@ebureau.comA0 + 0 *H
1 *H
0 *H
1
171130231519Z0# *H
1Sw+vaypHɆxKG0 +710010 UUS10U Minnesota10USaint Cloud10U
eBureau10UIntegration10Uebureau.com1"0 *H
support@ebureau.comA0*H
1010 UUS10U Minnesota10USaint Cloud10U
eBureau10UIntegration10Uebureau.com1"0 *H
support@ebureau.comA0
*H
c>UV.L{2'kXO`HgQ+lyAC([tmd& `rqJoådĸmMBdΔrzHSeɺ]q,B
=2H(Ӿi_Ë,-J]#y{?n
vbbM =cM"@`z`vdkK:-
QVx^Da8gWpfdL9
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4E35CB9-30F9-4C63-B4CC-F8ADC9947E3C>
