[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-devel-list
Subject:    Re: Fedora 32 System-Wide Change proposal: Enable fstrim.timer by default
From:       Chris Murphy <lists () colorremedies ! com>
Date:       2020-01-03 21:12:51
Message-ID: CAJCQCtRVOVQSKWrofoGDtOmqnza5CxBtgGe9dWSs4mdi6MK+7w () mail ! gmail ! com
[Download RAW message or body]

On Fri, Jan 3, 2020 at 11:48 AM Louis Lagendijk <louis@fazant.net> wrote:
>
> virt-manager does not enable discards on IDE or virtio disks. I think
> it DOES enable discard on SCSI disks. So strictly speaking the above is
> true as long as the default emulation layer is not SCSI but it is a
> matter of a few clicks to enable it.

"hypervisor default" is what virt-manager reports because it doesn't
actually know what the default is.

When the "disk bus" is set to either VirtIO or SCSI, and discard mode
is "hypervisor default", discard pass down is not enabled.

When VirtIO discard mode is "unmap", both blkdiscard and fstrim work
as I'd expect.
When SCSI discard mode is "unmap", fstrim does nothing, but blkdiscard
works as expected. Pretty weird.

Backing device in these cases is a raw file. For SCSI, it's using the
virtio SCSI controller (which is also not added by default in
virt-manager VMs).

So yeah it's really not obvious how to configure all of this, it's
pretty much poke it with a stick and see what happens.


-- 
Chris Murphy
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic