# Refine size on UNIX

What is the proper means to get the procedure size on Solaris, HP-UX and also AIX? Should we make use of top or ps -o vsz or another thing?

0
2019-05-07 01:10:24
Source Share

Yes, you are appropriate to lock at the VSZ.

ps u will certainly offer you the VSZ and also RSS, which are the digital memory size and also resident set size. The RSS is just how much physical memory has actually been alloted to the procedure, and also the VSZ is the digital memory size of the procedure. If you have numerous duplicates of a program operating, a great deal of the memory in the VSZ will certainly be shared in between those procedures.

0
2019-05-08 20:53:18
Source

The specific interpretations of vsize, rss, rprvt, rshrd, and also various other obscure-looking acronyms differ from OS to OS. The hand-operated web pages for the top and also ps commands will certainly have some type of summary, yet all such summaries are streamlined substantially (or are based upon long-extinct bit executions ).
" Process size" as a principle is fiendishly hard to select in the basic instance. Solutions in details circumstances depend greatly on the real memory monitoring execution in the OS, and also are hardly ever as pleasing as the clean "procedure size" principle that exists psychological of the majority of customers (and also the majority of programmers ).

As an example, none of those numbers (neither, likely, any kind of mix of them ) can be made use of to inform you specifically the amount of such procedures can go for as soon as in an offered quantity of free memory. Yet actually, your best choice is ahead at it from that end : why do you desire this number, and also what will you utilize it for? Considered that details, I assume you'll get better solutions.

0
2019-05-07 16:24:23
Source