Mathematical connection between SZ RSS and VSZ in ps o/p?

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


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

sz and vsz represent the same thing, but sz is in page units, while vsz is in 1024 byte units.

To get your system’s page size, you can use:

$ getconf PAGE_SIZE

rss is the subset of the process’s memory that is currently loaded in RAM (in kilobytes). This is necessarily smaller than vsz.

So the “mathematical” connections are:

vsz * 1024 = sz * page_size
rss <= vsz

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments