You are not logged in.

#1 2021-01-24 18:03:39

Gdr-
Member
Registered: 2021-01-24
Posts: 2

[Solved] Absurdly high memory usage on a base install

Is it normal for the memory usage to be around ~240MB on a fresh install in the tty ? The packages being used were simply

base base-devel linux linux-firmware grub efibootmgr nano

The only services enabled manually are

systemd-networkd systemd-resolved
free -m :

              total        used        free      shared  buff/cache   available
Mem:          15987         236       15316           2         435       15475


top (sorted by mem%) :

top - 17:46:05 up 34 min,  2 users,  load average: 0.00, 0.03, 0.02
Tasks: 224 total,   1 running, 223 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  15987.7 total,  15314.9 free,    237.2 used,    435.6 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  15474.8 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
    295 root      20   0   48788  15580  14616 S   0.0   0.1   0:00.09 systemd-journal
    370 systemd+  20   0   18664  11052   9248 S   0.0   0.1   0:00.26 systemd-resolve
      1 root      20   0   24480  10460   7732 S   0.0   0.1   0:00.54 systemd
    460 gdr       20   0   15816   9052   7476 S   0.0   0.1   0:00.06 systemd
   3092 root      20   0   10772   8300   7148 S   0.0   0.1   0:00.02 sshd
    311 root      20   0   28272   8104   6492 S   0.0   0.0   0:00.15 systemd-udevd
    319 systemd+  20   0   14920   7764   6860 S   0.0   0.0   0:00.04 systemd-network
    331 root      20   0  309164   7504   6524 S   0.0   0.0   0:00.04 systemd-logind
    445 root      20   0    8800   5800   5112 S   0.0   0.0   0:00.00 sshd
    467 gdr       20   0    8644   5528   3728 S   0.0   0.0   0:00.05 bash
   3095 gdr       20   0    8368   5168   3612 S   0.0   0.0   0:00.04 bash
   3094 gdr       20   0   10772   5008   3856 S   0.0   0.0   0:00.01 sshd
    330 dbus      20   0    7296   4372   3740 S   0.0   0.0   0:00.03 dbus-daemon
    447 root      20   0    6796   4284   3616 S   0.0   0.0   0:00.01 login
   3120 gdr       20   0   10376   3792   3040 R   0.0   0.0   0:00.02 top
    461 gdr       20   0   27000   2700      8 S   0.0   0.0   0:00.00 (sd-pam)
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-kblockd
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ksoftirqd/0
     10 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcuc/0
     11 root      -2   0       0      0      0 I   0.0   0.0   0:00.20 rcu_preempt
     12 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcub/1
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0
     14 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/0
     15 root      20   0       0      0      0 I   0.0   0.0   0:00.07 kworker/0:1-events
     16 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1
     18 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/1
     19 root      rt   0       0      0      0 S   0.0   0.0   0:00.22 migration/1
     20 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcuc/1
     21 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ksoftirqd/1
     23 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/2
     25 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/2
     26 root      rt   0       0      0      0 S   0.0   0.0   0:00.22 migration/2
     27 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcuc/2
     28 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ksoftirqd/2
     30 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/2:0H-kblockd
     31 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/3
     32 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/3
     33 root      rt   0       0      0      0 S   0.0   0.0   0:00.22 migration/3
     34 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcuc/3
     35 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ksoftirqd/3
     36 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0-events
     37 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0H-events_highpri
     38 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/4
     39 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/4
     40 root      rt   0       0      0      0 S   0.0   0.0   0:00.22 migration/4
     41 root      -2   0       0      0      0 S   0.0   0.0   0:00.00 rcuc/4
     42 root      20   0       0      0      0 S   0.0   0.0   0:00.00 ksoftirqd/4

I know memory monitoring can be approximative, but this seems off, all of the processes are using about 50% of the reported memory usage.
I also made sure not to monitor cached files, by doing a simple

find

on another drive. The reported cache was bigger, but not the memory reading, so this isn't a "linuxatemyram.com"

What got me worried is that on other hardwares, the same configuration has a footprint of ~100MB, and all of it can be attributed to the running processes.

Any help or explanation is appreciated, thanks!

Last edited by Gdr- (2021-01-25 06:45:47)

Offline

#2 2021-01-24 18:26:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Absurdly high memory usage on a base install

This is completely normal for a 16GiB machine, use ps_mem to see a full breakdown (it will give a lower figure). On my 16GiB system even a musl libc distribution still hovers around 140MiB used at the bare console. OpenBSD is significantly lighter if that's what you want — I see under 100MiB at the graphical desktop (dwm) for that operating system on the same hardware


Jin, Jîyan, Azadî

Offline

#3 2021-01-24 18:58:25

Gdr-
Member
Registered: 2021-01-24
Posts: 2

Re: [Solved] Absurdly high memory usage on a base install

Head_on_a_Stick wrote:

This is completely normal for a 16GiB machine, use ps_mem to see a full breakdown (it will give a lower figure). On my 16GiB system even a musl libc distribution still hovers around 140MiB used at the bare console. OpenBSD is significantly lighter if that's what you want — I see under 100MiB at the graphical desktop (dwm) for that operating system on the same hardware

Oh okay, thanks for the clarification. If this normal then there's nothing to worry about. Thanks again!

Offline

#4 2021-01-24 23:30:20

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] Absurdly high memory usage on a base install

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB