|
|
#1 |
|
Prospect
Join Date: May 2012
Posts: 17
|
Disk image band files
Disk Images uses 50mb band-files. If i write 1mb file to dmg, does it actually write entire 50mb file? I ask this because SSD-disks can write limited times and i consider moving some of my data out of dmg to limit writes.
|
|
|
|
|
|
#2 |
|
Hall of Famer
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,806
|
I think Apple sparse disk image files are 8MB "bands" so maybe use that.
|
|
|
|
|
|
#3 |
|
League Commissioner
Join Date: Jan 2002
Posts: 7,942
|
50mb (50MB)? Do you have a source for that particular value? I don't think I've ever seen any info about 'banding', except for sparse image files.
|
|
|
|
|
|
#4 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Jan 2002
Posts: 2,930
|
You will probably never wear out your SSD: http://www.anandtech.com/show/2829/6 |
|||||||||||||||||||||||
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Prospect
Join Date: May 2012
Posts: 17
|
I used some utility in my Mac and it showed that my recently created dmg had 50mb bands. It might be sparse image file. So if i write 1mb file to dmg, does it actually write entire 50mb file? Thanks |
|||||||||||||||||||||||
|
|
|
|
|
#6 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Jan 2002
Posts: 2,930
|
Sparce BUNDLES are banded. It's easy to see how large the bands are...just open the bundle in Finder and check. I have a Sparse Bundle that's 3.87GB and it's divided into 463 bands of 8MB each. I also have a small Sparse Bundle of 102MB and it's also divided into bands of 8MB (13 of them). |
|||||||||||||||||||||||
|
|
|
|
|
#7 | |||||||||||||||||||
|
Hall of Famer
Join Date: Jan 2002
Posts: 2,930
|
It's 8MB bands by default. I found the reference in the hdiutil man page:
|
|||||||||||||||||||
|
|
|
|
|
#8 | |||||||||||||||||||||||
|
League Commissioner
Join Date: Sep 2003
Location: Tokyo
Posts: 6,045
|
It will write as much as it needs - if your addition crosses a band boundary by a single byte then another band gets created. The extra space won't necessarily get written to, but it will be allocated. |
|||||||||||||||||||||||
|
|
|
|
|
#9 |
|
MVP
Join Date: May 2004
Posts: 2,012
|
To add a bit to this, I recently ran a batch of tests that seemed to indicate that SparseBundles are pretty intelligent about what data gets written. While I haven't written anything up, the basics are that I created bundles with varying sizes of bands and then wrote to those over a network. They pretty much all had the same performance, so I can see only two advantages to using different band sizes.
1) Smaller bands will provide more opportunity for reclaiming old space with "diskutil compact" 2) Larger bands will minimize the number of bands required to represent a volume. This could be important if you try to fill a 1TB bundle using 1MB bands and the system has trouble reading the bands directory.
__________________
i am jack's amusing sig file |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|