The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need to find the power consumption of a RX7640 server. sag71155 HP-UX 3 04-21-2008 11:56 PM
Ghost Process + CPU consumption neal.opperman SCO 1 02-14-2008 04:53 AM
Memory Consumption Commands siebeladmin HP-UX 2 07-29-2006 01:06 PM
CPU consumption pleaseteachmeun UNIX for Advanced & Expert Users 3 02-17-2006 11:56 AM
Memory consumption of threads Fong AIX 0 08-02-2005 11:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-07-2008
tagger tagger is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
consumption memory

Hi,

I have a problem with memory on AIX 5.3. On this server, we have JDE Edwards (ERP) and Oracle Database (9.2.0.7.0).
We have 4 Gb for physical memory and 3 Gb for paging space.
When I stop all services (JDE, Oracle and all other services), the physical memory is not free (4 Gb)
svmon -G
size inuse free pin virtual
memory 1048576 1033596 14980 153224 404179
pg space 786432 184887

Memory is never freed even if process is finished

When I reboot the server and start all services without users and so without transactions, the memory is 1 Gb.

svmon -G
size inuse free pin virtual
memory 1048576 269172 779404 97321 216993
pg space 786432 1041

Do you have a similary case ?
  #2 (permalink)  
Old 05-07-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
Several possiblities: It could be a memory leak. In this case the only option you have is to stop/start the application. To be honest i doubt that, because JDEdwards as well as Oracle is standard software. If they'd have memory leaks it would be a well-known fact throughout the industry.

The other possibility is a lock on the shared memory segments which isn't removed. Use "ipcrm" to delete such memory segments and look how far that takes you, then report back, please.

I hope this helps.

bakunin
  #3 (permalink)  
Old 05-07-2008
shockneck's Avatar
shockneck shockneck is offline Forum Advisor  
No RISC - No Fun
  
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 355
AIX always tries to use ALL of your real memory. Every piece of RAM that is not used by your application is used for file caching. So "all" of the memory appears to be "in use" all the time. When you exit your app the memory is not cleared but the former content is kept for possible reuse later. This is normal behaviour and expected. No reason to worry as long as no paging takes place. Having no "free" memory does not equal shortage of memory. AIX is not Windoze.

If you want to sort of flush the server's cache for a short period of time you could copy a huge file somewhere within your server (from /blah to /tmp or vice versa) and delete it immediately after copying. Then you would see "free" memory
  #4 (permalink)  
Old 05-07-2008
indulis indulis is offline
Registered User
  
 

Join Date: May 2008
Posts: 4
Memory tuning for Oracle

Normally running Oracle on AIX 5.3, you need to do some memory tuning so that you don't "double up" in buffering files. General rule is to reduce AIX amount of mem used to buffer IO and put this into Oracle's file buffers (in the SGA). This is because Oracle knows better what to cache, as it is its own data.

I don't recommend changin the following parameter by itself but it is (IMHO) the most important new parameter for an ERP/OLTP server (Introduced in AIX 5.3 ML1 and AIX 5.2 ML4).
vmo –p –o lru_file_repage=0

This means that program memory requests (e.g. Oracle file buffers) get priority over AIX's own file buffers. This is the behaviour you'd want.

Of course there are a whole heap of other parameters you'd want to check so please DO NOT just run this command without understanding what the other settings are.

And the previous post was right, just looking at "free memory" in AIX doesn't tell you much at all as AIX will try to use all memory all the time.

I hope you are using DIO or CIO access from Oracle if using JFS2 to hold your data (and DIO if using JFS). Also Asynch I/O.

Last edited by indulis; 05-07-2008 at 07:30 AM.. Reason: correction
  #5 (permalink)  
Old 05-07-2008
tagger tagger is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
Thanks a lot for your quick advices.

With nmon, I have the result hereafter :
Code Resource Stats Now Warn Danger
OK -> CPU %busy 2.6% >80% >90%
OK -> Paging size %free 24.0% <20% <10%
Warning -> Paging Space RAMg 31.7% <50% <10%
DANGER -> Page Faults faults 1045.3 >16/s >160/s

Obviously, I guess this server have a "small" problem of tuning.
  #6 (permalink)  
Old 05-08-2008
zxmaus's Avatar
zxmaus zxmaus is offline Forum Staff  
Moderator
  
 

Join Date: May 2008
Location: /etc/objrepos
Posts: 297
post vmo -a and the amout of mem and cpus and vmstat -I 5 5 and vmstat -v if you need tuning assistance

Rgds
zx
  #7 (permalink)  
Old 05-09-2008
tagger tagger is offline
Registered User
  
 

Join Date: May 2008
Posts: 12
Hi zxmaus and thanks in advance for your help.

oslevel -r : 5300-03

- Memory
Physical memory : 16 Mb
Paging space : only 5 Mb

- Processor :
Processor Type: PowerPC_POWER5
Number Of Processors: 4
Processor Clock Speed: 1896 MHz

Command : vmo -a
cpu_scale_memp = 8 ; data_stagger_interval = 161 ; defps = 1
force_relalias_lite = 0 ;framesets = 2; htabscale = n/a
kernel_heap_psize = 4096 ; large_page_heap_size = 0 ; lgpg_regions = 0
lgpg_size = 0 ; low_ps_handling = 1 ; lru_file_repage = 1
lru_poll_interval = 10 ; lrubucket = 131072 ; maxclient% = 80
maxfree = 1088 ; maxperm = 3096895 ; maxperm% = 80
maxpin = 3304704 ; maxpin% = 80 ; mbuf_heap_psize = 4096
memory_affinity = 1 ; memory_frames = 4079616 ; memplace_data = 2
memplace_mapped_file = 2 ; memplace_shm_anonymous = 2
memplace_shm_named = 2 ; memplace_stack = 2 ; memplace_text = 2
memplace_unmapped_file = 2 ; mempools = 0 ; minfree = 960
minperm = 774223 ; minperm% = 20 ; nokilluid = 0
npskill = 10112 ; npsrpgmax = 80896 ;npsrpgmin = 60672
npsscrubmax = 80896 ; npsscrubmin = 60672 ; npswarn = 40448
num_spec_dataseg = 0 ; numpsblks = 1294336 ; page_steal_method = 0
pagecoloring = n/a ; pinnable_frames = 3319403 ;
pta_balance_threshold = n/a ; relalias_percentage = 0 ;rpgclean = 0
rpgcontrol = 2 ; scrub = 0 ;scrubclean = 0 ; soft_min_lgpgs_vmpool = 0
spec_dataseg_int = 512 ; strict_maxclient = 1 ; strict_maxperm = 0
v_pinshm = 0 ; vm_modlist_threshold = -1 ; vmm_fork_policy = 1

Command : vmstat -v
4079616 memory pages
3871119 lruable pages
21738 free pages
0 memory pools
760743 pinned pages
80.0 maxpin percentage
20.0 minperm percentage
80.0 maxperm percentage
72.5 numperm percentage
2809328 file pages
0.0 compressed percentage
0 compressed pages
72.7 numclient percentage
80.0 maxclient percentage
2817268 client pages
0 remote pageouts scheduled
4018 pending disk I/Os blocked with no pbuf
48890 paging space I/Os blocked with no psbuf
2740 filesystem I/Os blocked with no fsbuf
110 client filesystem I/Os blocked with no fsbuf
89345 external pager filesystem I/Os blocked with no fsbuf

Command : vmstat -I 5 5
kthr memory page faults cpu
-------- ----------- ------------------------ ------------ -----------
r b p avm fre fi fo pi po fr sr in sy cs us sy id wa
1 1 0 1837530 20768 41 196 8 0 0 0 1110 29968 10573 17 10 70 3
1 1 0 1833453 24285 75 213 11 0 0 0 1043 32556 13921 16 14 62 7
1 1 0 1827655 28258 22 74 85 0 0 0 740 57171 6965 21 5 68 6
2 1 0 1832959 21916 60 151 99 0 0 0 434 46722 7054 31 11 47 11
1 1 0 1832622 20253 96 230 88 0 0 0 1351 32595 11736 19 10 63 8
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0