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
  • and the output is?.. – sendmoreinfo Feb 24 '12 at 21:52

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
  • Thanks for the great answer. Any idea how %mem is related to rss and sz/vsz? – Ankur Agarwal Mar 1 '12 at 0:07
  • @Mat perfect answer, also a great question Mr. abc. – beginer Aug 22 '14 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.