On Sat, Mar 07, 2020 at 01:55:32PM +0100, Thomas Trepl wrote:
> Am Samstag, den 07.03.2020, 20:07 +0800 schrieb Xi Ruoyao:
> > On 2020-03-07 12:47 +0100, Thomas Seeling wrote:
> > > Hallo,
> > >
> > > > > I thought that trim stuff was all handled automagically by kernels
> > > > > now.
> > > > isn't very long since fedora were deciding whether or not fstrim
> > > > should be automatically enabled in their installer, and my memory
> > > > says that they went with the systemd service to run it daily.
> > >
> > > fstrim is neither in LFS nor BLFS book. It's a small download from
> > > sourceforge, latest release from 2010 is 0.2.
> >
> > fstrim is now a part of LFS package util-linux. A systemd timer unit is
> > also
> > shipped so we can tell systemd to run fstrim weekly:
> >
> > systemctl enable fstrim.timer
> >
> > For sysvinit I'm not sure how to do this.
>
> For sysv, a scheduler (fcron) might be required. If installed,
> drop a file containing
>
> #/bin/bash
> /usr/bin/fstrim --fstab --verbose --quiet
>
> into the directory /etc/cron.weekly. That should be enough.
> (Not tested yet)
>
> --
> Thomas
>
For me, adding the option to fstab seems to work fine.
I only noticed the need for it adter I had updated one machine to
use an SSD and forgot to change my fstab data for that machine in my
scripts. i.e. the system was good until I built a new system.
In that new system I eventually tested some kernel scheduler option
and noticed that build times were increasing on each (short) test
run.
For all my normal use, discard in fstab seems fine.
ĸen
--
#define THE_TRUTH_AND_THATS_CUTTIN_ME_OWN_THROAT true
Al Viro, complaining about a 'TRUE' macro in staging
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style