From nobody Wed Oct 02 10:48:31 2024 X-Original-To: freebsd-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 4XJWkd6hwmz5YLf3 for ; Wed, 02 Oct 2024 10:48:41 +0000 (UTC) (envelope-from elk-freebsd@wetznet.de) Received: from relay.yourmailgateway.de (relay.yourmailgateway.de [188.68.63.162]) (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 (2048 bits) client-digest SHA256) (Client CN "*.netcup.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJWkc3T26z4MnJ for ; Wed, 2 Oct 2024 10:48:40 +0000 (UTC) (envelope-from elk-freebsd@wetznet.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wetznet.de header.s=key2 header.b=LsRmpLHe; spf=pass (mx1.freebsd.org: domain of elk-freebsd@wetznet.de designates 188.68.63.162 as permitted sender) smtp.mailfrom=elk-freebsd@wetznet.de; dmarc=none Received: from mors-relay-8201.netcup.net (localhost [127.0.0.1]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4XJWkX56ZBz3tcl for ; Wed, 2 Oct 2024 12:48:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetznet.de; s=key2; t=1727866116; bh=Lgf+b84ulgRxmjFw62kuH5cn6PVojVhMb50NqSUgBF8=; h=Date:From:Subject:To:From; b=LsRmpLHeiNqMyY0LDXrd05MQVIVKOluVxtCmFaWRJDkdOINzJ2wwxcG3HBX8a3ytb b/JP3zCFoXQ6IINpkvGvkNwzA6I+yvfzDvLA0FfCEQEZyD4kBaKOoEBYqjd7VRt/x5 +/vFreisDeKSL+d0Xq+oGuv7Gl5MFvAI/bNRs+FpyAQCsVDs9ig2cUhWKkQqGLNh+s udHHuGbwa8HUTVTWbm+EfKyqfsruCOmuDJ8JNh5SO0o74B93mN/GFH4cylm4T4lWPB bAhx+jo3Td+xMQEAglYlMpT0ZaAqLZSINcOpDymQ8qtwkAslgxtPiIc2+v9QVXF+0Q pEF8brtk6o0Ew== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4XJWkX4PXMz3tXs for ; Wed, 2 Oct 2024 12:48:36 +0200 (CEST) Received: from mxe85d.netcup.net (unknown [10.243.12.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4XJWkX2gXMz8sZw for ; Wed, 2 Oct 2024 12:48:36 +0200 (CEST) Received: from [192.168.155.133] (dynamic-089-012-045-217.89.12.pool.telefonica.de [89.12.45.217]) by mxe85d.netcup.net (Postfix) with ESMTPSA id CEF681C0089 for ; Wed, 2 Oct 2024 12:48:31 +0200 (CEST) Received-SPF: pass (mxe85d: connection is authenticated) Message-ID: <021c234e-5dad-4ebc-9b92-9a03cb79b5ad@wetznet.de> Date: Wed, 2 Oct 2024 12:48:31 +0200 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 User-Agent: Mozilla Thunderbird From: elk-freebsd@wetznet.de Subject: bhyve is eating my memory and running far beyond the configured limits To: FreeBSD virtualization Content-Language: de-DE, en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <172786611210.8537.6893936760475641606@mxe85d.netcup.net> X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: 1n8p88kZy9xcnGVquiVC0U6CJVDAU5M0QJKR/UgfQw== X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:188.68.63.160/28]; R_DKIM_ALLOW(-0.20)[wetznet.de:s=key2]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197540, ipnet:188.68.63.0/24, country:DE]; ARC_NA(0.00)[]; FROM_NO_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[188.68.63.162:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[wetznet.de]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[wetznet.de:+] X-Rspamd-Queue-Id: 4XJWkc3T26z4MnJ X-Spamd-Bar: --- Hi, I running Truenas 13.3 which is on Freebsd 13.3-RELEASE-p4 on AMD Ryzen 5 PRO 4650G bhyve is configured for two VMs one with 4GB (Windows) and one with 8GB (linux) 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. 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  bhyve: 1_Jellyfin (bhyve) What can I do to support the issue solving process ? elk