On Fri, Dec 20, 2019 at 10:23:50AM +0100, Lennart Poettering wrote:
> On Do, 19.12.19 16:42, Ben Cotton (bcot...@redhat.com) 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  <k...@redhat.com>
 http://karelzak.blogspot.com
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@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

Reply via email to