Sponsored Content
Operating Systems AIX AIX understanding memory using Post 303037086 by bakunin on Tuesday 23rd of July 2019 05:23:40 AM
Old 07-23-2019
Quote:
Originally Posted by Phat
I would like to understand better in AIX memory use
Basically you have three types of memory in an AIX system: "used" and "unused" and the "used" category divides into two parts: "computational" and "file" memory.

"unused" is memory the kernel has absolutely no use for. In a longer running (and correctly tuned) system this is near to zero.

"computational" memory is the memory used by loaded and running programs.

"file" memory is basically cache. All the memory not used for programs (but not strictly set aside by tuning provisions) is added to the file cache - over time. The kernel will only make use of memory to cache file access if it has an idea what to cache. This is why freshly started systems have lots of free memory. The kernel simply doesn't know what to put into the cache and therefore doesn't allocate a lot of it.

Should RAM become used over time and more computational memory is needed (i.e. more programs are started) the file cache is diminished accordingly or regrown again should memory become free again. The tuning parameters "numperm", "minperm", "maxperm", "minclient" and "maxclient" deal with how and when exactly file memory is turned into computational memory and vice versa. There is a daemon - the "least recently used daemon" or "lrud" for short - which constantly scans memory pages and decides when they should be claimed as "computational" or "file". What it is doing exactly shows in the output of vmstat -vs, i.e. "revolutions of the clock hand" means: since the last start the lrud has scanned the whole memory that often completely. If this value is fast growing you know that even if memory is not scarce right now it is at the brink of being exhausted and paging will start soon if any more memory is needed.

You may want to consult my "Most Incomplete Guide to Performance Tuning" for a more thorough (though not complete - this is a complex area) discussion about memory management in UNIX systems in general and how to assess it.

I hope this helps.

bakunin
These 5 Users Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

checking memory in AIX

I am using AIX 5.5 I have researched your site and found a few commands to try to check how much physical memory I have but the ones I found are not working. I was wondering does my system have a different command? I also checked the MAN pages could not find it there. Could somebody help? I... (2 Replies)
Discussion started by: rocker40
2 Replies

2. UNIX for Dummies Questions & Answers

understanding basic of storage in aix

Hi Can some one help to understand the follwoing thing: what is a simple mounting? for examle what the following lines says /dev/hd2 /usr/xxx if I have to install a software in a remote server, how i can use local cdrom to read the installation files from? what about... (3 Replies)
Discussion started by: ajaya
3 Replies

3. UNIX for Advanced & Expert Users

memory size under AIX

Hi, how to know size of physical memory under AIX ? Many thanks. PS : man -k memory man : 0703-310 Fichier man introuvable. uname -a AIX server1 1 5 005202DF4C00 (3 Replies)
Discussion started by: big123456
3 Replies

4. AIX

AIX Memory used by an Application

Hi, Is there any way to find the Memory allocated to an Application in AIX server (2 Replies)
Discussion started by: tinivt
2 Replies

5. UNIX for Advanced & Expert Users

HP vs AIX Memory

I have 2 boxes one running AIX 5.3 and the other running HP 11.31. Both systems have the same application running but HP seems to be using more memory than AIX by almost double. I have to use 2 different methods because both machines have different backend software to look at memory. What is the... (2 Replies)
Discussion started by: kfdalton
2 Replies

6. UNIX for Dummies Questions & Answers

Help in understanding AIX

Dear ALL, Where can I get the following information? what will happen exactly when i hit CTRL+C, CTRL+Z, CTRL+X, CTRL+D etc when the AIX terminal hangs...? The reason why I am asking this question is when ever I type a command at the terminal (say "select * from tab" or any command) the... (1 Reply)
Discussion started by: tenderfoot
1 Replies

7. Solaris

Understanding memory config with prtdiag -v

Hi. I have 2 SunFire V490 servers running Solaris 10. We may have to upgrade with more memory on one of them to make it compatible with the other. Here's the one with 12GB of RAM: Memory size: 12288 Megabytes ========================= CPUs =============================================== ... (1 Reply)
Discussion started by: th1amigo
1 Replies

8. UNIX for Advanced & Expert Users

Help understanding differences between AIX and RHEL

I have started a new job which requires AIX admin skills, which I have, and RHEL skills. Does anyone have a cheat sheet that if I know how to solve the problem in AIX how would I do that in RHEL? I was an IBM pre-sales technical trying to keep sales guys honest - not possible. Any other links to... (5 Replies)
Discussion started by: SpenceSnyder
5 Replies

9. AIX

AIX 6.1 memory tuning

Greetings, i'm wondering if there is a way to determine minimum memory requirement for AIX kernel and OS functions? We use memdetails script from perfpmr package to see actual memory allocation, for example like this: ===========================================================================... (5 Replies)
Discussion started by: dzodzo
5 Replies

10. AIX

AIX 6.1 error out of memory

i am facing issue in AIX 6.1 when i was running below command i face issued as show attached screenshot cat /audit/bin1 /audit/bin2 /audit/trail | auditpr -t 0 -v -h l,r,R,t,c,p,P |\ awk '/\s*audit object write event detected/ {print ll $6} { ll = $0}' Please use code tags next time... (1 Reply)
Discussion started by: aforabad
1 Replies
dbc_max_pct(5)							     OBSOLETED							    dbc_max_pct(5)

NAME
dbc_max_pct, dbc_min_pct, bufcache_max_pct, bufpages, nbuf - OBSOLETED kernel tunable parameter DESCRIPTION
These tunables have been obsoleted and removed. Do not make any changes to these tunables, as they have no effect on the kernel. Use the file cache tunables and (see filecache_max(5)). In previous releases, the tunables and were used to set limits to the dynamic buffer cache, and the tunables and were used for tuning the buffer cache when a static cache was desired. This release of HP-UX offers improved file caching technology and improved physical memory control associated to caching file I/O data. The number of tunable parameters used to control file caching memory usage is reduced from five to two, and previous usability issues are addressed. Restrictions on Changing These tunables should not be modified. Attempting to tune any of the obsolete buffer cache tunables, or results in an error. Use the tunables and to set limits on the file cache. Note that, on a any given system, the optimum values of these two new tunables are not necessarily equivalent to the optimum values of the obsolete buffer cache tunable values in the older systems. You should first deter- mine if the new default values yield acceptable performance on your system, before attempting to change the values of the new file cache tunables. AUTHOR
and were developed by HP. SEE ALSO
filecache_max(5). Kernel Tunable Parameter dbc_max_pct(5)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy