1827445 Members
5546 Online
109965 Solutions
New Discussion

OS block Size.

 
baiju_3
Esteemed Contributor

OS block Size.

Hi ,

Today my DBA asked me what is OS Block Size set on out HP Unix . I told I do not have any idea but showed him that filesystem block size (fstyp -v ) is set as 8KB .

Is there any thing called OS block size ?

Plz reply , thanks in advance .

Regards,
BL.



Good things Just Got better (Plz,not stolen from advertisement -:) )
6 REPLIES 6
RAC_1
Honored Contributor

Re: OS block Size.

BAIJU,
Baiju LAL

There is nothing as OS block size. All that is there is FS block size.

Which you can check as follows.
fstyp -v
df -g /dev/vgxx/lvolx


There is no substitute to HARDWORK
Marcel Boogert_1
Trusted Contributor

Re: OS block Size.

hi there,

You can try this to get your os block size:

fstyp -v /dev/vg00/lvol1 | grep f_bsize

Regards, MB.
Steven E. Protter
Exalted Contributor

Re: OS block Size.

Block size when setting up a Volume Group has according to prior posts little or no impact on database performance.

Filesystem options can.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: OS block Size.

Tell your DBA that it is 8K. The reality is that HP-UX adjusts the actual I/O size according to a number of parameters. The basic blocksize on a disk (NOT a filesystem) is 512 bytes but this number is of no use to the DBA. In the old days, some Unices would run more efficiently with a specific blocksize for I/O but all of that goes out the window when you talk to arrays that hide the real disks and cache large amounts of I/O. The kernel recognizes this and looks for ways to concatenate a series of sequential I/Os, thus initiating fewer I/O's to the storage device.


Bill Hassell, sysadmin
Raj D.
Honored Contributor

Re: OS block Size.

Hi Lalb,

Hope the DBA might be interested knowing the disk block size , that set in the filesystem and can be used while accessing data from the FS :

check :
# fstyp -v /dev/vgxx/lvolx | grep f_bsize
and divide by 1024 , comes to KB .

Usually its 8192/1024= 8KB.

Cheers ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
baiju_3
Esteemed Contributor

Re: OS block Size.

Tnanks.
Good things Just Got better (Plz,not stolen from advertisement -:) )