From owner-freebsd-virtualization@freebsd.org Mon Jul 6 21:40:27 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 988C13498E6 for ; Mon, 6 Jul 2020 21:40:27 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0zWb2s97z4c4K for ; Mon, 6 Jul 2020 21:40:27 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 5FD33349644; Mon, 6 Jul 2020 21:40:27 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F9BC349A95 for ; Mon, 6 Jul 2020 21:40:27 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0zWZ0Szqz4c2B for ; Mon, 6 Jul 2020 21:40:25 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mail-ed1-x52a.google.com with SMTP id dg28so36546107edb.3 for ; Mon, 06 Jul 2020 14:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZjF8q/SMau/s6ii90ECOoyUyGJxQXqZs8XQj2flgVDw=; b=QC0UvsOrTmf5SGdGi6TcWcj0a7Pmlnq3sNfJfjVKHclHG6bf3NIyaXbcvS/ZxTD8Ft Aay5+H8iM9wpU9eNV6vwocYXRxflQWUo1ltp4gcE234MVideu+JqWNCsxg9j2r0CSTN6 ZJm3L0dPYUD9oVmrFkQXTqRMEiUK3BGiKydU5fLpRCGc6+jaOcr0HbtgsJukEVYlvtcd dNhJJuZw8kiG/2265FEatTnMp1MHPro4zXjBeywsoIW6+p1IZatEycz6DMg66OgLPIRW 1rgxP2U0NmWMMELh7phhevwvFwbo5Zc7VBoRzRhvwLYcBuxestdNuMBGH1LFtfhj90SS Rclg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZjF8q/SMau/s6ii90ECOoyUyGJxQXqZs8XQj2flgVDw=; b=b4B4mfPHbXL/Nc4YqH1EXIVnQd7NEy11T/Ok/H+CAoFSCwffol5XlUWvCW6VLNejlV ONf3k++sgKe1WRBGd74Zg3x+nP6BGmhdL8tR0Eo19l2axZORN+a0yOkYLBqcfYjpkku2 Yg6jSgWHHk/eJlr4Q5X9z6YucWMEMxpi+X7UHe86t/0Bx3CyoZmzePyN4UhM/WHYbFMz Y/pyw3MRtbaNWNZXpyoMsZBexcvaiDGiYYs9+GnX0MQkdpwbOrCKUcbwsJrxD5dYdJeH MNwOiZ+Bdxl7F13JXIBzaGsjW9moerM1G/PLoF9ppCPs1T91cCkEJrqcU3N5a8rAsBud qchA== X-Gm-Message-State: AOAM531Zy1Qm/c2fe/l5F+RSlTUD5DXCZCa+NTV+TJxBEkKrjwj+DmI2 r5MspVQzcXQKXrcS/ALYaqyFiDOClQHUXclvbP4cbYIq X-Google-Smtp-Source: ABdhPJziW3ACyGuTv0IZTCyknKWRecZZ3kQAT6ogUZaTUBAGTEAVeFp9KlAM/f/mykAN75S78a5iaJMhWyxNfK6/1oQ= X-Received: by 2002:a05:6402:1605:: with SMTP id f5mr61351818edv.8.1594071624401; Mon, 06 Jul 2020 14:40:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dustin Marquess Date: Mon, 6 Jul 2020 16:40:13 -0500 Message-ID: Subject: Re: bhyve, Windows guest and trim support To: Andrea Venturoli Cc: virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4B0zWZ0Szqz4c2B X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=QC0UvsOr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dmarquess@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=dmarquess@gmail.com X-Spamd-Result: default: False [-3.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.002]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52a:from]; NEURAL_HAM_SHORT(-0.40)[-0.396]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2020 21:40:27 -0000 Try nvme, I believe that driver supports TRIM and I've had a lot better performance with it over ahci-hd. -Dustin On Mon, Jul 6, 2020 at 12:24 PM Andrea Venturoli wrote: > > Hello. > > I'm running zvol-backed Windows guests in bhyve on FreeBSD 12.1. > Over time, I see the zvol effectively used space grow in size: a sign > that Windows isn't trimming it. > > I'm using virtio-blk: I guess this driver does not support trim? > I see reports that this support was added, but it's not clear to me > whether it's in the released version or not (I've downloaded the stable > binary ISO from RedHat). > Is trim expected to work in such a scenario? > If not, is it a bhyve problem or a guest-driver problem (or both)? > > I tried virtio-scsi, which should support trim, but the guest doesn't > even start in this case, getting stuck at the UEFI boot stage and ending > up in UEFI prompt. > Again, is this expected? > No guest driver has been loaded yet, so is it a bhyve limitation? > Is some tweak needed? > > I tried changing from virtio-blk to ahci-hd: I was then able to manually > trim the disk from inside the guest and recover a lot of space in the zpool. > Alas ahci-hd is much slower, so I moved back to virtio-blk after that > (at least for the time being). > > bye & Thanks > av. > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"