Sponsored Content
Operating Systems Solaris Find memory usage for a process Post 303001702 by MadeInGermany on Wednesday 9th of August 2017 02:07:16 PM
Old 08-09-2017
In prstat the SIZE and RSS columns tell you how much memory a process consumes.
SIZE is wrongly described as SWAP in the man pages, but it's about the same: virtual memory including reservations.
Code:
man prstat
...
     SWAP

         The sum of swap reservations of the associated processes
         for  each  user,  project,  task,  or  zone. This counts
         shared memory only once for each user, project, task, or
         zone.   Swap  is reserved when anonymous memory is allo-
         cated or files are mapped private. The value of swap  is
         expressed  in kilobytes (K), megabytes (M), or gigabytes
         (G).

     RSS

         The resident set size of the process (RSS), in kilobytes
         (K),  megabytes  (M), or gigabytes (G). The RSS value is
         an estimate provided by proc(4) that might underestimate
         the actual resident set size. Users who want to get more
         accurate usage information for capacity planning  should
         use the -x option to pmap(1) instead.

"resident" means: resident in RAM.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to restrict memory usage by a process

we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB. Thanks, Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

2. Solaris

RAM Physical Memory usage by each Process.

Hi All, I am trying to find the physical memory usage by each process/users. Can you please let me know how to get the memory usage?. Thanks, bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies

3. Shell Programming and Scripting

Memory usage of a process

hi all, i want to write a script that checks the memory usage of processes and send a mail with the name of the process witch is using more then 300mb RAM. dose anybody have a sample script or an idea how i can make it ? PROCCESSES="snmpd sendmail" for myVar in $PROCCESSES do ... (7 Replies)
Discussion started by: tafil
7 Replies

4. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

5. HP-UX

how could I get a process Memory Usage

I use pstat API to get Process Infomation I would like to get a process 1.process owner 2.how many physical memory and virtual memory and total memory used(KB) and usage(%) 3.a process excution file create time 4.a process excution file access time I do't know which attribute it i need ... (3 Replies)
Discussion started by: alert0919
3 Replies

6. UNIX for Advanced & Expert Users

How to find out memory & cpu usage of a process

Hi, By using time command we can determine the execution time of a process or command. bash-2.04$ time ls -l total 0 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file1 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file2 real 0m0.002s user 0m0.000s sys 0m0.001s... (5 Replies)
Discussion started by: learn more
5 Replies

7. UNIX for Advanced & Expert Users

collecting memory usage by a process

Hi Guys, I work on a AIX environment and I'm trying to write a script where I can collect all the memory used by a process. Basically I'm executing the command 'ps -fu userid' to get all the process ids and then executing the 'ps v PID' to get all the memory allocated by PPID. My question is... (2 Replies)
Discussion started by: arizah
2 Replies

8. HP-UX

Virtual Memory Usage a Process

Hi all, Is there any command which shows the virtual memory usage of a particular process in HP-UX machine. I have tried with ps, top but could not get what I want. Kindly provide me a solution. Thanks in Advance ARD (4 Replies)
Discussion started by: ard
4 Replies

9. Solaris

Process memory usage

hi all gurus: I want to find out Solaris process memory usage, but got a bit confused, see if any one can provide me some guidance. i tend to use prstat -a to get total memory consumption by user (I know prstat likely have a bug that simply sum up the memory, regardless if the memory being... (5 Replies)
Discussion started by: oakville
5 Replies

10. UNIX for Beginners Questions & Answers

How can I check actual memory usage each Process?

I can't check actual memory usage in the Redhat 5.5... The used memory is 14214 Mb of Total 15919 by Free -m command. I sum the RSS value on PS aux command result and the value is 5428.66Mb. Yes It's quite different actual usage memory and RSS value. So I added Shared memory value... (5 Replies)
Discussion started by: tom8254
5 Replies
WINCACHE_UCACHE_MEMINFO(3)						 1						WINCACHE_UCACHE_MEMINFO(3)

wincache_ucache_meminfo - Retrieves information about user cache memory usage

SYNOPSIS
array wincache_ucache_meminfo (void ) DESCRIPTION
Retrieves information about memory usage by user cache. RETURN VALUES
Array of meta data about user cache memory usage or FALSE on failure The array returned by this function contains the following elements: o memory_total - amount of memory in bytes allocated for the user cache o memory_free - amount of free memory in bytes available for the user cache o num_used_blks - number of memory blocks used by the user cache o num_free_blks - number of free memory blocks available for the user cache o memory_overhead - amount of memory in bytes used for the user cache internal structures EXAMPLES
Example #1 A wincache_ucache_meminfo(3) example <pre> <?php print_r(wincache_ucache_meminfo()); ?> </pre> The above example will output: Array ( [memory_total] => 5242880 [memory_free] => 5215056 [num_used_blks] => 6 [num_free_blks] => 3 [memory_overhead] => 176 ) SEE ALSO
wincache_fcache_fileinfo(3), wincache_fcache_meminfo(3), wincache_ocache_fileinfo(3), wincache_rplist_fileinfo(3), wincache_rplist_mem- info(3), wincache_refresh_if_changed(3), wincache_ucache_info(3), wincache_scache_info(3), wincache_scache_meminfo(3). PHP Documentation Group WINCACHE_UCACHE_MEMINFO(3)
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy