Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DIO  vs CIO  in AIX

Posted on 2014-01-16
4
Medium Priority
?
1,416 Views
Last Modified: 2014-01-16
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
0
Comment
Question by:it-rex
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39786720
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
 
LVL 11

Author Comment

by:it-rex
ID: 39786919
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
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 39787062
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
 
LVL 11

Author Closing Comment

by:it-rex
ID: 39787203
Great thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question