How to caluculate memory
How to caluculate memory taken by a program during its execution.
is there any system command in the unix os
is there any system command in the unix os
Replies
-
sriramchandrkIf the program is still running
use this command:
ps -eo vsz -o fname |grep
Example to see size for snmpd (SNMP Daemon)
$ps -eo vsz -o fname|grep snmpd
8592 snmpd
The first column will give you SIZE, according to manual
SIZE is the virtual
If the program ends even before you can do anything, try this
size of the process (code+data+stack).
Press ^Z when the program starts.
Now the program is in stop state, you could run your ps command to see how much your process uses.
Once you are done use 'fg' command to resume the stopped process.
Thanks & Regards
Sriram -
anuragh27cronyhmm... nice reply... thanks for information ...sriram :smile:
-
sriramchandrk
Thanks Anuraganuragh27cronyhmm... nice reply... thanks for information ...sriram :smile: -
Raviteja.gthanks for reply
You are reading an archived discussion.
Related Posts
hey guys please give some idea about some computer projects....
hello guys give some idea for projects... and tell how to start the projects..wat are to be known to do tat projects.....๐๐ ๐ ๐ ๐
can any one say the working and functioning details of Bluetooth technology?
NMOS PASSES LOGIC '0' STRONGLY BUT WEAK LOGIC '1'
PMOS PASSES LOGIC '1' STRONGLY BUT WEAK LOGIC '0'.?
what is the reason???
pls give list of seminar topics related to computers science(latest technologies)