<?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: Block size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529634#M868092</link>
    <description>No, the block size of VxFS is 1kB (or call it the extent size, which is more appropriate. .). 1kB is the smallest amount of data a VxFS can ever access.&lt;BR /&gt;&lt;BR /&gt;The DEV_BSIZE is something different and is 512 byte by default. The DEV_BSIZE is the smallest amount of data the disk hardware can access. Of course any filesystem access cannot read/write smaller amounts of data than DEV_BSIZE, it is only possible to access multiples of DEV_BSIZE. Using DEV_BSIZE blocks as the computational unit on all disk devices allows the file system to avoid managing different I/O unit sizes for different devices.&lt;BR /&gt;&lt;BR /&gt;So, it is still correct: The bsize of VxFS is 1kB by default/minimum and 8kB at maximum. It is a different story how the hardware accesses the filesystem blocks.&lt;BR /&gt;&lt;BR /&gt;Carsten</description>
    <pubDate>Thu, 17 May 2001 11:06:08 GMT</pubDate>
    <dc:creator>Carsten Krege</dc:creator>
    <dc:date>2001-05-17T11:06:08Z</dc:date>
    <item>
      <title>Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529629#M868087</link>
      <description>How do I find the current block size ? and what is the default ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Scott.</description>
      <pubDate>Thu, 17 May 2001 08:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529629#M868087</guid>
      <dc:creator>Scott Dunkley</dc:creator>
      <dc:date>2001-05-17T08:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529630#M868088</link>
      <description>&lt;BR /&gt;fstyp -v /dev/vgXX/rlvolXX | grep bsize&lt;BR /&gt;&lt;BR /&gt;Gives you the blocksize for JFS filesystems. Default is 8k</description>
      <pubDate>Thu, 17 May 2001 08:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529630#M868088</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-17T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529631#M868089</link>
      <description>#fstyp -v /dev/vg00/lvol8  &lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 1024&lt;BR /&gt;f_blocks: 712704&lt;BR /&gt;f_bfree: 146227&lt;BR /&gt;f_bavail: 146227&lt;BR /&gt;f_files: 21504&lt;BR /&gt;f_ffree: 1073792296&lt;BR /&gt;f_favail: 1073792296&lt;BR /&gt;f_fsid: 1073741832&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: 712704</description>
      <pubDate>Thu, 17 May 2001 08:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529631#M868089</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-17T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529632#M868090</link>
      <description>The default block size of VxFS is 1kB, not 8kB as one could judge from the fstyp output. I believe that fstyp should simply present the output in a better way and more suitable for VxFS. &lt;BR /&gt;&lt;BR /&gt;You can calculate the size of a single block by running fstyp and dividing the size of the filesystem by f_blocks (number of blocks). &lt;BR /&gt;In fstyp's output the value of the blocksize of a VxFS is given by f_frsize and not by f_bsize!&lt;BR /&gt;&lt;BR /&gt;Even more direct you get the block size (that you can set with "mkfs -F vxfs -o bsize=xxx .. ")  with the command&lt;BR /&gt;&lt;BR /&gt;#echo "X b; p S" |fsdb -F vxfs /dev/vg00/lvol14&lt;BR /&gt;&lt;BR /&gt;(X=1 if bsize=8192, X=2 if bsize=4096, X=4 if bsize=2048, X=8 if bsize=1024). X=8 is default.&lt;BR /&gt;This gives you the superblock information of the filesystem.&lt;BR /&gt;&lt;BR /&gt;Carsten&lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2001 09:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529632#M868090</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-05-17T09:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529633#M868091</link>
      <description>&lt;BR /&gt;Im afraid everyone is wrong. Check out the following link to the definitive answer from Bil Hassel; 512 bytes it is!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=53521&amp;amp;q=blocksi%7ae&amp;amp;fh" target="_blank"&gt;http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=53521&amp;amp;q=blocksi%7ae&amp;amp;fh&lt;/A&gt;</description>
      <pubDate>Thu, 17 May 2001 10:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529633#M868091</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-17T10:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529634#M868092</link>
      <description>No, the block size of VxFS is 1kB (or call it the extent size, which is more appropriate. .). 1kB is the smallest amount of data a VxFS can ever access.&lt;BR /&gt;&lt;BR /&gt;The DEV_BSIZE is something different and is 512 byte by default. The DEV_BSIZE is the smallest amount of data the disk hardware can access. Of course any filesystem access cannot read/write smaller amounts of data than DEV_BSIZE, it is only possible to access multiples of DEV_BSIZE. Using DEV_BSIZE blocks as the computational unit on all disk devices allows the file system to avoid managing different I/O unit sizes for different devices.&lt;BR /&gt;&lt;BR /&gt;So, it is still correct: The bsize of VxFS is 1kB by default/minimum and 8kB at maximum. It is a different story how the hardware accesses the filesystem blocks.&lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Thu, 17 May 2001 11:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529634#M868092</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-05-17T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Block size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529635#M868093</link>
      <description>You specify the block size when a file system is created; it cannot be changed later. The standard HFS file system defaults to a block size of 8K with a 1K fragment size. This means that space is allocated to small files (up to 8K) in 1K increments. Allocations for larger files are done in 8K increments except for the last block, which may be a fragment. Because many files are small, the fragment facility saves a large amount of space compared to allocating space 8K at a time.&lt;BR /&gt;The unit of allocation in VxFS is a block. There are no fragments because storage is allocated in extents that consist of one or more blocks. The smallest block size available is 1K, which is also the default block size for VxFS file systems created on file systems of less than 8 gigabytes.&lt;BR /&gt;&lt;BR /&gt;See &lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3929-90011/B3929-90011_top.html&amp;amp;con=/hpux/onlinedocs/B3929-90011/00/00/44-con.html&amp;amp;toc=/hpux/onlinedocs/B3929-90011/00/00/44-toc.html&amp;amp;searchterms=Block%7csize&amp;amp;queryid=20010517-053500" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3929-90011/B3929-90011_top.html&amp;amp;con=/hpux/onlinedocs/B3929-90011/00/00/44-con.html&amp;amp;toc=/hpux/onlinedocs/B3929-90011/00/00/44-toc.html&amp;amp;searchterms=Block%7csize&amp;amp;queryid=20010517-053500&lt;/A&gt;</description>
      <pubDate>Thu, 17 May 2001 11:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size/m-p/2529635#M868093</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-17T11:36:36Z</dc:date>
    </item>
  </channel>
</rss>

