Re: Fedora 32 System-Wide Change proposal: Enable fstrim.timer by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 20, 2019 at 10:23:50AM +0100, Lennart Poettering wrote:
> On Do, 19.12.19 16:42, Ben Cotton (bcotton@xxxxxxxxxx) wrote:
> 
> > Over time, some users experience slow downs in certain flash storage
> > devices. This might be alleviated by issuing a periodic fstrim command
> > to the mounted file system. Devices and file systems that don't
> > support fstrim are unaffected.
> 
> So, if this is desirable, why doesn't the kernel do this on its own?

When? 

You can use "mount/swapon -o discard" to do it on-the-fly, but in some
cases it's bad idea and it's better to keep it in user's hands.

> Why do we need a userspace component that just gets an event from the
> kernel and then tells the kernel to do something?

It does not get any event from kernel. It starts in specified time
operation which may be unwanted in another time.

> If this is generally
> desirable, why is something as trivial as that not a kernel
> functionality anyway?

You want to ask at LKML ;-) 

(CC: to Lukas who is cares about it in kernel)

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux