Score:0

Why is Xubuntu/Ubuntu 20.04 constantly writing to disk at a rate of 1G/day?

cn flag

I have my Xubuntu 20.04 installed on a 2T SSD. This computer was purchased in October 2020, and is just over a year old. It is lightly used. I do not run firefox/chrome browsers on it because browsers are notoriously known for writing megabytes to disk every 15 seconds.

To my surprise, my 2T SSD already has 353G data written already. This is about 1G/day for sitting idle and not doing anything.

$ date ; cat /sys/fs/ext4/sda2/lifetime_write_kbytes
Sat 12 Feb 2022 11:33:17 PM PST
353386235

$ date ; cat /sys/fs/ext4/sda2/lifetime_write_kbytes
Sat 12 Feb 2022 11:33:34 PM PST
353386331

$ date ; cat /sys/fs/ext4/sda2/lifetime_write_kbytes
Sat 12 Feb 2022 11:41:13 PM PST
353386999

According to the above information, my idle computer is writing at a rate of 0.5M/sec. What process is actually writing so much data and eating my SSD? I want to shut it down.

in flag
If you’re *very* concerned about the lifespan of your SSD, you may want to read up about how modern OSes and SSDs work together to ensure maximum lifespans. Your drive will have also shipped with some additional storage that is not seen by the OS until blocks of flash memory have gone bad, allowing you to have perhaps a decade or more of “normal” operations. If you want to see what’s using your NVMe at any given time, you may want to consider [installing `iotop`](http://manpages.ubuntu.com/manpages/focal/man8/iotop.8.html), which will show what services and applications are using the storage.
Terrance avatar
id flag
It was writing at 5.64KB/sec which is no where near 0.5MB/sec. Your first two readings are 17 seconds apart with 96KB between them.
Terrance avatar
id flag
The second reading was even less writing. Your span was 7 minutes 39 seconds or 459 seconds with 668KB written which works to 1.45KB/sec. I very highly doubt that your system is sitting idle 24 hours a day 7 days a week.
lisprogtor avatar
cn flag
Thank you very much matigo and Terrance. It is idle except an ssh which I hardly ever login remotely.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.