- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to create dummy IGB file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2013 05:16 AM
05-01-2013 05:16 AM
How to create dummy IGB file
Hi All,
We are sitting on HPUX Itanium and we are facing some disk performance issue and exploring a way to create 1G dummy file on different disks and compare the timings. Thanks in advance.
Regards
Alok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2013 06:40 AM
05-01-2013 06:40 AM
Re: How to create dummy IGB file
The command you want is 'prealloc'
# prealloc /some/dir/afile 1000000000
Will create a 1 billion byte file.
- Tags:
- prealloc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2013 04:19 AM
05-02-2013 04:19 AM
Re: How to create dummy IGB file
Thanks Patric for the help. Will this command create 1G dummy file along with the timings.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2013 06:25 AM
05-02-2013 06:25 AM
Re: How to create dummy IGB file
>>Will this command create 1G dummy file along with the timings.
I don't understand your question. What do you mean "...along with the timings."?
If you create a file with prealloc it will look something like:
# prealloc afile 100000000
# ll afile
-rw-r--r-- 1 root sys 100000000 May 2 09:23 afile
If you want to know how long it took to create the file you can do:
# timex prealloc afile 100000000
real 3.25
user 0.01
sys 0.69
# ll afile
-rw-r--r-- 1 root sys 100000000 May 2 09:25 afile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2013 10:45 AM - edited 05-03-2013 06:46 PM
05-03-2013 10:45 AM - edited 05-03-2013 06:46 PM
Re: How to create dummy IGB file
prealloc has nothing to do with performance measurements. It simply creates a file with all zeros of the size you requested.
If you want to measure simple disk read performance, use dd and specify the raw device file.
Here's an example to read a raw disk for 500MBytes and record the length of time that t took:
MYDISK=/dev/rdsk/c1t0d0 timex dd if=$MYDISK of=/dev/null bs=1024k count=200
200+0 records in
200+0 records out
real 5.46
user 0.00
sys 0.04
Then take the record count (count=200) and divide by the "real" seconds (wall clock time) to arrive at the MB per second:
200/5.46=37.03 MBytes/sec
Now for all the caveats...
This is a serial read, no seeking except track to track. If this is a disk array, then it is more of a measure of the RAID method, read-ahead settings and cache size, rather than sustainable read performance. And unless the disk is quiet (no other I/O from other processes or hosts), then it is a shared performance value and would have to be repeated under different disk loads. Note that count=200 is a low number (200 MBytes)...use it to get started. Then increase it to count=1000 (1 GByte) to get a more average value.
I have attached a diskperf script that simplifies this task immensely.
Usage:
diskperf.sh <MB> <disk> [ <disk> ... ]
For example,
# diskperf.sh 200 c1t0d0
20130503.133202 /dev/rdsk/c1t0d0 (vg00): 200 MB in 5.4 secs (200 recs @ 1024 KB) = 37.0MB/sec
Or test several disks with one command:
# diskperf.sh 200 c1t0d0 c8t0d0 c17t0d0
20130503.134307 /dev/rdsk/c1t0d0 (vg00): 200 MB in 5.4 secs (200 recs @ 1024 KB) = 37.0MB/sec
20130503.134311 /dev/rdsk/c8t0d0 (vgbig): 200 MB in 3.8 secs (200 recs @ 1024 KB) = 52.6MB/sec
20130503.134313 /dev/rdsk/c17t0d0 (vgstore): 200 MB in 2.3 secs (200 recs @ 1024 KB) = 86.9MB/sec
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2013 12:16 PM - edited 05-03-2013 07:32 PM
05-03-2013 12:16 PM - edited 05-03-2013 07:32 PM
Re: How to create dummy 1 GB file?
>bs=200
I assume you meant count=200. You can correct them by using Post Options > Edit Reply.
(And also fix the subject. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2013 06:46 PM
05-03-2013 06:46 PM
Re: How to create dummy 1 GB file
Thanks Dennis. It is indeed count=200 and count=1000
Bill Hassell, sysadmin