Linux – Htop – using more VIRT memory than I have storage

linuxmemory

I see this mostly with jack-server but I'm also seeing huge virtual memory usage from other processes. Currently, it's evolution building a database (has been for hours now but that's another problem).

enter image description here

When I see jack-server doing it, it's using up 1TB, which isn't quite all of the disk space on my system but it's pretty close.

What are these processes doing mapping in my entire disk?

Best Answer

A little read to better understand each column because it's not just disk or memory but also shared libraries :

VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card’s RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes. VIRT represents how much memory the program is able to access at the present moment.

RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming. (This also corresponds directly to the %MEM column.) This will virtually always be less than the VIRT size, since most programs depend on the C library.

SHR indicates how much of the VIRT size is actually sharable (memory or libraries). In the case of libraries, it does not necessarily mean that the entire library is resident. For example, if a program only uses a few functions in a library, the whole library is mapped and will be counted in VIRT and SHR, but only the parts of the library file containing the functions being used will actually be loaded in and be counted under RES.

I think that you've a problem with evolution (database job) but I can't verify because I don't use evolution, sorry