| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> Direct I/O questions
> First things first, this isn't an oracle question but rather a series =
of questions based on a previous message on the oracle-l list. If you =
think I should post it on a different list please let me know which one.
>=20
> The message I am talking about can be found here. > http://www.freelists.org/archives/oracle-l/02-2004/msg03007.html
> Here is the following information about our Linux server.
> There are 8 IA64 processors.
> Here is the modified code that I used.
> #include <stdio.h> > #include <stdlib.h> > #include <sys/types.h> > #include <sys/stat.h> > #include <errno.h> > #include <string.h> > #include <fcntl.h> > #include <unistd.h> > #define BUFFSIZE 65536 > #define ALIGN 4096
> int main()=20
> {=20
> char *buff;
> int stat1=3D0,stat2=3D0,stat3=3D0;
> int fd1=3D0,fd2=3D0;
> if (stat3=3Dposix_memalign((void **)&buff,ALIGN,BUFFSIZE)) {
> fprintf(stderr,"ALIGN ERR:%s\n",strerror(stat3));
> exit(0);
> }
> while(stat1=3Dread(fd1,buff,BUFFSIZE)) {
> if (errno) {
> fprintf(stderr,"READ ERR:%s\n",strerror(errno));
> exit(0);
> }
> stat2=3Dwrite(fd2,buff,(unsigned) stat1);
> if (errno) {
> fprintf(stderr,"WRITE ERR:%s\n",strerror(errno));
> exit(0);
> }
> }
> close(fd1);
> close(fd2);
> =20
> return 0;
> }
say that Linux doesn't support O_DIRECT and that you need to convert = your file system to XFS and use those libraries. Others say it does = support it. From the example above it seems it doesn't support it. =What must be done to the file system (if anything) to get direct I/O to = work? Do I need to convert to XFS?
> Any help would greatly be appreciated.
> James Kramer
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Dec 08 2004 - 15:02:13 CST
![]() |
![]() |