17

On the ubuntu system monitor there are different types of memory listed: Virtual Memory, Resident Memory, Writeable Memory, Shared Memory & X Server Memory. What are the differences between them, and which reflects the actual RAM usage of the process?

Sorry if it's a newbie question :)

3 Answers 3

17
  • Virtual memory accounts for all the libraries and executable objects that are mapped into your process, as well as your stack space.

  • Resident memory is the amount of memory that is actually in RAM.

  • Writable memory is the amount of address space that your process has allocated with write privileges.

  • Shared memory is memory that may be simultaneously accessed by multiple programs with an intent to provide communication among them or avoid redundant copies.

  • X server memory is the amount used by the X server for the GUI-session.

References:

2
  • 11
    What about the column labelled "Memory"? Is that a new column. How is that different from all the other memory columns? It's values seem to be smaller than Resident Memory in most cases. Does that mean that it refers to a processes private memory only? Sep 11, 2015 at 19:48
  • 1
    Added an answer here: askubuntu.com/a/1344626/456255
    – SUPERCILEX
    Jun 8, 2021 at 22:12
3

To add on to Ringtail's answer, the plain "Memory" column is Resident - Shared, giving you the memory that the process solely owns.

1

Some definitions and wiki pages:

Virtual_Memory

Shared Memory: The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other processes.

Resident Memory: typically refers to physical RAM installed in the machine

X Server Memory: Self explanatory, the amount of memory the X server is using (X server controls your user interface)

Hope I have clarified some things for you.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .