Performance problem - waiting on cache


 
Thread Tools Search this Thread
Operating Systems HP-UX Performance problem - waiting on cache
# 8  
Old 01-21-2011
The Superdome is Itanium, sorry I did not specify that earlier. There are no other applications or databases running on this server.

I am trying to work with a DBA to find the cause. The database, server, and batch process have not changed in over a year. The uptime was more than 365 days. This is our pre-production database so, I am told, the data has not grown either.

The more I look at it, the more it looks like everything is running great from the OS perspective, really fast, in fact. It looks like all of the data is loaded up into the dbc and the query is repeatedly hitting it again and again and again. I cannot see the query but I am told that they are reading from several tables trying to build a new table. Again, they've done this nightly without issue until recently. In my book, something has changed but here I am, the Sys Admin, with all fingers pointing at me as if it has something to do with the server.

Thanks again folks, for all of your help. I'll keep digging and looking into your recommendations.
# 9  
Old 01-21-2011

Oracle Database 10g runs I/O operations from both shared memory and process-private regions using the new HP-UX asynchronous driver. However, I/O operations through the asynchronous driver are not asynchronous in nature. This is because Oracle Database must perform a blocking wait to check the status of I/O operations submitted to the asynchronous driver. This causes some Oracle processes, such as the database writer process, to essentially process synchronous I/O.

This is an extract from this link

seems like asynchronous I/O on HP-UX with Oracle is only supported for raw FS

How many DB writer are currently set up on your DB ?

Few considerations about it you might want to prefer:

a) the FS type hosting the datafile can handle async I/O (oracle param DISK_ASYNCH_IO = true) so the DB writer can let the OS deal with the update (without having to do "wait" events)

b) if your FS type doesn't support async I/O you can setup more than 1 DBWR (DBWR_PROCESSES/db_writer_processes) but since the oracle buffer cache is divided in as much working sets, you might want to adjust the DB_BLOCK_LRU_LATCHES.

c) Last solution, activate the forking to simulate asynch I/O by activating the use of slave processes (DBWn_IO_SLAVES) which are in fact synchronous I/O (DISK_ASYNCH_IO = false). Risks of that last solution are buffer overhead, wait, memory overhead (IPCs & context switch)

Last edited by ctsgnb; 01-21-2011 at 05:16 PM..
# 10  
Old 01-21-2011
As I recall waiting for cache in Glance means the process is waiting for the file system buffer cache to be updated, which is normal for buffered IO. Everytime when this was all I could see I and there was hardly any CPU usage and the system seemed to function normally, it turned out that someone had been making changes to a query anyway Smilie
# 11  
Old 01-21-2011
Some product like ODM (Oracle disk manager) i think, can also help to avoid double buffering (OS+DB) and may help to save the some RAM space used by the buffer cache system so that the saved space can for example be reused to increase the database buffer cache.

Last edited by ctsgnb; 01-21-2011 at 05:31 PM..
# 12  
Old 01-21-2011
Good news! The process always drops the indexes and rebuilds it every day before it starts. In our meeting right now the DBA said she just now rebuilt the indexes and the query finished immediately. At least now we have enough ammunition to point back to the database.

Thank you again everyone for all of your suggestions.
# 13  
Old 01-21-2011
LoL

... Check that the query is correctly designed

That was the first sentence of my first post

Smilie
# 14  
Old 01-21-2011
Well, they've already admitted that the query should be modified to run in parallel mode but they do not want to make this change until they've finished their current testing over the next 4-6 weeks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. OS X (Apple)

UNIX cache problem?

So I worked out a script for Mac OSX from an existing script. This script checks the versionnumber of a plugin and a package. If the plugin version is different from the package it has to update the plugin. The script works fine but the final check fails. Here is my script: #compare version... (6 Replies)
Discussion started by: mattiasvdm
6 Replies

2. Solaris

DNS Cache Problem-Urgent !!!!!!

I have DNS Server running in solaris 10 . There is website called exaple.com ,whcih was hosted in this dns server with IP 1.2.3.4 ,now we deleted the DNS entry of that website from our DNS Server (db.exmaple.com is deleted from named.conf ) and it is hosted with some other name server with IP... (1 Reply)
Discussion started by: sandeep.tk
1 Replies

3. Linux

File cache /Page cache Linux

Hi All, could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4. Regards Manish (0 Replies)
Discussion started by: hmanish
0 Replies

4. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

5. Emergency UNIX and Linux Support

VPN performance problem

This is a weird problem I've been butting my head against for days now... I have two OpenVPN servers set up with identical configurations except for the keys. One of them is hosted in a datacenter with a large backbone, the other is hosted on my home server's limited residential internet. One... (9 Replies)
Discussion started by: Corona688
9 Replies

6. UNIX for Dummies Questions & Answers

Network performance problem

I have a Teradata Machine, using MP-RAS Unix, with a 1000 Intel Ethernet card and a Cisco switch. If I configure the ethernet card and the switch to auto, so they negotiate to 1000, or configure the ethernet card and switch manually to 1000Full or 100Full, the velocity is very very low. Only... (2 Replies)
Discussion started by: cuatrodos
2 Replies

7. Solaris

Performance problem

Hi All, There is a virtual user "ecoouk" which logs on to the server and runs some scripts. I want to know how much server performance can I gain if I put off all the scripts run by this user. Please tell me how to analyse how much resources a specific user is using. Regards, Abhishek (3 Replies)
Discussion started by: max29583
3 Replies

8. UNIX for Advanced & Expert Users

UBC cache vs. Metadata cache

hi, What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux? Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies

9. UNIX for Advanced & Expert Users

performance problem

Hello, I have a mail server (sendmail) with SUNOS 5.5.1. Just recently it began to respond very slowly. I used vmstat to check the performance data. Only interupt, system call and CPU context swiching are relatively high. Other statistics are normal, especially CPU utilization are very... (5 Replies)
Discussion started by: caoai
5 Replies
Login or Register to Ask a Question