Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Laitealue => Aiheen aloitti: jarmala - 22.07.19 - klo:19.41
-
Kas vaan, huomasin juuri, että joskus sitä SSD:täkin trimmataan:
$ systemd-analyze blame
6min 12.314s fstrim.service
19.789s apt-daily.service
4.331s plymouth-quit-wait.service
3.898s apt-daily-upgrade.service
1.282s snapd.service
1.057s dev-sda1.device
Koskaan ennen huomannut moista. Lienee normaalia? Eh?
-
Trim (discard) is enabled to run weekly by default in 18.04.
It is a systemd service managed via systemctl, not CRON.
fstrim is set to run for all mounted filesystems on devices that support the discard operation.
View fstrim.timer status:
systemctl status fstrim.timer
-
Trim (discard) is enabled to run weekly by default in 18.04.
It is a systemd service managed via systemctl, not CRON.
fstrim is set to run for all mounted filesystems on devices that support the discard operation.
View fstrim.timer status:
systemctl status fstrim.timer
Active: inactive (dead) tulee minulla, siksipä olen ajastanut fstrim:in cronilla kerran viikossa
-
Muita hyödyllisiä komentoja:
sudo systemctl [start/stop/restart] fstrim.timer
sudo systemctl [enable/disable] fstrim.timer
systemctl cat fstrim.timer
systemctl cat fstrim.service
-
systemctl status fstrim.timer
Jees. Noinhan se taitaa olla:
$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Sun 2019-07-21 20:29:53 EEST; 4 days ago
Trigger: Mon 2019-07-29 00:00:00 EEST; 3 days left
Docs: man:fstrim
heinä 21 20:29:53 ari systemd[1]: Started Discard unused blocks once a week.
$
Eli varmaan ajettiin ensimmäisen kerran, joten se vei aikaa peräti kuusi minuuttia...