![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..? | laknar | AIX | 3 | 07-16-2009 05:35 AM |
| Memory usage in Solaris - memory not freed? | gewurtz | SUN Solaris | 3 | 01-06-2009 12:06 PM |
| current CPU usage, memory usage, disk I/O oid(snmp) | S_venkatesh | SUN Solaris | 2 | 12-13-2008 06:19 AM |
| how can I find cpu usage memory usage swap usage and logical volume usage | alert0919 | HP-UX | 3 | 12-02-2008 02:38 PM |
| How can I get memory usage or anything that show memory used from sar file? | panithat | HP-UX | 1 | 03-31-2008 12:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi.,
I want to know amount of memory used by a process inside the same process. For example, I am writing a program and I want to know the memory used by it from the program. So, I could do some actions (flush some unwanted data structures/ log the memory usage) in my program based on this value. I don't like to parse the top command's output. I know this value will be stored in /proc directory. I've referred the /proc/<pid>/statm, status, stat files. But, I'm unable to find how top command is calculating that a process is utilizing x% of memory. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|