D
Deleted member 43773
Guest
Hi all.
For a couple of days I am trying to understand something.
I observe my RAM is nearly used up - or at least system info tools tell me so.
A typical view of top looks like this:
I find it astonishing, that Xorg is reported with over 6G.
Also vmstat confirms only 300M are free of 8G:
(I've seen values down to 253M)
This morning I made the following tests:
After boot I did not start X but stay in terminal only and again looked at top.
The memory reported as free first is well above 6G but then drops down, with approximately 200M per second.
So I also take a look at my little server, which has no X installed, which is up for over 26 days by now.
Looks similar:
So that gives me the clue:
X isn't the "offender" (if there is any).
There doesn't have to be problem, it may be normal.
Both machines run FreeBSD 12.2-RELEASE-p3 with ZFS, any pkgs are up to date, as far as I checked.
The first one with 8G RAM on 2 HDDs in mirror
The second with 16G on 4 HDDS in raidz2
So, here is my question:
May it be, there is no "Memory-leakage", but that's just a normal state of the system?
The RAM is not really used up, but only shown as, because it's managed by some kind of system's demon(s) (ZFS?),
but for the tools such as top or vmstat it looks like it's used up?
Or do I really have some kind of issue I shall engage?
Thanks.
P.S.: I also always have 1 zombie, even after reboot. So something has to be corrected anyway, even if both issues may have nothing to do with each other.
For a couple of days I am trying to understand something.
I observe my RAM is nearly used up - or at least system info tools tell me so.
A typical view of top looks like this:
Code:
last pid: 6667; load averages: 0.32, 1.18, 1.22 up 0+00:37:36 07:14:28
50 processes: 1 running, 48 sleeping, 1 zombie
CPU: 2.0% user, 0.0% nice, 9.8% system, 0.6% interrupt, 87.6% idle
Mem: 1058M Active, 486M Inact, 59M Laundry, 5973M Wired, 6913K Buf, 317M Free
ARC: 4899M Total, 2810M MFU, 2026M MRU, 800K Anon, 40M Header, 22M Other
4580M Compressed, 8763M Uncompressed, 1.91:1 Ratio
Swap: 4096M Total, 4096M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
47203 myuser 51 21 0 2807M 493M select 3 1:43 5.37% firefox
59782 myuser 26 21 0 2568M 312M select 1 2:08 3.36% firefox
25581 myuser 3 21 0 6284M 81M select 1 0:39 2.90% Xorg
32327 myuser 10 52 0 254M 82M sigwai 1 0:15 0.79% vlc
45415 root 1 20 0 11M 1864K select 2 0:02 0.60% moused
59175 myuser 25 20 0 2618M 354M select 0 0:17 0.06% firefox
64408 myuser 24 20 0 2433M 192M select 0 0:09 0.05% firefox
6667 root 1 20 0 13M 3124K CPU3 3 0:00 0.04% top
27759 myuser 1 20 0 23M 11M select 1 0:00 0.03% fvwm
46783 root 1 20 0 10M 1020K select 3 0:01 0.02% devd
39906 myuser 1 20 0 22M 11M select 1 0:00 0.02% xterm
...
I find it astonishing, that Xorg is reported with over 6G.
Also vmstat confirms only 300M are free of 8G:
Code:
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
1 1 0 22G 307M 818 3 3 0 2388 419 0 0 6183 9442 19965 9 5 86
(I've seen values down to 253M)
This morning I made the following tests:
After boot I did not start X but stay in terminal only and again looked at top.
The memory reported as free first is well above 6G but then drops down, with approximately 200M per second.
So I also take a look at my little server, which has no X installed, which is up for over 26 days by now.
Looks similar:
Code:
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 160K Active, 60M Inact, 30M Laundry, 15G Wired, 505M Free
ARC: 13G Total, 1465M MFU, 11G MRU, 3616K Anon, 79M Header, 487M Other
11G Compressed, 12G Uncompressed, 1.07:1 Ratio
Swap: 32G Total, 100M Used, 32G Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
30319 root 1 20 0 13M 3608K CPU3 3 0:00 0.05% top
...
...
So that gives me the clue:
X isn't the "offender" (if there is any).
There doesn't have to be problem, it may be normal.
Both machines run FreeBSD 12.2-RELEASE-p3 with ZFS, any pkgs are up to date, as far as I checked.
The first one with 8G RAM on 2 HDDs in mirror
The second with 16G on 4 HDDS in raidz2
So, here is my question:
May it be, there is no "Memory-leakage", but that's just a normal state of the system?
The RAM is not really used up, but only shown as, because it's managed by some kind of system's demon(s) (ZFS?),
but for the tools such as top or vmstat it looks like it's used up?
Or do I really have some kind of issue I shall engage?
Thanks.
P.S.: I also always have 1 zombie, even after reboot. So something has to be corrected anyway, even if both issues may have nothing to do with each other.