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 From nobody Fri Sep 20 14:26:00 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 4X9F6x1HtBz5XNGd for ; Fri, 20 Sep 2024 14:26:01 +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 4X9F6w6H9Mz4FZ5 for ; Fri, 20 Sep 2024 14:26:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726842360; a=rsa-sha256; cv=none; b=aAcm0G3VZ7u+u7Cz3CGMq9BjjUkLn1SdX9vIg1zlrMWlxWL9HVoE/TBLSj9oDM3CXjO3Dr cV97aSekuc4fCvuWkaIiYoShLI4o/FmaXI9Pi3yCWzh0PjSSc5ofIdckQf2808k38M6zLb tQewMn3rlvHm1j39wtH/qKIe1Ep102vMv6p1GGlz2Zfz7sMlvcgUJRWKXObWmS20jA1o2I Yyhj0SabU0ji2fQ1LjCZqGrK665DvcruklnOlIKeqt2d6bifc3ugJ8uGULUmJKv252usgY 8uWmCZZ1EfD1nSDeK32b/YWm2Wdb6mZboQgR2PuDL1ZsUs9U/wvHQbarMiHdyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726842360; 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: in-reply-to:in-reply-to:references:references; bh=w3M5Duc5fE0WvbEn8l+8oxuJ+WyCiIbx63mBZbv54Es=; b=oIQHDOfOxdRTc7LU2b+dRx+/URKDVkjdRran6qamTvGvm509Td47/rG6+NT/bFFumNTMBW ePLg8ctIC7r3x+DszDj0kzOKZvOCv8lqpZR6c7kuHPOTd6Cx1ah+0inOkXhR9kUzqcAr7x K8/WEOT5/ZLs4D235ONBk4IlYJ1FDrh0KTFoWIdDtyyu8meDxl/MNr62+AehMM0F/1WzuD 8JyHVfVjkGFm4OCUz4uIK6mFh9CXkBZO1QofIJgnz4C+JwAZnKuQR3y+jIKXPtfF2Y5ys7 ggvX2cJpeyOUgRujEQYxot+U5JyF3fhpLDz7AW92xWSM8Z+n6iX0iqBx0Qj+sA== 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 4X9F6w5vtCzstW for ; Fri, 20 Sep 2024 14:26:00 +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 48KEQ0Ku001078 for ; Fri, 20 Sep 2024 14:26:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48KEQ0Hp001077 for virtualization@FreeBSD.org; Fri, 20 Sep 2024 14:26:00 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 271793] virtio: doesn't implement a vsock driver Date: Fri, 20 Sep 2024 14:26:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: danilo@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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=3D271793 Danilo Egea Gondolfo changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |danilo@FreeBSD.org --- Comment #3 from Danilo Egea Gondolfo --- I've been working on a virtio_socket driver and AF_VSOCK as a pet project f= or some time now. I even got the lxd-agent working (partially) at this point. It can open interactive consoles and copy files to and from the VM with a decent throughput. I'm taking this project more seriously now but it's nowhere close to be rea= dy to be reviewed, but I want to finish it eventually. The code is here: (I'm very often force-pushing to this branch) https://github.com/daniloegea/freebsd-src/tree/virtio_vsocks --=20 You are receiving this mail because: You are the assignee for the bug.=