Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding out the memory taken up by process:- confusing

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
Hi,

When I type /usr/bin/ps -efl I get all the usual stuff e.g. PID and owner, but also some value for SZ and its somehow related to the memory taken up. How is the question

So for example I do: top -n | grep myProcess I get the SIZE of the process in Megabytes 21M

Now when I do ps -efl | grep myProcess I get sz 8819 (what ever that means)

On another box I get SIZE 312M against sz 39909

Does anyone know what the value of one sz is?? Is it related to pagesize, which when typing pagesize on both boxes I get 8192???

Please could someone explain what the relationship between the memory taken up by the process and the value of sz is.

Thanks in advance,

Chris
 
And what about man ps ?
Usually the size of a memory page is 4 Kb.

Hope This Help
PH.
 
So just to clarify. In my circumstancce the page file is 8kb so that means if I see SZ 100 that is 80KBs?
 
ACutally... more importantly is the SIZE in top directly related to sz in ps? I need to know whether ps for example takes into account extra things (whatever they may be) or vice-versa.

Thanks,

Chris
 
Actually ignore this post - They are all directly related.

Thanks,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top