Operating System - HP-UX
1834395 Members
1996 Online
110066 Solutions
New Discussion

Re: Disk I/O performance.

 
SOLVED
Go to solution

Disk I/O performance.

All. I seem to recall a way of generating random data (such as /dev/random_data) that could be used as input for a 'dd' test. (I want to test throughpuot to my array.)

ie. dd if=/dev/random_data of=/home/array/test bs=512 count=1024

Any help will be appreciated.
5 REPLIES 5
RAC_1
Honored Contributor

Re: Disk I/O performance.

dd if="some_file_of_known_size" of=/home/arry/file bs=1k

Will also do what you want.
There is no substitute to HARDWORK
Bill Hassell
Honored Contributor

Re: Disk I/O performance.

Actually, I don't think the content of the data stream will have any effect at all. Arrays will improve performance by buffering writes and reads but don't look at the data. Similarly, using dd will generate a series of serial I/O operations. The first run with bs=512 and count=1024 will take place fairly quickly but all subsequent runs will be significantly faster as the data will be bufferred by HP-UX. Also, the bs=512 is extremely small and for a lot of data (dozens of megabytes), you will see a significantly faster performance with bs=32k or perhaps bs=128k.


Bill Hassell, sysadmin

Re: Disk I/O performance.

I should have been more clear with my initial question. I do not want to read my input data from disk. (It would skew my performance results.) Just like you can write to /dev/null to dump output, I want to read input from a source that is not a disk.
RAC_1
Honored Contributor
Solution

Re: Disk I/O performance.

use /dev/null , /dev/zero
/dev/random
There is no substitute to HARDWORK

Re: Disk I/O performance.

The answer I was looking for --

/dev/zero


Thanks