Systemd writes a lot to disk

I can’t understand why the systemd process can write more than 1 GB of data to disk in a day.

I noticed that if open and close google-chrome, then the record grows from 20 to 40 mb

have you checked in log journals ?

Yes, I checked it. Didn’t find anything that pointed to a record.

Did :

sudo fatrace -f W
sudo strace -p PID
sudo lsof -p PID
sudo strace -yy -e trace=open,openat,close,write -f -p PID

systemd process PID

Same way didn’t find anything that pointed to a record.

While I was sitting on the forum and closed google-chrome, the entry increased by 500 mb :frowning_face:

Apparently no one has come across such a thing.

check if there any debug line in config systemd that do writes to the disk ( or somewhere )

This is a guess with the following assumption: All processes are started from the initial systemd PID 1

The application that does the accounting measures the total for each proces and child processes.
The measurement you see is the total written from one of the running process and child processes.

For comparison: my gnome system systemd process has written 4,4GB today and is up 8 hours, some browsing, some gaming, some reading, some administrative chores.

1 Like

You were right:

pstree -p 
           ├─systemd(958)─┬─(sd-pam)(959)
           │              ├─at-spi-bus-laun(1068)─┬─dbus-daemon(1080)
           │              │                       ├─{at-spi-bus-laun}(1076)
           │              │                       └─{at-spi-bus-laun}(1078)
           │              ├─at-spi2-registr(1745)─┬─{at-spi2-registr}(1746)
           │              │                       └─{at-spi2-registr}(1747)
           │              ├─chrome(66305)─┬─cat(66313)
           │              │               ├─cat(66314)
           │              │               ├─chrome(66317)───chrome(66346)─┬─{chrome}(66373)
           │              │               │                               ├─{chrome}(66374)
           │              │               │                               ├─{chrome}(66375)
           │              │               │                               ├─{chrome}(66376)
           │              │               │                               ├─{chrome}(66377)
           │              │               │                               ├─{chrome}(66378)
           │              │               │                               ├─{chrome}(66379)
           │              │               │                               ├─{chrome}(66380)
           │              │               │                               ├─{chrome}(66381)
           │              │               │                               ├─{chrome}(66382)
           │              │               │                               ├─{chrome}(66383)
           │              │               │                               ├─{chrome}(66384)
           │              │               │                               ├─{chrome}(66385)
           │              │               │                               ├─{chrome}(66386)
           │              │               │                               ├─{chrome}(66387)
           │              │               │                               ├─{chrome}(66388)
           │              │               │                               ├─{chrome}(66389)
           │              │               │                               ├─{chrome}(66390)
           │              │               │                               ├─{chrome}(66392)
           │              │               │                               ├─{chrome}(69266)
           │              │               │                               └─{chrome}(70023)
           │              │               ├─chrome(66318)─┬─chrome(66322)─┬─chrome(66367)─┬─{chrome}(66368)
           │              │               │               │               │               ├─{chrome}(66369)
           │              │               │               │               │               ├─{chrome}(66370)
           │              │               │               │               │               ├─{chrome}(69530)
           │              │               │               │               │               └─{chrome}(70021)
           │              │               │               │               ├─chrome(66399)─┬─{chrome}(66407)
           │              │               │               │               │               ├─{chrome}(66409)
           │              │               │               │               │               ├─{chrome}(66411)
           │              │               │               │               │               ├─{chrome}(66419)
           │              │               │               │               │               ├─{chrome}(66420)
           │              │               │               │               │               ├─{chrome}(66421)
           │              │               │               │               │               ├─{chrome}(66422)
           │              │               │               │               │               ├─{chrome}(66423)
           │              │               │               │               │               ├─{chrome}(66424)
           │              │               │               │               │               ├─{chrome}(66425)
           │              │               │               │               │               ├─{chrome}(70022)

I compared how much chrome wrote, the same amount was added to the total record for systemd.

1 Like

Hey, this is helpful stuff

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.