Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Moving db to linux

Re: Moving db to linux

From: Mladen Gogala <mgogala_at_adelphia.net>
Date: Sat, 28 Feb 2004 21:17:46 -0500
Message-ID: <20040229021746.GA6745@medo.adelphia.net>

On 02/28/2004 08:09:19 PM, Nuno Souto wrote: >> ----- Original Message -----

>>    if (stat3=posix_memalign(&buff,ALIGN,BUFFSIZE)) {
>>       fprintf(stderr,"ALIGN ERR:%s\n",strerror(stat3));
>>       exit(0);
>>    }


> :D I LIKE that! Would you believe this is the FIRST time EVER
> I've seen this little piece of code included in ANY program that
> purports to test I/O? Yet it is of capital importance: it makes a
> HUGE difference in getting any performance numbers. Well done!

Nuno, I agree, it's absolutely crucial because without the proper alignment, direct I/O will not work. If you look into open(2), for O_DIRECT flag, it does say that buffers need to be aligned on the buffer size. I am running the latest 2.4 kernel, and if I declare buffer as buff[BUFFSIZE], I get EINVAL for the next I/O operation. Exactly the same thing happens to Oracle 10 when I set the DIRECTIO flag. I did strace of CKPT process, and that was precisely what I saw. I chose CKPT because oracle was reporting problems with accessing control files when I did "alter database mount". I must humbly admit contacting Dave Kleinkamp from IBM team which is developing JFS, and it was he who has put the posix_memalign, not me. Below is his message:

The modified version is the one that you saw earlier.

-- 
Mladen Gogala
Oracle DBA
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Sat Feb 28 2004 - 20:14:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US