How can I calculate exact memory used on AIX system?


 
Thread Tools Search this Thread
Operating Systems AIX How can I calculate exact memory used on AIX system?
# 1  
Old 06-22-2012
How can I calculate exact memory used on AIX system?

I already checked memory on AIX with "svmon -G" and vmstat (as the figure). I see the value "inuse" nearly=97% use memory, free=3%. However, the value "pin=cache" nearly=26%.

Can I calculate total free memory= free+ pin = 29% ?
please help me!
Thanks so much!
How can I calculate exact memory used on AIX system?-1png
# 2  
Old 06-22-2012
What is "in use" on a AIX system depends on your definition of "in use". We have had this discussion quite a few times here, just have a search in this board with the keywords "memory used vmstat" and you will find a lot of threads.

The AIX kernel tries to make use of as much memory as is possible. If the memory is not used for programs it will automatically be used for I/O caching, network buffers, etc.. Once it *is* needed these buffers will be decreased in size again. This is steered via several options in the kernel tunables, namely the ones controlled by vmo.

Depending on your AIX version issue vmo -a with or without the "-F" option. Take a look at "maxperm%" and "minperm%". I bet maxperm% is set to 97 as you say 3% of the memory is free.

What exactly is your problem or what are you trying to achieve?

bakunin

PS: I'd be more concerned with the 6 processes in the blocked-queue (in the last line of vmstat output), as this means there are processes, which could run save for having to wait for some I/O.
# 3  
Old 06-25-2012
I have read on the website "aixhealthcheck.com/blog.php?id=255".
So I want to know how this calculation right?

Thanks a lot!
# 4  
Old 06-25-2012
from the Sample attached you are using computational (for real work) approx 29 GB of your memory - you have about 44 GB. Anything above the computational memory up to 97% may be needed for caching and buffering.
I am with Bakunin, you might have an IO issue as your number of blocked IOs is pretty high. Maybe you do not have enough filesystem buffers, maybe your runqueues on the disks are too low.
Regards
zxmaus
# 5  
Old 06-25-2012
Thanks for yours help!

I just checked the system with "iostat" command .
I saw several hard drives have "% tm_act" approx 98%.
The system was I/O bound.

Regards
thanhcx!
# 6  
Old 06-25-2012
Quote:
Originally Posted by xuanthanhnk
I have read on the website "aixhealthcheck.com/blog.php?id=255".
So I want to know how this calculation right?

Thanks a lot!
To answer your question: yes, the calculation is correct: "virtual" is the memory really needed by programs (on a long-term basis) and "size" is the memory installed (all these numbers in memory pages - a page is usually 4k in AIX). As long as the "virtual number" is lower than the "size" number (minus some slack - the author says 10%, which is a good rule-of-thumb value) everything is fine, otherwise the system is memory-bound in most cases.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

New to AIX: How do I setup high availability on an AIX System

I am new to AIX but not new to unix. I have an interview for an AIX systems admin position and I know they want someone who has knowledge of High Availability, Failover and LPARs From my research so far, It appear powerha is used to setup high availability and failover on Power systems but is... (2 Replies)
Discussion started by: mathisecure
2 Replies

2. Shell Programming and Scripting

Calculate total memory using free -m

Hi I am trying to calculate memory used by Linux System free -m total used free shared buffers cached Mem: 32109 31010 1099 0 3600 7287 -/+ buffers/cache: 20121 11987 Swap: 10239 1282 8957 Now according to my requirement Im calculating memory using below cmd free -m | awk 'NR==3{printf... (2 Replies)
Discussion started by: sam@sam
2 Replies

3. AIX

Accessing files on AIX system from Linux system

I have a following requirement in production system 1 : LINUX User: abcd system 2: AIX (it is hosting a production DB) Requirement user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora ,... (2 Replies)
Discussion started by: amitnm1106
2 Replies

4. AIX

How to calculate AIX CPU utilization using lparstat command

Could you please explain about calculate CPU utilization of aix server using lparstat command? Here below i have provided example output from aix test server. System configuration: type=Shared mode=Uncapped smt=On lcpu=4 mem=4096 psize=63 ent=0.50 %user %sys %wait %idle physc %entc ... (1 Reply)
Discussion started by: maruthu
1 Replies

5. Shell Programming and Scripting

QUESTION1: grep only exact string. QUESTION2: find and replace only exact value with sed

QUESTION1: How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed. Contents of car.txt CAR1_KEY0 CAR1_KEY1 CAR2_KEY0 CAR2_KEY1 CAR1_KEY10 CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1 grep... (1 Reply)
Discussion started by: thibodc
1 Replies

6. Solaris

how to find exact memory used by oracle

hi, I am using Solaris 10 and would like to know what;s the exact memory consumed by Oracle user id. I tried prstat -t and top but no luck. Am trying to monitor the the usage over a period of time. please could someone assist. (5 Replies)
Discussion started by: unahb1
5 Replies

7. AIX

How to apply aix 5.3 TL8 properly on ML5 aix system ?

Is it necessary to put system into single user mode for applying aix 5.3 TL8 on a aix 5.3.5.0 system ? Is the TL8 installation not totally safe ? thank you. (6 Replies)
Discussion started by: astjen
6 Replies

8. AIX

calculate BOS file system

Hi All, How do you calculate the BOS filesystem on rootvg(/, /usr, /var, and /opt) and the BLV? So that I could calculate how much space I need on doing multibos. Any idea will be appreciated, thanks. (0 Replies)
Discussion started by: itik
0 Replies

9. Shell Programming and Scripting

How to calculate Memory and CPU Usage on AIX

I have written a script that will calculate CPU usage and Memory usage of a particular process on AIX Unix. I know the PID and I am using the command -- # for CPU Usage MSG_CPU_USG=`ps uax | grep ${PID} | awk {'print $3'}` #for Memory Usage MSG_MEM_USG=`ps uax | grep ${PID} | awk {'print... (0 Replies)
Discussion started by: asutoshch
0 Replies

10. Solaris

rsh commands not getting executed from Solaris 10 System to AIX System

Hi Friends, I am trying to execute rsh commands from Solaris 10 system to AIX system. When I give; Solaris10# rsh <hostname> ls -l , it gives me an error rshd : 0826-826 The host name for your address is not known At the same time, Solaris10# rsh <hostname> ---- gives me remote shell of... (25 Replies)
Discussion started by: jumadhiya
25 Replies
Login or Register to Ask a Question