I wanted to know what mathematical connection is there between the SZ, RSS and VSZ output in ps output e.g.
ps -p 2363 -o sz,rss,vsz
linuxmemoryps
I wanted to know what mathematical connection is there between the SZ, RSS and VSZ output in ps output e.g.
ps -p 2363 -o sz,rss,vsz
Best Answer
sz
andvsz
represent the same thing, butsz
is in page units, whilevsz
is in 1024 byte units.To get your system's page size, you can use:
rss
is the subset of the process's memory that is currently loaded in RAM (in kilobytes). This is necessarily smaller thanvsz
.So the "mathematical" connections are: