1758563 Members
2281 Online
108872 Solutions
New Discussion юеВ

OS block size ?

 
chris zeis
Occasional Contributor

OS block size ?

I know that what the blocksize is for each of my volume groups. What is the OS block size?

I'm using RAID and know that I can determine the stripe sizes. The problem is when I request for example 256K worth of data, how does the OS handle the data and in what size?
No one knows this so far
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: OS block size ?

It depends on what (-b = block size ) parameter values you used when you created the filesystem. do a man on newfs_vxfs. The default for vxfs is 1024 bytes. (if you used SAM to create the fs the it is likely the default)
nothing wrong with me that a few lines of code cannot fix!
Stefan Farrelly
Honored Contributor

Re: OS block size ?


The block size of your filesystems is usually from 1k up. Use the fstyp command to see the blocksize.

To see the stripe size a simple lvdisplay will show what stripe size, if any, your lvols are using. If you are using RAID then this doesnt necessarily mean you have an lvol stripe size, your RAID disk device (eg. a Nike) may have its own internal stripe size when you bind disks together into a lun, you will need to look at the documentation for your RAID disks subsystem to deternine its stripe size, eg. a Nike can use from 8-128k.

All this block size info though doesnt really help you 'calculate' performance and what is optimal for your environment. Nothing beats doing your own tests. Do some raw dd's of your lvols and time them to see what the performance is like, modify the block size or stripe size and repeat the time dd to see whats best for your server/disks.
eg. time dd if=/dev/vgxx/rlvolxx of=/dev/null bs=1024k count=50
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: OS block size ?

Chris:

# fstyp -v /dev/dsk/cXtXdx

...JRF...
John Palmer
Honored Contributor

Re: OS block size ?