Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4961

General discussion • fstrim entries in the journal.

$
0
0
Out of curiosity I took a look in the journal to see if there was any logging about trimming my NVMe drive.

Code:

journalctl  | grep trimmedMar 04 08:43:50 pi-nvme fstrim[5782]: /: 374 GiB (401585004544 bytes) trimmed on /dev/nvme0n1p2Mar 04 08:43:50 pi-nvme fstrim[5782]: /boot/firmware: 429.3 MiB (450185216 bytes) trimmed on /dev/nvme0n1p1Mar 11 09:11:15 pi-nvme fstrim[5439]: /: 372.4 GiB (399906091008 bytes) trimmed on /dev/nvme0n1p2Mar 11 09:11:15 pi-nvme fstrim[5439]: /boot/firmware: 429.3 MiB (450185216 bytes) trimmed on /dev/nvme0n1p1Mar 18 08:09:48 pi-nvme fstrim[3618]: /: 363.1 GiB (389926141952 bytes) trimmed on /dev/nvme0n1p2Mar 18 08:09:48 pi-nvme fstrim[3618]: /boot/firmware: 429.3 MiB (450185216 bytes) trimmed on /dev/nvme0n1p1Mar 25 09:26:44 pi-nvme fstrim[7493]: /: 359.6 GiB (386100985856 bytes) trimmed on /dev/nvme0n1p2Mar 25 09:26:44 pi-nvme fstrim[7493]: /boot/firmware: 428.1 MiB (448937984 bytes) trimmed on /dev/nvme0n1p1Apr 01 08:12:43 pi-nvme fstrim[3498]: /: 359.5 GiB (386031079424 bytes) trimmed on /dev/nvme0n1p2Apr 01 08:12:43 pi-nvme fstrim[3498]: /boot/firmware: 428.1 MiB (448937984 bytes) trimmed on /dev/nvme0n1p1Apr 08 08:45:10 pi-nvme fstrim[7555]: /: 352 GiB (377921028096 bytes) trimmed on /dev/nvme0n1p2Apr 08 08:45:10 pi-nvme fstrim[7555]: /boot/firmware: 428.1 MiB (448937984 bytes) trimmed on /dev/nvme0n1p1Apr 15 07:22:44 pi-nvme fstrim[3668]: /: 343.4 GiB (368704524288 bytes) trimmed on /dev/nvme0n1p2Apr 15 07:22:44 pi-nvme fstrim[3668]: /boot/firmware: 428.1 MiB (448937984 bytes) trimmed on /dev/nvme0n1p1
Something is clearly happening, but the numbers look strange to me. For example the same number of bytes have been trimmed on /boot/firmware for the last 4 weekly runs. If nothing has changed on that partition in a week I would have expected to see zero bytes being trimmed.

Is there something wrong or have I misunderstood trimming and/or the log entries ?

PeterO

Statistics: Posted by PeterO — Mon Apr 22, 2024 8:05 am



Viewing all articles
Browse latest Browse all 4961

Trending Articles