You are not logged in.

#1 2014-11-22 19:46:02

maggie
Member
Registered: 2011-02-12
Posts: 255

Why is systemd-journal taking up 110 MB? [SOLVED]

% ps -A --sort -rss -o comm,pmem,rss | head -n 20
COMMAND         %MEM   RSS
systemd-journal  2.8 109284
Xorg.bin         1.2 46268

For me, systemd-journal is taking up 2x the memory as Xorg is... I did not modify anything but that just seems wrong.  Any advice?

Last edited by maggie (2014-11-23 17:30:15)

Offline

#2 2014-11-22 19:48:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Why is systemd-journal taking up 110 MB? [SOLVED]

Not even in my top 20 list.  Something is wrong with your setup I suspect.

% memrss                                                                                                    :(
COMMAND                   %MEM    RSS
Xorg.bin                  0.1     47.75
Thunar                    0.0     27.95
xfdesktop                 0.0     27.69
xfwm4                     0.0     26.01
xfce4-terminal            0.0     24.66
xfce4-panel               0.0     24.44
panel-7-mixer             0.0     23.00
xfce4-session             0.0     18.26
panel-4-datetim           0.0     17.24
panel-18-netloa           0.0     17.20
panel-8-actions           0.0     17.01
xfce4-sensors-p           0.0     16.62
polkitd                   0.0     16.42
panel-2-cpugrap           0.0     15.00
xfsettingsd               0.0     14.90
ntpd                      0.0     14.88
panel-6-systray           0.0     14.25
xfce4-power-man           0.0     13.90
pulseaudio                0.0     10.69

FYI -

% which memrss
memrss: aliased to while read command percent rss; do if [[ "${command}" != "COMMAND" ]]; \\nthen rss="$(bc <<< "scale=2;${rss}/1024")"; fi; printf "%-26s%-8s%s\n" "${command}" "${percent}" "${rss}"; \\ndone < <(ps -A --sort -rss -o comm,pmem,rss | head -n 20)

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-11-22 20:14:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Why is systemd-journal taking up 110 MB? [SOLVED]

$ ps -C systemd-journal -o comm,pmem,rss
COMMAND         %MEM   RSS
systemd-journal  0.0  3372

I limited the size of the journal:

$ grep -v "#"  /etc/systemd/journald.conf

[Journal]
SystemMaxUse=50M
SystemMaxFileSize=10M

I'm using ext4.


Check the logs, systemd's journal.

Last edited by karol (2014-11-22 20:15:00)

Offline

#4 2014-11-22 23:44:06

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: Why is systemd-journal taking up 110 MB? [SOLVED]

There's also

$ journalctl --disk-usage

For me It took more than 1 GB once. big_smile

Coredumps can also grow very fast, but they can also be limited in

/etc/systemd/coredump.conf

Offline

#5 2014-11-22 23:48:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Why is systemd-journal taking up 110 MB? [SOLVED]

Radioactiveman wrote:

There's also

$ journalctl --disk-usage

For me It took more than 1 GB once. big_smile

Coredumps can also grow very fast, but they can also be limited in

/etc/systemd/coredump.conf

OP isn't asking about disk usage, but memory usage. They may be linked, but that's just a guess on my part.

Offline

#6 2014-11-23 17:30:04

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: Why is systemd-journal taking up 110 MB? [SOLVED]

Looks like limiting the maxsize also limits it in memory. Thank you for that suggestion.

Offline

Board footer

Powered by FluxBB