From nobody Tue Oct 15 07:28:34 2024 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XSQgk1ZSsz5YVdL for ; Tue, 15 Oct 2024 07:28:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSQgj6ZMhz42hK for ; Tue, 15 Oct 2024 07:28:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728977313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rlvkLAydTZzEOQZ24FaUsNYf4WraI636PosushJCM+I=; b=Devkcj3+vDRAV/Rddh/69Rjb7smQG+w+COxO2ElIHdc6gZ/K6K0XHR7C35ZV/4X9k1U9Ws GV8b6J9wTXhrxtPsmSLwChv+HngCeo9TfDtl/ad4zaN0HY/a7jp5J/5jdWcaNtAHg/beeC OHDj6L+YLu5I+xB/EUAysHjfb+41G953CC5ZURERrljwzrHg32GeloVa0e/r53ksfGkdlI isGukBamWeLJ+gfX1bdmeu5KeDs8YKZUca1n51MetmJU94p8mVppVbTMPfYAzZ8ueiZcjU HePLe53q9BetdDj2buK47zjLyTawAOKzZ2V8o7XFUpC4fHZGiZF8mVkK1VCoWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728977313; a=rsa-sha256; cv=none; b=CQGuhvtSrjhNvkZWTqVSkg9r/w8ZjvAyJno1k8643Mlv8Zqnc7qI4e0Io7TUptYkz+ivT2 I8ZbFVkAa08l28UlCdvhp7hkhkJ3ckZQomhxbsghNUiWsjz0cl2cPZaoePXQ3ynJJFeV/7 ZS01eXWcnHMKr6kTqzD9eNIOIJ4khG0sykngCmMU7tB7biZUeSfcx6g1fHVPMhnrNGg6q4 a0RnQ6Y7XCahiWStbQeqvNz/ArKkr4uRK4Y8pJDr5CyJ9pYuiD406M+ivNT3ZR1P6AMSUq hVYTux+oLa0jV6bmOoGxUMgfQl5kMFHiAPg5WMZ0RVGI3P3z68gOO1qWjQTlgQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XSQgj6B31z1BdC for ; Tue, 15 Oct 2024 07:28:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49F7SXBc066641 for ; Tue, 15 Oct 2024 07:28:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49F7SX9a066640 for virtualization@FreeBSD.org; Tue, 15 Oct 2024 07:28:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 282098] bhyve is eating my memory and running far beyond the configured limits Date: Tue, 15 Oct 2024 07:28:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: elk-freebsd@wetznet.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 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 ... 1_Jellyfin 615af2a2-84e0-434e-b544-b4c9e7c0872d Jellyfin Jellyfin 8388608 8388608 8 hvm /usr/local/share/uefi-firmware/BHYVE_UEFI.fd ..... 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.=