Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there no official Systemd unit for trimming SSDs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Thu Dec 01, 2016 8:05 am    Post subject: Is there no official Systemd unit for trimming SSDs? Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Thu Dec 01, 2016 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Thu Dec 01, 2016 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 665

PostPosted: Fri Dec 02, 2016 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum