ORACLE Database running slow on AIX ( nmon / topas )


 
Thread Tools Search this Thread
Operating Systems AIX ORACLE Database running slow on AIX ( nmon / topas )
# 8  
Old 08-12-2010
No, it's good to know and I thank you for that hint. I will pass that info to our DB guys since they are currently doing performance tests comparing raw devices and file system data files. Maybe we can see a difference and that would be nice.
# 9  
Old 08-12-2010
One place where the I/O of the Oracle database can be optimised is to have the filesystem use the same blocksize as the Oracle database. From memory this should be 1 MB rather than the more usual 4K.
# 10  
Old 08-18-2010
AIX 5.2 doesn't have vmstat -w

not running query
Code:
# sar 1 5
 
AIX oradb 2 5 0059C87D4C00    08/18/10
 
System Configuration: lcpu=2
 
15:12:52    %usr    %sys    %wio   %idle
15:12:53      10       4       0      86
15:12:54       0       1       0      98
15:12:55       1       1       0      98
15:12:56       1       1       0      98
15:12:57      19       8       0      72
Average        6       3       0      90

but as soon as i run any query
idle becomes %20 ~ %30

Code:
# lsdev -C -l aio0
aio0 Available  Asynchronous I/O (Legacy)
# vmstat -w
vmstat: Not a recognized flag: w
Usage: vmstat [ -fsviItl ] [Drives] [ Interval [Count] ]
#
# vmstat -v
              1048576 memory pages
               977787 lruable pages
                 4815 free pages
                    1 memory pools
                94428 pinned pages
                 80,1 maxpin percentage
                 20,0 minperm percentage
                 80,0 maxperm percentage
                 59,9 numperm percentage
               585795 file pages
                  0,0 compressed percentage
                    0 compressed pages
                  0,0 numclient percentage
                 80,0 maxclient percentage
                    0 client pages
                    0 remote pageouts scheduled
                   85 pending disk I/Os blocked with no pbuf
                    0 paging space I/Os blocked with no psbuf
                55565 filesystem I/Os blocked with no fsbuf
                    0 client filesystem I/Os blocked with no fsbuf
                    0 external pager filesystem I/Os blocked with no fsbuf

The client is using JFS and *not* JFS2

The main issue:
Increasing the RAM from 4GB to 16GB will it increase the performance of the system or does the system need more processors ?

thanks

Last edited by filosophizer; 08-31-2010 at 07:44 AM.. Reason: The client is using JFS and *not* JFS2
# 11  
Old 08-18-2010
Hi,

please run
Code:
vmstat -I 2 20 (uppercase i)

and YES you definitely need more memory ... you have only about 16 MB memory for your DB to work with, and I assume your freelist goes to 0 when you do queries - what equals to a halt on the system. Set your minperm to 3-5%, your maxperm to 90%. And add memory ! If you need more cpus depends on if your DB has more than 2 parallel queries at any given time - and what your queries are doing (like full tablescans).

Kind regards
zxmaus
# 12  
Old 08-19-2010
ZXmaus, thanks for your reply. Could you please tell me, how you got the 16MB free memory for the Database ?
# 13  
Old 08-19-2010
Hi,

from your output above:
4815 free pages
each page is 4k ... ok ok 19 MB Smilie Still by far not enough for oracle to operate seamlessly. Once your free list goes to 0 what will very likely happen during backups or batches, the DB stops working until there are again a few pages free. Depending on the size and load on the database we try to keep the free list 6 digits if possible ... on high transactional huge databases even bigger - to have enough headroom to operate.

Kind regards
zxmaus
# 14  
Old 08-21-2010
Thanks for the reply ; zxmaus, what does vmstat -I 2 20 tell us

vmstat -I 2 20

Code:
# vmstat -I 2  2
System Configuration: lcpu=2 mem=4096MB
   kthr       memory              page               faults        cpu
-------- -----------  ------------------------ ------------ -----------
 r  b   p   avm   fre  fi  fo  pi  po   fr  sr   in   sy  cs us sy id wa
 1   2  0 802714  5120 394  34   7   8 409   101 448 3455 1338 10  3 82  5
 1  1  0 802802   4944  43   8   1   0    0    0 527 4472 1339 11  3 80  7
#



---------- Post updated at 12:04 PM ---------- Previous update was at 02:45 AM ----------

It is very confusing to decode / translate VMSTAT output. Searching on Google for VMSTAT translation I came across this link
http://www.skywayradio.com/tech/linux/vmstat.html
http://www.ibmsystemsmag.com/aix/februarymarch04/features/6670p1.aspx
http://www.tek-tips.com/viewthread.cfm?qid=1186922&page=1
http://www.aixexpert.com/wiki/index.php/AIX_Expert

From the AIX 5.1 "man" pages, the vmstat command reports statistics about kernel threads, virtual memory, disks, traps and CPU activity. These system-wide (among all processors) statistics are calculated as averages for values expressed as percentages and as sums otherwise. If the vmstat command is invoked without flags, the report contains a summary of activity since system startup. The interval parameter specifies the amount of time between each report in seconds. The first report contains statistics for the time since startup. Subsequent reports contain statistics collected during the interval since the previous report.


but now, I am more confused, can someone help me from the above output for vmstat -I 2 20 ; what does it show ?

How can I make sure that I need more memory or Need more processing power ? because someone told me, that ORACLE when it starts takes up all the available memory, so even if I have 100GB memory, it will always show little memory remaining. is this true ?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

AIX server running very slow

Hello, All the commands on AIX are running very slow. Below is few stats but I didn't find any issue in cpu or memory reosurces vmstat System configuration: lcpu=4 mem=6144MB ent=1.00 kthr memory page faults cpu ----- -----------... (2 Replies)
Discussion started by: Vishal_dba
2 Replies

2. AIX

Need to check long running processes on the database server and the os is AIX

Hello, Please help me with a script with which I can check long running processes on the database server and the os is AIX. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. Shell Programming and Scripting

Running script automatically when threshold limit met in one of the field in oracle database

Hi Guys, Need you help in one point! I am working on one shell script which takes following steps : 1. Taking one query result from oracle database 2. Exporting that result to Xls file 3. Mailing that file to my own mail ID Now, I want to give a threshold limit to one of the column... (0 Replies)
Discussion started by: Agupte
0 Replies

4. Solaris

what is the command to see which database ie..oracle in running on solaris 10

what is the command to see which database ie..oracle in running on solaris 10 (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

5. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

6. AIX

nmon vs topas

good morning what is the better solution to examen a P570 ? because i use topas and nmon, and the results are totally different !!! with nmon, i have 80% free cpu, and with nmon, i have 90% of used cpu !!!!!! i take a shot with an intervall of 10s during 10 mn. thank you (0 Replies)
Discussion started by: pascalbout
0 Replies

7. Filesystems, Disks and Memory

skgpspawn failed running oracle db 9.2.0.5.0 on aix 5.3

Hi, I am running an oracle db 9.2.0.5.0 on ibm p5 550 aix 5.3 with 10g ram, 10G swap space 3 database instances each SGA about 500Meg. I am getting the following error in my alert log file from time to time: skgpspawn failed:category = 27142, depinfo = 11, op = fork, loc = skgpspawn3 ... (0 Replies)
Discussion started by: hawkerpacific
0 Replies

8. AIX

Memory usage statistic? (topas, nmon)

hi, how can i diplay: - the ammount RAM used /free - ammount of ram used from a pid or prozess we have the problem, that malloc is returing a NULL pointer errno = 12 ( not enough space). but i think there is still ram free. nmon : shows all memory used ? Memory Use Physical Virtual... (7 Replies)
Discussion started by: Lazzar
7 Replies
Login or Register to Ask a Question