- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tuning dd blocksize
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
Forums
Discussions
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
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
07-22-2002 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:25 AM
07-22-2002 03:25 AM
Re: Tuning dd blocksize
I'm copying lvols from one VG to another on a FC60 array. The lvols are 2 GB in size. I tried this with a 1024K block size and it took a lot longer than I would have hoped. Does anybody have any suggestions/stats/benchmarks that might guide me to an optimum copy?
Thanks,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:31 AM
07-22-2002 03:31 AM
Re: Tuning dd blocksize
The text here is blank, so I assume you just want to tune dd blocksize?
I usually only use 64kB. However, I did some work on this a while ago & found that you get very little performance gain above about 512kB-1MB from & to one disk. It really depends on what you want to do.
If you have RAID 0 then I would use the whole stripe width (say 12 disks with 64kB width ==> 768kB).
If you have a single disk with a VxFS file system on it 64kB is fine, but theoretically 8kB should be optimum (block size).
If you have RAID5, again I would use whole stripe width (12 disks with 64kB ==> 704kB)
If you are doing a raw-raw copy of volume groups I would stick to 64kB, or if they are RAIDed the whole stripe.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:34 AM
07-22-2002 03:34 AM
Re: Tuning dd blocksize
Just three suggestions:
1) To specify raw devices in if and of parameters
2) You can try with a bigger bs. I usually do it with bs=4194304 (the size of my PV's PE)
3) Do not specify ibs and obs = Poor performance
Best regards
Juan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:34 AM
07-22-2002 03:34 AM
Re: Tuning dd blocksize
Thanks, I should have checked that. I'm actually copying Informix "chunks" which are symbolic links to the raw logical volume, except when some sleepy, hungover SA comes in on a Sunday and rushes the creation of same. In effect, I'm copying from the raw lvol to the cooked lvol. The destination is also set up as RAID 5 and has a failed drive in it, so that's probably not helping matters, either.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:36 AM
07-22-2002 03:36 AM
Re: Tuning dd blocksize
Stripe size/PE size - I'll try that - thanks.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:38 AM
07-22-2002 03:38 AM
Re: Tuning dd blocksize
1 - what is your RAID level?
2 - what is the segment size of the LUNs/disks(amdsp -l
3 - use /dev/vgxx/rlvol for dd
4 - I use (as I said before) 64kB if I can't be bother to think about it.
5 - You have caching on fc60, this will probably interfere with copy as it will be continually being flushed. I do not know if you can turn this off though. ("ammgr -T A:100
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:44 AM
07-22-2002 03:44 AM
Re: Tuning dd blocksize
RAID level on the source is 0/1. Destination is 5. I'll be doing further testing to see if I can improve this. We're coming up on 24 hours to copy 140GB - not what I was hoping for. :^(
Points forthcoming,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:05 AM
07-22-2002 04:05 AM
Re: Tuning dd blocksize
Segement size is 4 on the source and 16 on the destination.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:10 AM
07-22-2002 04:10 AM
Re: Tuning dd blocksize
Weve done lots of dd copies before over the years and with all the stuff weve done ive found 64k to be the best blocksize. But to get the best copy times always kick off multiple dd's at the same time (background them) - this also enchances overall copying time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:15 AM
07-22-2002 04:15 AM
Re: Tuning dd blocksize
We're doing 10 at a time, then waiting for those before the next batch. Too many? Too few?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:55 AM
07-22-2002 06:55 AM
Re: Tuning dd blocksize
Not sure this will be of much help for you but we are constantly creating new copies of databases for various things. Just using cooked to cooked I am about to copy about 300GB in about 2 hours. Not using dd just plain old cp's with a wrapper script. I have it set to spawn 12 cp's in the background and go to sleep until 1 completes and it will then spawn another. Since we have so many datafiles to copy this works out quite well for us. If you are interested I can forward you the scripts that I use to do this.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:57 AM
07-22-2002 06:57 AM
Re: Tuning dd blocksize
10 at a time is fine - unless your server can cope with more. We used to kick off 20-30 at a time - but this was on a server with about 8 I/O controllers and it took that many to max it out. After 20-30 we wouldnt get any speed improvement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 07:03 AM
07-22-2002 07:03 AM
Re: Tuning dd blocksize
I'm not sure your approach would apply, either, but I'd love to take a look at it. You can attach here if you can (so everyone can share) or you can email me at prandall@holstein.com. Thanks.
Stefan,
Thanks for the comparison. I think 10 is probably about as high as we can go. We've got two fibre channels compounded by the Brocade switch to give us four paths but I don't think they all get used. I'll be doing some more testing once I get the failed drive replaced - I think that's really holding things up.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 07:47 AM
07-22-2002 07:47 AM
Re: Tuning dd blocksize
I attached the script. It uses a control file that lists the file name, FQPath to Source and FQPath to Destination. A bit of modifications to that control file and changes to the script I am thinking you could use this for your dd copies.
Below is the a piece of the control file just to give you an idea of what it looks like.
fact1_ts01.dbf|/u/AIMTEST/dta1/fact1_ts01.dbf|/u/AIMBNCH/dta1/fact1_ts01.dbf
fact1_ts02.dbf|/u/AIMTEST/dta1/fact1_ts02.dbf|/u/AIMBNCH/dta1/fact1_ts02.dbf
fact1_ts03.dbf|/u/AIMTEST/dta1/fact1_ts03.dbf|/u/AIMBNCH/dta1/fact1_ts03.dbf
fact1_ts04.dbf|/u/AIMTEST/dta1/fact1_ts04.dbf|/u/AIMBNCH/dta1/fact1_ts04.dbf
fact1_ts05.dbf|/u/AIMTEST/dta1/fact1_ts05.dbf|/u/AIMBNCH/dta1/fact1_ts05.dbf
fact1_ts06.dbf|/u/AIMTEST/dta1/fact1_ts06.dbf|/u/AIMBNCH/dta1/fact1_ts06.dbf
fact1_ts07.dbf|/u/AIMTEST/dta1/fact1_ts07.dbf|/u/AIMBNCH/dta1/fact1_ts07.dbf
fact1_ts08.dbf|/u/AIMTEST/dta1/fact1_ts08.dbf|/u/AIMBNCH/dta1/fact1_ts08.dbf
fact1_ts09.dbf|/u/AIMTEST/dta1/fact1_ts09.dbf|/u/AIMBNCH/dta1/fact1_ts09.dbf
fact1_ts10.dbf|/u/AIMTEST/dta1/fact1_ts10.dbf|/u/AIMBNCH/dta1/fact1_ts10.dbf
fact1_ts11.dbf|/u/AIMTEST/dta1/fact1_ts11.dbf|/u/AIMBNCH/dta1/fact1_ts11.dbf
fact1_ts12.dbf|/u/AIMTEST/dta1/fact1_ts12.dbf|/u/AIMBNCH/dta1/fact1_ts12.dbf
Hope it is at least somewhat useful.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 07:55 AM
07-22-2002 07:55 AM
Re: Tuning dd blocksize
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 10:26 AM
07-22-2002 10:26 AM
Re: Tuning dd blocksize
Thanks to all,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 02:22 AM
07-23-2002 02:22 AM
Re: Tuning dd blocksize
Thanks again, all.
Pete
Pete