View previous topic :: View next topic |
Author |
Message |
RAPHEAD Tux's lil' helper
Joined: 20 Jun 2003 Posts: 134 Location: Germany
|
Posted: Thu Dec 01, 2016 8:05 am Post subject: Is there no official Systemd unit for trimming SSDs? |
|
|
We all know that trimming is essential for SSDs, the wiki mentions only a crontab entry that you can add:
https://wiki.gentoo.org/wiki/SSD
As systemd user I don't even have cron installed.
Other distros ship with a systemd unit that is deactivated by default for trimming.
I would love to see this on Gentoo as well.
Any thoughts? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Thu Dec 01, 2016 8:15 am Post subject: |
|
|
Not sure but reading this (arch wiki) seems that are a fstrim.service in sys-apps/util-linux (if systemd use flag is enabled).
I can't confirm because I have OpenRC. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
RAPHEAD Tux's lil' helper
Joined: 20 Jun 2003 Posts: 134 Location: Germany
|
Posted: Thu Dec 01, 2016 8:32 am Post subject: |
|
|
Ahh, that's a nice idea, I just tried to add the systemd flag globally but not a single package would be recompiled.
So it seems like the util-linux on Gentoo eBuild is not aware of this.
If there are no other ways, I think I will create an issue for this. |
|
Back to top |
|
|
russK l33t
Joined: 27 Jun 2006 Posts: 665
|
Posted: Fri Dec 02, 2016 3:59 am Post subject: |
|
|
I have global systemd USE flag and my util-linux provides the fstrim things.
I have this:
Code: | $ equery list util-linux
* Searching for util-linux ...
[IP-] [ ] sys-apps/util-linux-2.28.2:0
$ equery files util-linux | grep trim
/sbin/fstrim
/usr/lib/systemd/system/fstrim.service
/usr/lib/systemd/system/fstrim.timer
/usr/share/bash-completion/completions/fstrim
/usr/share/man/man8/fstrim.8.bz2
|
HTH |
|
Back to top |
|
|
|