<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: oracle and filesystem block size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740686#M910783</link>
    <description>AR,&lt;BR /&gt;&lt;BR /&gt;Refer to the following thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may not seem to apply at first, but keep reading, I'm sure you'll discover its pertinence.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Mon, 10 Jun 2002 10:25:37 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2002-06-10T10:25:37Z</dc:date>
    <item>
      <title>oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740678#M910775</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Oracle says that oracle block size should be multiple of OS block size but different filesystems can be created with different filesystem block sizes.How oracle takes care of that.&lt;BR /&gt;&lt;BR /&gt;What about the block size of raw volume.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;AR</description>
      <pubDate>Mon, 10 Jun 2002 02:09:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740678#M910775</guid>
      <dc:creator>Aashish Raj</dc:creator>
      <dc:date>2002-06-10T02:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740679#M910776</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You take care of the Oracle block size by specifying the value for db_block_size and db_file_multiblock_read_count in your Oracle init.ora.&lt;BR /&gt;&lt;BR /&gt;Both must be a multiple of the OS block size for efficient file I/O operations on the database files. The setting of db_file_multiblock_read_count will depend on your how your records are structured.&lt;BR /&gt;&lt;BR /&gt;You can find out an existing OS filesystem block size by typing:&lt;BR /&gt;&lt;BR /&gt;# fstyp -v /dev/vg00/lvol6&lt;BR /&gt;&lt;BR /&gt;To create an OS filesystem of a specific block size, use newfs -b option e.g. for 16384 bytes:&lt;BR /&gt;&lt;BR /&gt;# newfs -b 16384 /dev/vg00/rlvol6&lt;BR /&gt;&lt;BR /&gt;For raw volumes (raw logical volumes) used for the database, I would think that the read is related by the size of the logical extents (not sure on this part). NOTE that raw volumes are VERY difficult to administer and manage at the OS level.&lt;BR /&gt;&lt;BR /&gt;If you really want to improve I/O performance for your Oracle database, you should think about striping (RAID 0) and striping with parity (the ideal is RAID 5 among the other striping with party RAIDs such as 3 and 4).&lt;BR /&gt;&lt;BR /&gt;To stripe your logical volume, use lvcreate with the -i option. man lvcreate for more information. &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 10 Jun 2002 03:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740679#M910776</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-10T03:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740680#M910777</link>
      <description>Thanks Steven !&lt;BR /&gt;&lt;BR /&gt;What i mean to ask is ...lets say oracle block size is 16k and i create a new filesystem with block size of say 8k or 4k, then how oracle is going to treat datafiles added to this FS.&lt;BR /&gt;According to oracle, oracle block size should be multiple of OS block size so&lt;BR /&gt;oracle block size &amp;gt;=OS block size&lt;BR /&gt;&lt;BR /&gt;Will oracle allow me to create a datafiles on this filesystem(i am talking only for oracle 8i where oracle block size is same for all datafiles)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;AR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 04:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740680#M910777</guid>
      <dc:creator>Aashish Raj</dc:creator>
      <dc:date>2002-06-10T04:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740681#M910778</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Why not? Oracle will be more than happy to create the datafiles for you on the filesystem (regardless of OS block size).&lt;BR /&gt;&lt;BR /&gt;During our I/O performance comparison between HFS, VxFS and raw volumes for Oracle database performance using just tablespace creation duration, we compared the performance with varying Oracle block sizes and OS filesystem block sizes for HFS and VxFS. We were able to create the datafiles.&lt;BR /&gt;&lt;BR /&gt;It matters only for the I/O performance where Oracle writes in db_block_size bytes of data in each block and reads in db_file_multiblock_read_count.&lt;BR /&gt;&lt;BR /&gt;Hope I get your query right and hope this helps. Regards. &lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 10 Jun 2002 05:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740681#M910778</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-10T05:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740682#M910779</link>
      <description>How come I cannot create a file system with 16384 block size? Here is the error message,&lt;BR /&gt;#newfs -F vxfs -b 16384 /dev/vg00/rlvtest&lt;BR /&gt;vxfs mkfs: bsize must be a power of 2 &amp;gt;= 1024 and &amp;lt;= 8192&lt;BR /&gt;&lt;BR /&gt;Another thing I noticed that if I use default block size, f_bsize: is also 8k, but f_frsize is 1024.  If I use 8k blk size, then both f_bsize and f_frsize change to 8k.  What's f_frsize in fstyp output?</description>
      <pubDate>Mon, 10 Jun 2002 07:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740682#M910779</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-06-10T07:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740683#M910780</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The maximum block size for HFS is 64 kb while the maximum block size for VxFS is only 8 kb.&lt;BR /&gt;&lt;BR /&gt;The fragment size represents the smallest amount of disk space to be allocated to a file. It must be a power of two no smaller than DEV_BSIZE and no smaller than one-eighth of the file system block size. &lt;BR /&gt;&lt;BR /&gt;Thus, if you have a lot of very small files, each of them less than 1 kb in size, then by reducing the fragment size, you save filesystem space because instead of occupying 8 kb for each file, only 1 kb is used for each file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 10 Jun 2002 07:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740683#M910780</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-10T07:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740684#M910781</link>
      <description>So it seems "-b 4096" in newfs will only change fragment size, it will never change block size, then how to change block size?&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 08:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740684#M910781</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-06-10T08:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740685#M910782</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Changing of fragment size independent of block size is available for HFS. man newfs_hfs for more information.&lt;BR /&gt;&lt;BR /&gt;-b block size&lt;BR /&gt;-f fragment size&lt;BR /&gt;&lt;BR /&gt;For VxFS, you can defragment your filesystem unlike HFS. &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 10 Jun 2002 09:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740685#M910782</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-10T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740686#M910783</link>
      <description>AR,&lt;BR /&gt;&lt;BR /&gt;Refer to the following thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may not seem to apply at first, but keep reading, I'm sure you'll discover its pertinence.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 10 Jun 2002 10:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740686#M910783</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-10T10:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740687#M910784</link>
      <description>If f_frsize is fragment size, then how about f_bsize? Is block size the same as f_frsize? Where can I get the description of each item in the output of "fstyp -v "?&lt;BR /&gt;Here is what I got,&lt;BR /&gt;#newfs -F vxfs -b 4096 /dev/vg00/rlvtest&lt;BR /&gt;    version 3 layout&lt;BR /&gt;    106496 sectors, 26624 blocks of size 4096, log size 512 blocks&lt;BR /&gt;    unlimited inodes, 26624 data blocks, 26080 free data blocks&lt;BR /&gt;    1 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;    last allocation unit has 26624 data blocks&lt;BR /&gt;    first allocation unit starts at block 0&lt;BR /&gt;    overhead per allocation unit is 0 blocks&lt;BR /&gt;&lt;BR /&gt;#fstyp -v /dev/vg00/lvtest&lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 4096&lt;BR /&gt;f_blocks: 26624&lt;BR /&gt;f_bfree: 26075&lt;BR /&gt;f_bavail: 25668&lt;BR /&gt;f_files: 6544&lt;BR /&gt;f_ffree: 6512&lt;BR /&gt;f_favail: 6512&lt;BR /&gt;f_fsid: 1073741841&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 6&lt;BR /&gt;f_size: 26624&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You see, both block size and f_frsize seems have been set to 4096  but f_bsize is still 8192, what's f_bsize?&lt;BR /&gt;&lt;BR /&gt;#newfs -F vxfs -b 8192 /dev/vg00/rlvtest&lt;BR /&gt;    version 3 layout&lt;BR /&gt;    106496 sectors, 13312 blocks of size 8192, log size 256 blocks&lt;BR /&gt;    unlimited inodes, 13312 data blocks, 13024 free data blocks&lt;BR /&gt;    1 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;    last allocation unit has 13312 data blocks&lt;BR /&gt;    first allocation unit starts at block 0&lt;BR /&gt;    overhead per allocation unit is 0 blocks&lt;BR /&gt;&lt;BR /&gt;#fstyp -v /dev/vg00/lvtest&lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 8192&lt;BR /&gt;f_blocks: 13312&lt;BR /&gt;f_bfree: 13027&lt;BR /&gt;f_bavail: 12926&lt;BR /&gt;f_files: 3264&lt;BR /&gt;f_ffree: 3232&lt;BR /&gt;f_favail: 3232&lt;BR /&gt;f_fsid: 1073741841&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 6&lt;BR /&gt;f_size: 13312&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 01:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740687#M910784</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-06-11T01:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740688#M910785</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Interesting findings. &lt;BR /&gt;&lt;BR /&gt;f_frsize is the block size of the filesystem and f_bsize is the preferred filesystem block size (which is 8192 bytes for vxfs). Thus, the preferred filesystem block size f_bsize will always be fixed for a filesystem. On the other hand, f_frsize is the configured filesystem block size and changes according to the options to newfs.&lt;BR /&gt;&lt;BR /&gt;man 2 statvfs.&lt;BR /&gt;&lt;BR /&gt;           ulong f_bsize;              /* preferred file system block size */&lt;BR /&gt;           ulong f_frsize;             /* fundamental file system block size */&lt;BR /&gt;&lt;BR /&gt;You are right. The fragment size is not identified in fstyp. This is interesting.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 11 Jun 2002 01:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740688#M910785</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-11T01:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740689#M910786</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As indicated in previous responses, note that setting the fragment size is only applicable in HFS. &lt;BR /&gt;&lt;BR /&gt;HFS differentiates between fragment size and block size. man newfs_hfs shows the option to set the fragment size whereas man newfs_vxfs does not.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 11 Jun 2002 01:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740689#M910786</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-11T01:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740690#M910787</link>
      <description>It seems this question generated a lot of issues.  &lt;BR /&gt;I generally don't consider it&lt;BR /&gt;much of an issue if you are using powers of 2 for all the&lt;BR /&gt;values.  A block size of 4k&lt;BR /&gt;and multiblock read count of 8 &lt;BR /&gt;give you a read size of 32k.  These are generally minumal values.  Increase either value by a factor of 2 and you get optimal read values up to 64k block sizes on disk.  &lt;BR /&gt;&lt;BR /&gt;By default your minumum extent&lt;BR /&gt;size is a multiple of 5 so&lt;BR /&gt;all this tuning goes to waste.&lt;BR /&gt;Be sure to set the value&lt;BR /&gt;for minumum extent size on&lt;BR /&gt;all you tablespaces to a &lt;BR /&gt;value that is a power of 2. &lt;BR /&gt;I use the value of my default&lt;BR /&gt;initial extent</description>
      <pubDate>Tue, 11 Jun 2002 13:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740690#M910787</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-06-11T13:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: oracle and filesystem block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740691#M910788</link>
      <description>I would like to know when I create a database with db_block_size 8K, should I create the file system block size and frament size with 8k to get better performance?</description>
      <pubDate>Mon, 28 Jul 2003 14:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-and-filesystem-block-size/m-p/2740691#M910788</guid>
      <dc:creator>PAUL CHEN_2</dc:creator>
      <dc:date>2003-07-28T14:47:48Z</dc:date>
    </item>
  </channel>
</rss>

