How to improve HFS+/Mac OS X write performance with small files?

3

I'm the happy owner of a MacBook Air 2011 model with a nice, speedy SSD.

Usually, I'm really happy about the snappiness of this thing, especially because of this SSD.

Right now, I'm untarring a .tar.bz2 archive containing a little over 300k files that are all shy of 1k in size.

The performance is abysmal. The unpacking started out quick, then started slowing down. Right now, it's unpacking files at a rate of about 5 or 6 per second, the fans are blazing, and the computer is super-unresponsive (Stack Exchange front page took about 30s to load).

This seems really strange to me, and the only culprits I can think of are either HFS+ or FileVault (this is an encrypted disk).

But I don't know how to fix it, if at all possible. This is not just going to take forever, it'll also drain the battery in no time.

Are there any fixes to this?

Thanks :)

UPDATE: After about five minutes, system responsiveness is so bad that display updates take seconds. The same file on my Ubuntu server takes 7 seconds to untar. I'm half an hour in and less than 1/10th of the amount of files are unpacked. This is unreal.

DanielSmedegaardBuus

Posted 2013-01-23T16:32:24.477

Reputation: 645

Have you tried using other unarchiving utilities? Like bzip2 or The Unarchiver if you used Archive Utility. – Lri – 2013-01-23T16:48:20.780

Thanks, Lauri, I was about to do exactly that (just a zip file) when OS X appeared with "Your startup disk is getting full" ;) Sorry for the bother! – DanielSmedegaardBuus – 2013-01-23T17:02:24.747

I'm betting the sluggishness of the UI was because OS X was trimming the swap file to make room for the new files I was writing. – DanielSmedegaardBuus – 2013-01-23T17:03:23.137

Answers

1

Hehe, my bad! It was a close-to-full partition. I emptied the trash, and speeds were blazing again :)

Sorry.

DanielSmedegaardBuus

Posted 2013-01-23T16:32:24.477

Reputation: 645