From nobody Wed Sep 18 12:25:36 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 4X7yY662m2z5WFGG for ; Wed, 18 Sep 2024 12:25:46 +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 4X7yY44Qc3z4stS for ; Wed, 18 Sep 2024 12:25:44 +0000 (UTC) (envelope-from elk-freebsd@wetznet.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wetznet.de header.s=key2 header.b=WwOh6n+u; dmarc=none; 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 Received: from mors-relay-8201.netcup.net (localhost [127.0.0.1]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4X7yY15C1kz3v6V for ; Wed, 18 Sep 2024 14:25:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetznet.de; s=key2; t=1726662341; bh=Lgf+b84ulgRxmjFw62kuH5cn6PVojVhMb50NqSUgBF8=; h=Date:From:Subject:To:From; b=WwOh6n+u5pAadFSo4O9ur79tnLCjspBJFaWg7ZXP1WZJ3D8FQadsl0R5suD+P5TY4 eRRbolgwinNkTy/NG9/D9yHPCrb7Lgo8GOPYMpMfyuA8MtrIcCAxp4kVg45c0c6MdK mNzo2deejK/I3DBL5CpUdEUwKxbklJmvZK5znTPkCCDKxxJ9M/4dOLgJDVZwbsDrp0 c0uUKYXdoN6icwZwpQXVGZgRwS6/px0asTGrkLeIgZNCjnI+U/e+Xc3acnTva7LC2O wQiWT0rFmY4MZVYgrnQhtnaNaLJSJKGO2mo+gQEz5v+6SmwM2ZcJ3NipDhfJEvUAVd D59hpQrYk/X8g== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4X7yY14V15z3v5b for ; Wed, 18 Sep 2024 14:25:41 +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 4X7yY12ltlz8sZP for ; Wed, 18 Sep 2024 14:25:41 +0200 (CEST) Received: from [192.168.155.133] (dynamic-078-055-220-097.78.55.pool.telefonica.de [78.55.220.97]) by mxe85d.netcup.net (Postfix) with ESMTPSA id D24841C00D8 for ; Wed, 18 Sep 2024 14:25:36 +0200 (CEST) Received-SPF: pass (mxe85d: connection is authenticated) Message-ID: <153b4cdf-d65b-4cb0-b5e7-e7a5626f2523@wetznet.de> Date: Wed, 18 Sep 2024 14:25:36 +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: <172666233709.15573.15548229688513452466@mxe85d.netcup.net> X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: bpIPY2M/IfYjInXQZwQ2k3cT4uH67jpBNTeK6ZQzvQ== X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.45 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.964]; 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: 4X7yY44Qc3z4stS 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