How much memory for each process running on AIX?


 
Thread Tools Search this Thread
Operating Systems AIX How much memory for each process running on AIX?
# 1  
Old 12-02-2010
How much memory for each process running on AIX?

I'm trying to figure how much memory per process is using?
I think it's the TRS column x 4k (127800 x 4).
Am I right? Any advice is greatly appreciated.

Code:
PID    TTY STAT  TIME PGIN  SIZE   RSS   LIM  TSIZ   TRS    %CPU   %MEM       COMMAND
753726      - A    13:01    0 154100 281900    xx 88783 127800  7.4  2.0         aaaa
975236      - A    12:40    0 179268 307068    xx 88783 127800  7.2  2.0         bbbb
934076      - A    12:31    0 173252 301052    xx 88783 127800  7.1  2.0         cccc
651342      - A    12:38    0 154136 281936    xx 88783 127800  7.1  2.0         dddd
840036      - A     1:02    0 18332   146132    xx 88783 127800  0.6  1.0         eeee
954714      - A     0:55    0 19776  147576    xx 88783 127800  0.5  1.0         ffff
942566      - A     0:57    0 17500  145300    xx 88783 127800  0.5  1.0         gggg
663972      - A     0:56    0 19840  147640    xx 88783 127800  0.5  1.0         hhhh

Moderator's Comments:
Mod Comment Having so many posts, you should be already familiar using code tags - you got a PM with a guide how to do that. Some less font formattings would be ok too, thank you.

Last edited by zaxxon; 12-02-2010 at 05:18 AM..
# 2  
Old 12-02-2010
Use svmon but read the documentation carefully to recognize what you can count in and what not:

IBM InfoCenter - Memory usage per process
# 3  
Old 12-02-2010
from the man pages
Code:
SIZE 
(v flag) The virtual size of the data section of the process (in 1 KB units). 
RSS 
(v flag) The real-memory (resident set) size of the process (in 1 KB units). 
TSIZ 
(v flag) The size of text (shared-program) image. 
TRS 
(v flag) The size of resident-set (real memory) of text. 
%MEM 
(u and v flags) The percentage of real memory used by this process. The %MEM value tends to exaggerate the cost of a process that is sharing program text with other processes. It does not account for times when multiple copies of a program are run and a copy of the program text is shared by all instances. The size of the text section is accounted for in every instance of the program. This means that if several copies of a program are run, the total %MEM value of all processes could exceed 100%.

Regards
zxmaus
# 4  
Old 05-30-2011
I have one question... I have the PID XXXX, now how to find what is CPU/Memory being consumed by the PID XXXX
# 5  
Old 05-31-2011
Hi,

Code:
ps -ealf | grep PID

for user memory
Code:
ps vx | grep PID

for real memory
Code:
ps aux | grep PID

for cpu

for current cpu utilization I use nmon with ct u flags if I assume my process is one of the top consumers of cpu

regards
zxmaus
# 6  
Old 05-31-2011
Hi

you can use "top" command..the display is updated every 5 seconds..It displays uptimes, processes, CPU states,memory, swap, pid,ppid,uid etc..
# 7  
Old 06-01-2011
Quote:
Originally Posted by amitbisht9
Hi

you can use "top" command..the display is updated every 5 seconds..It displays uptimes, processes, CPU states,memory, swap, pid,ppid,uid etc..
topas is the correct command "top" style command for AIX. nmon is also available for download.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

3. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

4. AIX

Process, PID and total memory consumed on AIX.

Hi, Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:- top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}' Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Discussion started by: Vipin Batra
1 Replies

5. AIX

AIX 7.1 on Power 750 is very slow with no high memory or process consumption

Hi, This thread has been posted before on linuxquestions.org, but no answer, maybe because this is unix question and not linux. I'm posting the same thread here, hope I can get an answer from someone in the meantime, I wish I could post of emergency thread but it needs bits which I don't have :... (6 Replies)
Discussion started by: aLuViAn
6 Replies

6. Shell Programming and Scripting

Check for long running process on AIX

I want to write a shellscript which determines if a particular process is long running than my specified threshold time. Eg: My process name is "prsd" and is expected to run for 15 mins and completes. If I set a threshold limit of 1 hour, and how we can the get output of the long running... (4 Replies)
Discussion started by: chandu123
4 Replies

7. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

8. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

9. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

10. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies
Login or Register to Ask a Question