Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] Is this normal? systemd-journal taking nearly 2 gigs of memory.
jdd said the following on 01/16/2014 08:01 AM:
Le 16/01/2014 13:08, Carlos E. R. a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Top:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
...
318 root 20 0 1853m 43m 43m S 0,0 0,5 3:40.99 systemd-journal

don't know what that "virt" column mean

In sort, it is the address space allocated to that process.
It has nothing to do with the amount of memory the process is using, which is the RESident set.

A well designed application will make heavy use of SHaRed libraries rather than replicating the code itself. Nartually some applications will be very specialized and simply can't share some critical code. GUI things like GIMP, OpenOffice and Darktable might be examples. Other groups of applications may share data libraries (icon sets for example).


what do "free" gives?

free
total used free shared buffers cached
Mem: 8115060 2472104 5642956 22368 108348 1031216
-/+ buffers/cache: 1332540 6782520
Swap: 2109436 0 2109436

Well you are not swapping or making use of swap to save page-out.
That's good. You are running entirely in memory.

PERHAPS you are CPU limited. At the top of 'top' there is the 'load average' and you can get a report on where you CPU is spending its time.
Your version of 'top' should allow you to see that for each of your CPU cores.

Is systemd-journal taking nearly 2 gigs of memory?
No! It is taking 43Meg of resident space.
Look to the virtual address space of other processes!

The whole point of VIRTUAL memory is just that; its only 'virtually' there. Go google for some background on virtual memory. Its a concept from the 1950s -- most of what we have in computing was thought of and tried by then but they lacked the technology to use it all effectively.

As far as the innards of the application go. how it handles file mapping, its internal caching, all that is another matter. It may be of interest in fine tuning, but any sensible metric will first ask "Is this application a limiting one?" before tuning.



--
How long did the whining go on when KDE2 went on KDE3?

The only universal constant is change. If a species can not adapt it
goes extinct. That's the law of the universe, adapt or die.
-- Billie Walsh, May 18 2013
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
References