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: Db_block_size

RE: Db_block_size

From: Subramaniam, Lakshmi (L.) <lsubrama_at_ford.com>
Date: Wed, 19 Jul 2000 15:32:55 -0400
Message-Id: <10563.112442@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFF1B8.22F8F240
Content-Type: text/plain;

        charset="iso-8859-1"

How do we find the operating system block size on unix?  

Lakshmi
-----Original Message-----
From: Alex Hillman [mailto:alex_hillman_at_physia.com] Sent: Friday, June 09, 2000 6:49 PM
To: Multiple recipients of list ORACLE-L Subject: RE: Db_block_size

Maybe this rule of thumb a little outdated. First it depends on what kind of file system you run (journal or not), if your box can use direct IO, what is the block size of your file system, what is the maximum I/O size of your box, can you change it (before Solarid 2.7 max size was 64K, 2.7 and up you can configure it in /etc/system). Generally, if direct I/O is enabled, your block size should be equal file system block size. Standard file system block size is 8K but you can create file system with bigger block size like 16k and make your Oracle block size 16K. There is an article on Steve Adams site why large block size is better - for OLTP mainly because of lowering of the haight of the indexes . So it is a little more complex that it looks like. There were very good presentations on IOUG by Gaja Vaidyanatha(sucking up :-) ) about performance tuning and RAIDs where these issues were explained.

Alex Hillman

-----Original Message-----
From: guy ruth hammond [ mailto:grh_at_agency.com <mailto:grh_at_agency.com> ] Sent: Friday, June 09, 2000 12:40 PM
To: Multiple recipients of list ORACLE-L Subject: Re: Db_block_size

Eric Fang wrote:

> 
> Thanks, Chris, Rachel and Guy for the answers. 
> Actually we don't have production database(anytime), 
> so I don't even have the archive log files. My 
> question is what's the benefits of increasing the 
> db_block_size, what is the limit? 

As a rule of thumb, large block size are good for OLAP loads, and small block sizes are good for OLTP. The actual sizing depends on your OS block size. Oracle thinks in terms of blocks when it does I/O. Therefore, if you can get an Oracle block in an integral number of OS blocks, this is good. If you have to read an entire OS block, but Oracle only wants part of that to complete a data block, this is bad.

Cheers,

g

-- 
guy ruth hammond <grh_at_agency.com> | One is punished for being 
Technology Analysis & Consulting  | weak, not for being cruel. 
07879607148 http://www.agency.com <http://www.agency.com>  |       --
Baudelaire 
-- 
Author: guy ruth hammond 
  INET: grh_at_agency.com 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051 
San Diego, California        -- Public Internet access / Mailing Lists 
-------------------------------------------------------------------- 
To REMOVE yourself from this mailing list, send an E-Mail message 
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in 
the message BODY, include a line containing: UNSUB ORACLE-L 
(or the name of mailing list you want to be removed from).  You may 
also send the HELP command for other information (like subscribing). 


------_=_NextPart_001_01BFF1B8.22F8F240
Content-Type: text/html;
	charset="iso-8859-1"


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: Db_block_size</TITLE>

<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial><SPAN class=298212919-19072000>How do we
find the operating system block size on unix?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial><SPAN
class=298212919-19072000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial><SPAN
class=298212919-19072000>Lakshmi</SPAN></FONT></DIV>
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Alex Hillman [mailto:alex_hillman_at_physia.com]<BR><B>Sent:</B> Friday, June 09, 2000 6:49 PM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B> RE: Db_block_size<BR><BR></FONT></DIV>
<P><FONT size=2>Maybe this rule of thumb a little outdated. First it depends
on&nbsp; what kind of file system you run (journal or not), if your box can use direct IO, what is the block size of your file system, what is the maximum I/O size of your box, can you change it (before Solarid 2.7 max size was 64K, 2.7 and up you can configure it in /etc/system). Generally, if direct I/O is enabled, your block size should be equal file system block size. Standard file system block size is 8K but you can create file system with bigger block size like 16k and make your Oracle block size 16K. There is an article on Steve Adams site why large block size is better - for OLTP mainly because of lowering of the haight of the indexes . So it is a little more complex that it looks like. There were very good presentations on IOUG by Gaja Vaidyanatha(sucking up :-) ) about performance tuning and RAIDs where these issues were explained.</FONT></P>
<P><FONT size=2>Alex Hillman</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: guy
ruth hammond [<A href="mailto:grh_at_agency.com">mailto:grh_at_agency.com</A>]</FONT>
<BR><FONT size=2>Sent: Friday, June 09, 2000 12:40 PM</FONT> <BR><FONT
size=2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT size=2>Subject: Re: Db_block_size</FONT> </P><BR>
<P><FONT size=2>Eric Fang wrote:</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT
size=2>&gt; Thanks, Chris, Rachel and Guy for the answers.</FONT> <BR><FONT size=2>&gt; Actually we don't have production database(anytime),</FONT>
<BR><FONT size=2>&gt; so I don't even have the archive log files. My</FONT>
<BR><FONT size=2>&gt; question is what's the benefits of increasing the</FONT>
<BR><FONT size=2>&gt; db_block_size, what is the limit?</FONT> </P>
<P><FONT size=2>As a rule of thumb, large block size are good for OLAP
loads,</FONT> <BR><FONT size=2>and small block sizes are good for OLTP. The actual sizing</FONT> <BR><FONT size=2>depends on your OS block size. Oracle thinks in terms of</FONT> <BR><FONT size=2>blocks when it does I/O. Therefore, if you can get an Oracle</FONT> <BR><FONT size=2>block in an integral number of OS blocks, this is good. If</FONT> <BR><FONT size=2>you have to read an entire OS block, but Oracle only wants</FONT> <BR><FONT size=2>part of that to complete a data block, this is bad.</FONT> </P>
<P><FONT size=2>Cheers,</FONT> </P>
<P><FONT size=2>g</FONT> </P><BR><BR>
<P><FONT size=2>-- </FONT><BR><FONT size=2>guy ruth hammond
&lt;grh_at_agency.com&gt; | One is punished for being</FONT> <BR><FONT size=2>Technology Analysis &amp; Consulting&nbsp; | weak, not for being cruel.</FONT> <BR><FONT size=2>07879607148 <A href="http://www.agency.com" target=_blank>http://www.agency.com</A> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Baudelaire</FONT> <BR><FONT size=2>-- </FONT><BR><FONT size=2>Author: guy ruth hammond</FONT> <BR><FONT size=2>&nbsp; INET: grh_at_agency.com</FONT> </P>
<P><FONT size=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858)
538-5051&nbsp; FAX: (858) 538-5051</FONT> <BR><FONT size=2>San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet access / Mailing Lists</FONT> <BR><FONT size=2>--------------------------------------------------------------------</FONT>
<BR><FONT size=2>To REMOVE yourself from this mailing list, send an E-Mail
message</FONT> <BR><FONT size=2>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT> <BR><FONT size=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT> <BR><FONT size=2>(or the name of mailing list you want to be removed from).&nbsp; You may</FONT> <BR><FONT size=2>also send
Received on Wed Jul 19 2000 - 14:32:55 CDT

Original text of this message

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