DIO vs CIO in AIX

what is the real difference between

DIO  vs CIO  in AIX

in all releases 5,6 and 7?
which one is superior? and will give better results and must have?
all in the context of Oracle..

thanks
LVL 11
it-rexAsked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
Yes, AIX CIO is AIX DIO plus inode lock bypassing.

DIO under Linux is just the same as under AIX. The Oracle parameter FILESYSTEMIO_OPTIONS is present under Linux as well, with the same functionality as under AIX.

As far as I know there is no native concurrent I/O (CIO) capability built into Linux. Third party filesystems like Veritas FS (VxFS) or GPFS etc. can provide this feature, I think.

AIO exists under Linux as well. As opposed to AIX where AIO is fully implemented as a kernel extension only a few functions are part of the kernel under Linux , many functions are implemented in user space so a library "libaio" is required to provide them.

Linux AIO requires  DIO support thus it works only on filesystems mounted with the dio option.

There is a configuration parameter /proc/sys/fs/aio-max-nr which is the upper limit "of the running total of the number of events specified on the io_setup system call for all currently active aio contexts" (quote from linux.org).

As under AIX the application has to use the proper functions to perform asynchronous I/O.
The FILESYSTEMIO_OPTIONS parameter enables this for Oracle under Linux if set to "setall".
0
 
woolmilkporcCommented:
Direct I/O is a non-caching policy.  File data is transferred directly to/from the disk from/to the application  without going through the VMM file cache.

Because Oracle implements data caching at application level it does not need the filesystem cache.

Concurrent I/O incorporates DIO.
Additionally, CIO bypasses the filesystem's inode locking mechanism. This mechanism is meant to serialize I/O, but Oracle has its own I/O serialization mechanisms for datafiles/redologs/controlfiles to ensure data integrity, so the filesystem's service is not needed in that aspect.
Please don't use CIO for other than the above mentioned types of files!

CIO and DIO are implemented exactly the same way in AIX 5, 6 and 7.

I already explained AIO in our other thread (just in case someone would hit on the idea that I could have forgotten to mention it).

AIO disconnects all I/O processing from application processing (where possible)
0
 
it-rexAuthor Commented:
So CIO has what DIO has ,plus more functionality..?
correct?

Now how is CIO works in Linux ..CIO and DIO with oracle and linux?
0
 
it-rexAuthor Commented:
Great thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.