1847211 Members
12596 Online
110263 Solutions
New Discussion

Re: block size per write

 
Eric Hess
Advisor

block size per write

How can I determine what my block size is per write to disk on the O/S
I didn't do it. He did!
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: block size per write


What are you using to write??

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: block size per write

The size of writes is governed by the application and specifically by the nbytes parameter to the read() system call. This parameter can vary from write() to write(). One of the best ways is to install tusc.
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/

Tusc will allow you to trace system calls and actually see the values passed to the system calls. That will enable you to get an exact answer.

If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: block size per write

Hi Eric,

It really depends on your application. There are two kinds of block sizes - File system block size and the physical disk block size (512 bytes or a sector). Physical disk block size is masked by the File system block size.
I believe you meant IO size.

The IO size is dependent on random, sequential, synchronous and asynchronous, discovered direct etc., Applications like Oracle can give a good picture of it's IO.

One of the major advantages of having VxVM against LVM is that it provides a utility called "vxtrace" that can be used to determine the type and size of IO. Unless you have VxVM or you know how your application writes, it is not possible to determine the IO details.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjeev Kohli_1
Advisor

Re: block size per write

Hi Eric

U can get the filesystem block size by typing the command
fstyp -v /dev/vg##/lvol# .
By this command u will come to know what is the filesystem block size .
Actually in HP-UX allocation is on a random basis depending on the size of data being written on to the disk.

Sanjeev
Sanjeev Kohli