Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2024 07:28:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 282098] bhyve is eating my memory and running far beyond the configured limits
Message-ID:  <bug-282098-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282098

            Bug ID: 282098
           Summary: bhyve is eating my memory and running far beyond the
                    configured limits
           Product: Base System
           Version: 13.3-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: elk-freebsd@wetznet.de

Looks like there is a memory leak in bhyve.=20

I running Truenas 13.3 which is on Freebsd 13.3-RELEASE-p4 on AMD Ryzen 5 P=
RO
4650G

bhyve is configured for two VMs one with 4GB (Windows) and one with 8GB (li=
nux)

But If I start memory intensive actions inside the linux VM inside a docker
this raised the memory usage far beyond the 8GB..
14,6GB was the last I saw yesterday and this morning the VMs were killed by
Truenas cos of OOM.

Inside the vm the memory is stable at max 8GB. Swap is used sometimes as we=
ll
internal the vm.

The vm is configured with this xml ...

<domain type=3D'bhyve' xmlns:bhyve=3D'http://libvirt.org/schemas/domain/bhy=
ve/1.0'>
   <name>1_Jellyfin</name>
   <uuid>615af2a2-84e0-434e-b544-b4c9e7c0872d</uuid>
   <title>Jellyfin</title>
   <description>Jellyfin</description>
   <memory unit=3D'KiB'>8388608</memory>
   <currentMemory unit=3D'KiB'>8388608</currentMemory>
   <vcpu placement=3D'static'>8</vcpu>
   <os>
     <type arch=3D'x86_64'>hvm</type>
     <loader readonly=3D'yes'
type=3D'pflash'>/usr/local/share/uefi-firmware/BHYVE_UEFI.fd</loader>
     <boot dev=3D'hd'/>
   </os>
   <features>
     <acpi/>
     <msrs unknown=3D'ignore'/>
   </features>
   <cpu>
     <topology sockets=3D'1' dies=3D'1' cores=3D'4' threads=3D'2'/>
   </cpu>
   <clock offset=3D'localtime'/>
.....

But the bhyve VM Jellyfin is using 14G at this moment
Wed Sep 18 14:24:00 CEST 2024
   UID  PID PPID  C PRI NI      VSZ      RSS MWCHAN   STAT TT        TIME
COMMAND
     0 2106    1 10  20  0 14774616 14149064 kqread   SC    - 1689:51.13=20
bhyve: 1_Jellyfin (bhyve)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282098-27103>