Date: Sun, 12 Jul 2020 15:13:47 +0200 From: Felix Palmen <felix@palmen-it.de> To: freebsd-virtualization@freebsd.org Subject: Re: bhyve, Windows guest and trim support Message-ID: <20200712131347.cjvr4cpbo3rsgnik@nexus.home.palmen-it.de> In-Reply-To: <75f28176-c22a-8742-e86c-d73609cd5463@netfence.it> References: <e15ba239-9a73-2821-1f42-1700d74d031b@netfence.it> <4e0c7427-8bb4-37d6-b717-181d5c9b66d3@freebsd.org> <20200707154025.wm6u4abbrz5tesha@nexus.home.palmen-it.de> <75f28176-c22a-8742-e86c-d73609cd5463@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
--cpf5td6akwyecouv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andrea Venturoli <ml@netfence.it> [20200707 18:18]: > I have yet to try this, but, as I said, I switched temporaly to ahci-hd a= nd > used the instructions at the following link to reclaim space (without the > need to start a new zvol): >=20 > https://winaero.com/blog/trim-ssd-windows-10/ Thanks for this hint, I can now confirm this also works with virtio-blk (applied Allan's patch to 12.1). REFER for the zvol backing my Windows Server 2016 dropped from 315G to 72.5G. A word of warning: From the source cited here, I figured something like | Optimize-Volume -DriveLetter C -Verbose would automatically do "the right thing" for a thinly provisioned virtual disk. Turns out it would indeed, but as I had an older version of the virtio drivers installed, the disk was treated like a physical HDD and this command started a (very) lengthy defragmentation process instead. So, make sure you have a recent version of virtio drivers installed before attempting this with virtio-blk :) > Don't know if you are using other OSes, but I guess something similar must > exist. Yep, now I need the same thing for a 13-CURRENT guest. I'll probably need to apply this patch that's still in review, but what would be the next step? Is there a ZFS command to trigger a "re-TRIM"? --=20 Dipl.-Inform. Felix Palmen <felix@palmen-it.de> ,.//.......... {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de {pgp public key} http://palmen-it.de/pub.txt // """"""""""" {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A --cpf5td6akwyecouv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAl8LDIcACgkQPvKLCrwC 2iodZwf/WdlSDqe7BV6CEhCZVn8dqAWv5d4Ef34JyqU1Znnvk3u0HoUZg15b+Cwi 2Y48fAp8GfBGLfG3CLoqcxTa1FaXVjjTgkY27QI0eHRyNTfSUQ6igQSeiyfHAQls pvDvh/en6UEPZiEEQgwKcHWgZMYDrLUYythUPAtNKq9fM6pNKvynkfTli1/Y0IeV QWVOSiAoU0aUq0HbasiLjjyjuafYFNeIn2mXOAu8/Nk4numoe4jM4XPoi/PGU362 eVNfkbnSSpnEIRAekJYXU49pBG3K9SU2jIJUmpfr/1RtFIx771KbwyPgtBdTZX8I BQwmONG4pwoOAE8+Zlan7sFT3BKjUw== =S3t5 -----END PGP SIGNATURE----- --cpf5td6akwyecouv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200712131347.cjvr4cpbo3rsgnik>