Regarding AIX Memory Utilization usage calculation | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Regarding AIX Memory Utilization usage calculation

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-11-2013
maruthu maruthu is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 11 March 2013, 2:08 AM EDT
Location: Chennai,TN,India
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Regarding AIX Memory Utilization usage calculation

Hello,

Am working on small program that used to calculate the memory usage of AIX servers. Am using svmon -G command to get the memory usage. For example, consider the following output.


Code:
$ svmon -G
               size       inuse        free         pin     virtual   mmode
memory      1957888      670177     1287711      411476      512709     Ded
pg space     131072        2929

               work        pers        clnt       other
pin          350964           0           0       60512
in use       512709           0      157468

PageSize   PoolSize       inuse        pgsp         pin     virtual
s    4 KB         -      269713        2929       85684      112245
m   64 KB         -       25029           0       20362       25029
$

Am using "in use" value at the 6-th line number as memory usage. It gives 26 % as a memory usage. Also am using /bin/ps -eo comm,pmem,args to get the all the process memory usage to confirm with previous calculation.But value calculated by both methods does not match.

Please advise.

Moderator's Comments:
edit by bakunin: my first advice is to use CODE-tags. Its the button misleadingly labeled "CODE" (in case you can't find it).

Last edited by bakunin; 03-12-2013 at 08:16 PM..
Sponsored Links
    #2  
Old 03-11-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 18 December 2014, 4:59 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,560
Thanks: 8
Thanked 562 Times in 537 Posts
Use the
Code:
code

tags for code to preserve spaces.

In a a VM system, grace time and similar VM stats are a better measure of paging activity, which indicates how intensely the free ram pool is used.
Sponsored Links
    #3  
Old 03-11-2013
-=XrAy=- -=XrAy=- is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 17 December 2014, 10:10 AM EST
Location: D:\Rheinland-Pfalz\Koblenz
Posts: 100
Thanks: 5
Thanked 20 Times in 18 Posts
Maybe you should also use the "k" option to take account of kernel processes?

Code:
/bin/ps -keo comm,pmem,args

    #4  
Old 03-12-2013
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 76 Times in 71 Posts
As I posted earlier here - a better "svmon -G" command looks something like this:

Code:
# svmon -G -O unit=auto
Unit: auto
--------------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available   mmode
memory      512.00M     501.79M       10.2M     246.11M     662.28M      3.49M     Ded
pg space      1.50G     196.83M

               work        pers        clnt       other
pin         219.99M          0K          0K       26.1M
in use      484.54M          0K       17.3M

If you have additional questions about svmon and/or analyzing AIX memory please ask general questions there.

Hope this helps your initial question!
Sponsored Links
    #5  
Old 03-12-2013
bakunin bakunin is online now Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 22 December 2014, 5:16 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 4,371
Thanks: 47
Thanked 853 Times in 674 Posts
Quote:
Originally Posted by maruthu View Post
Am using "in use" value at the 6-th line number as memory usage. It gives 26 % as a memory usage. Also am using /bin/ps -eo comm,pmem,args to get the all the process memory usage to confirm with previous calculation.But value calculated by both methods does not match.
I noticed the amount of pinned memory. Have you taken shared memory segments into consideration? Use ipcs to analyse these.

I hope this helps.

bakunin
Sponsored Links
    #6  
Old 03-13-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 18 December 2014, 4:59 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,560
Thanks: 8
Thanked 562 Times in 537 Posts
Yes, good old shared memory is used by the traditional UNIX IPCs, including semaphores and queues. I am not sure why these have to be pinned. Pinning is usually for peripheral/I/O support or the paranoid.

You can do similar things without shared memory or pinning using mmap() and files. An area of a file can be mmap()'d by all related processes, no root required. The content is durable through boots, too!
Sponsored Links
    #7  
Old 03-13-2013
bakunin bakunin is online now Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 22 December 2014, 5:16 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 4,371
Thanks: 47
Thanked 853 Times in 674 Posts
Quote:
Originally Posted by DGPickett View Post
I am not sure why these have to be pinned. Pinning is usually for peripheral/I/O support or the paranoid.
Ahem, "pinned" is not "shared". It is just that most of the standard applications which use pinned memory (foremost Oracle DB) also use shared memory segments to a large extent. Therefore i took an "educated guess" that maybe the presence of pinned memory hints at such a software being used. Why they do it that way? Ask Oracle! I just administrate machines running their product.

I hope this helps.

bakunin
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find Memory Utilization in AIX Server maruthu AIX 3 02-05-2012 11:47 AM
Find memory utilization of particular process on AIX 5.3 lodhi1978 AIX 10 11-11-2010 01:13 PM
How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..? laknar AIX 3 07-16-2009 06:35 AM
CPU Utilization and Memory Usage siba.s.nayak UNIX for Dummies Questions & Answers 2 02-06-2009 09:20 AM
Memory usage on AIX aajmani AIX 1 09-19-2008 08:40 PM



All times are GMT -4. The time now is 06:34 AM.