- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Raw disk write performance?
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
Forums
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
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
10-19-2006 06:27 AM
10-19-2006 06:27 AM
Raw disk write performance?
I've created a file the same size of the LUNs (13.5GB each) and use this command to write to the disk:
dd if=bigfile of=/dev/rdsk/c4t0d0 bs=4096k
Experimented with the blocksize from 1024k to 20480k, 4096k seems to be the fastest. Takes about 10-11 minutes.
What is odd that I can run a cp on the filesystem and create another copy of the file in just over 5 minutes. That doesn't seem right -- adding LVM and filesystem overhead should slow things down, not make them run 2x faster.
The system is an L2000 with two 1G HBAs, one connected to the old HDS and one connected to our new SAN. The big file is on a LUN from the new SAN.
Yes, using "/dev/zero" as an input file runs faster, but that still doesn't explain the discrepancy between a file copy and the dump to a raw device.
I'm sure I'm missing something here. Might not be a critical thing, (since I could just use /dev/zero) but I sure am curious, because I think it might be an opportunity to learn something useful about disk access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 07:11 AM
10-19-2006 07:11 AM
Re: Raw disk write performance?
apples-to-apples? Are you copying a 13Gb file? Is the source file sparse? A sparse source file will appear to copy extremely fast because the missing records will not be read but created much like /dev/zero. Check the source file with du and ll as in:
du -k bigfile
ll bigfile
(du will be in Kbytes) If ll is significantly larger than du (du only counts occupied blocks) then the bigfile is sparse.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 07:21 AM
10-19-2006 07:21 AM
Re: Raw disk write performance?
4-miata:/test-svc> du -k bigfile
14226488 bigfile
It's 13G of:
"All work and no play makes Homer something something..."
When I do the filesystem copy, I can't use "cp" since it doesn't like the big file and errors out. I use cat:
cat bigfile > bigfile2
While it's running, I can run an "ls -l" and see the filesize growing at about 50MB/sec.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 08:19 AM
10-19-2006 08:19 AM
Re: Raw disk write performance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 08:47 AM
10-19-2006 08:47 AM
Re: Raw disk write performance?
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2006 08:09 AM
10-20-2006 08:09 AM
Re: Raw disk write performance?
dd if=/dev/urandom of=test bs=4096k count=1
Creates a 256 byte file. Using the numbers to create an OPEN-E sized file (14226480 Kbytes) created a file 1/16th the proper size. Something to do with draining the entropy pool, or is /dev/urandom the more psuedo-random one?
Ran out of time today to time and test piping /dev/urandom directly to the raw disk file.
I'll get some new performance numbers on monday. Thanks for the input!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2006 08:16 AM
10-20-2006 08:16 AM
Re: Raw disk write performance?
dd if=/dev/urandom ibs=256 obs=256k of=/dev/rdsk/c1t5d0