Reply
   
 Slow Aperture Vault updates on sparse disk images on smb shares 
 
 
oli
  #1 (permalink)  
Old 01-10-2007, 12:02 PM
Member

Group: Regulars
Location: Australia


Slow Aperture Vault updates on sparse disk images on smb shares

I have 2 vaults configured in Aperture. One is on a 7200rpm drive in a Firewire 800 enclosure - this one works fine and is very fast to update.

The other is on a sparse image which I mount over a gigE network from a smb share on a Linux server. Network transfers to this server are generally as fast as they could be (25 to 30MB a second from my laptops 5400rpm hard drive).

When I update the vault on the sparse image it takes much longer to update than the one on the firewire drive. Yesterday I shot about 5GB worth of photos and after processing them it took ages (at least an hour) to update the vault on the sparse image. Updating the vault on the FW drive took a few minutes in comparison.

I ran nload to measure bandwidth usage on the Linux server and it was jumping up and down between 3MB/s and no network transfer while the vault was updating...

Any ideas what could cause this to behave so slowly?
oli is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #2 (permalink)  
Old 01-10-2007, 12:12 PM
Not so serious ;)

Group: Administrators
Location: Fukuoka, Japan (originally Canberra)
Blog Entries: 4


I wouldn't bother trying to investigate this, but set up an NFS share on linux instead, and use NFS manager to mount it on your Mac. A lot faster than using a Windows protocol to sync a Mac and Linux box.
__________________
A bunch of stuff for sale here - PCI and graphics cards, mostly.
The question you're about to ask me or post in MacTalk Community is answered in the Forum Rules & FAQ.
As men, however, make little effort to exercise their intellect, or imagine that they possess knowledge before they really learn, the consequence is that they never begin to have knowledge..."
— Origen in De Principiis
Currawong is offline
Profile CardPM
Go to the top of the page
Reply With Quote
oli
  #3 (permalink)  
Old 01-10-2007, 12:27 PM
Member

Group: Regulars
Location: Australia


I'd still have to use a sparse image on the NFS mount then wouldn't I?

I will try this later with a new vault and see how fast it updates.
oli is offline
Profile CardPM
Go to the top of the page
Reply With Quote
oli
  #4 (permalink)  
Old 01-10-2007, 04:30 PM
Member

Group: Regulars
Location: Australia


OK I am pretty sure there is still some problem. I created a single export on the Linux box then used the NFS manager software to mount it. Then I created a single sparse image on that NFS export and mounted it. I just created a new vault on there to test and have started updating it. It is transferring data to the vault at about 0.65MB/s...

I just tested transferring some files in Path Finder from my local hard drive to both the old smb mounted sparse image, and then to the NFS mounted sparse image. In both cases the transfer showed speeds between 500 and 700KB/s.

Transferring to the share where the sparse image is directly (ie, not ONTO the sparse image itself) goes at 20+MB/s.

What could be wrong with my sparse images?
oli is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #5 (permalink)  
Old 01-10-2007, 05:08 PM
Still stuck in 1984

Group: Regulars
Location: Inside your head


They're sparse images that are not working on an original Mac filing system, that's why. Sparse images are annoying to use on Macs at the best of times, and an absolute pain to use on any other filing system, purely because of the way it handles the dynamic allocation of space.

If you add to a .sparse on HFS+, the volume manager can simply tell to add extra blocks to the .sparse as it writes -- the filesystem is geared for that. Try the same trick on a non HFS+ filesystem, and with every block that's written to the .sparse, it has to send the entire block map, wait for the foreign filesystem to translate that, check and allocate the newly-demanded space, send back an okay, then MacOS can send it the data for those blocks, then wait for confirmation which won't hapen until the foreign filesystem has done its own block-allocation check and confirmation.

What you're trying to do is akin to writing a novel in English one sentence at a time, by sending each word to someone who speaks English, Chinese and Dutch, but the only writing medium handy is a clay tablet and stylus

Try and use a normal, fixed size image on your non-HFS filesystem and see how that goes.


Brains
__________________
Tune into Psymbiensis, 24/7 chill music streaming straight to your desktop.
Cornell Univiersity says, "Watching TV shows makes you stupid." Break the addiction, visit White Dot today.
Wi-fi is a health risk, please use sparingly and with caution.
Brains is offline
Profile CardPM
Go to the top of the page
Reply With Quote
oli
  #6 (permalink)  
Old 01-10-2007, 08:57 PM
Member

Group: Regulars
Location: Australia


Thanks for the explanation Brains. I've just tested creating and mounting a standard disk image on the SMB volume and the disk performance is much much faster (it's not slower than writing directly to the SMB share).

Of course the only minor disadvantage in this case is that all the disk space needs to be pre-allocated - but that doesn't matter in my case.

Thanks for your help guys.
oli is offline
Profile CardPM
Go to the top of the page
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
IMPORTING vault back into aperture? zmit Mac OS X & All Software 6 29-03-2008 12:15 AM
Leopard and SMB shares with Symlinks Problems... Remorhaz Mac OS X & All Software 1 03-11-2007 10:20 AM
Resizing disk images. dolbinau Mac OS X & All Software 1 10-09-2007 07:31 AM
Disk images: use Disk Utility or Toast Titanium? icant Mac OS X & All Software 3 11-03-2005 06:34 PM
Slow transfers between my PB and win/linux shares zorblart Mac OS X & All Software 12 21-02-2005 08:17 AM