1833711 Members
2523 Online
110063 Solutions
New Discussion

asynchronous I/O

 
yongye_2
Occasional Advisor

asynchronous I/O

Hi,

Now I want to enable asynchronous I/O on HP-UX 11.11 system when I install the oracle. It seems like asynchronous I/O is applied on the file system. I wonder if asynchronous can apply on raw device? Also I want to know what is the risk of having asynchronous I/O enabled. Can someone give me advice? Thanks.

Yongye
11 REPLIES 11
yongye_2
Occasional Advisor

Re: asynchronous I/O

Thanks for your prompt response.

I paste the Url you provided into my IE, nothing found by google.

Could you please paste one useful doc Url from your search result? Thanks.

Yongye


Sudeesh
Respected Contributor

Re: asynchronous I/O

Click on this link and then goto Disk section.

http://docs.hp.com/en/1219/tuningwp.html

If you are using raw disk access, your application will be directly accessing lvol(not through Unix buffer). I belive these parameters are not significant in such conditions.

Hope this helps

Sudeesh
The most predictable thing in life is its unpredictability
yongye_2
Occasional Advisor

Re: asynchronous I/O

Hi Sudeesh,

Thanks for your reply. But the doc from http://docs.hp.com/en/1219/tuningwp.html does not answer my question exactly. Thanks.

Yongye

Jean-Luc Oudart
Honored Contributor

Re: asynchronous I/O

Hi,

to my knowledge asynchronous IO is only supported on raw device on HPUX11i.

cf. attached Oracle/HP White paper

Regards
Jean-Luc
fiat lux
Jdamian
Respected Contributor

Re: asynchronous I/O

Hi

I don't suggest to set Oracle DB in asynchronous I/O.

We have an intensive Oracle DB that was set in async I/O and had problems (all DB files are raw lvols). Due to a reset of a fibre switch, the timeout to switch from an LVM path to the alternate path was not enough for Oracle; then Oracle reported write I/O errors and set raw devices in read-only mode.

We had to set DB back in synchronous I/O.
yongye_2
Occasional Advisor

Re: asynchronous I/O

Hi Jean-Luc,

Thanks for the Doc. It demostrates a verey good example on how to make a decision between raw devices database and file system database.
But it gives me no idea about the risk by using raw device with AIO.

Thank you again.

Yongye
yongye_2
Occasional Advisor

Re: asynchronous I/O

Hi Oscar,

Thanks for your real case.

But I wonder why both HP and Oracle recommend to use AIO?

Yongye
baiju_3
Esteemed Contributor

Re: asynchronous I/O

Hi Yongye,

I know that fs_async parameter value needs to be set to 1 in kernel and /dev/async shud have 666 permissions .

Thanks,
BL
Good things Just Got better (Plz,not stolen from advertisement -:) )
Edgar Canaan
Occasional Advisor

Re: asynchronous I/O

1. Make sure you have the right ownership and permissions for the /dev/async file
2. Touch file /etc/privgroup
3. Type the command # setprivgrp â f /etc/privgroup
4. Include entry in the /etc/privgroup:

CHOWN MLOCK

(eg., sybase CHOWN MLOCK )

5. Again type the command # setprivgrp â f /etc/privgroup.
In a world without walls there is no need for gates and windows...
DCE
Honored Contributor

Re: asynchronous I/O

Yonge,

AIO is faster than synchronous. Your risk is data loss. If you have problems there is the potential to lose the data that has not yet been written to disk. With todays redundant environments (duplexing, SAN, mirroring) this risk is greatly reduced.