FileVault Performance

With Lion sporting a more usable version of FileVault I was curious about its performance impact. I'd enabled FileVault on my personal machine and subjectively felt a performance impact, but I needed to quantify it. I put together a number of tests to do just that.

For all of these tests my test platform is a 15-inch MacBook Pro with a 2.2GHz Sandy Bridge Core i7 from early 2011 with an Apple branded 256GB SSD. In these tests I was primarily concerned with two things: how performance is affected, and what sort of extra load FileVault encryption places on the CPU.

Our first test is a simple file copy. I've got a directory of 2200MB worth of RAW files from a Nikon D700. I copy the folder from the SSD to the same SSD and report performance in MB/s:

FileVault Performance - 2200MB File Copy (MB/s)

With FileVault enabled we take a 24% performance hit, hardly insignificant. Average CPU utilization during the file transfer actually dropped with FileVault enabled from 8.5% to 4.5%. I suspect the reason for the drop was the slower overall transfer rate. It would appear that FileVault, at least on a quad-core Sandy Bridge CPU has absolutely no overhead here. Given that Apple near-universally uses AES for symmetrical encryption, it's reasonable to assume here that FileVault is taking advantage of the AES-NI instructions on Intel's Core-i series of processors.

Our next test tested one of Lion's new features: threaded conversations in Mail. We timed how long it took to launch Mail and open a single email thread with 42 replies. If you've used OS X Mail in the past you'll know that CPU utilization goes insane if you're working on a thread with dozens of replies. The same is definitely true for threaded conversations in Lion.

FileVault Performance - Open 42 Reply Email Thread - Time in Seconds

Thanks to the MacBook Pro's SSD both setups complete this task pretty quickly. There is a penalty associated with FileVault though - around 9% in this case. Peak CPU utilization was similar on both systems, 100% of four threads on the eight thread Core i7.

I grabbed a screenshot of the CPU utilization graph in Activity Monitor during this test for both setups:


CPU Utilization: No Encryption (left) vs. FileVault Enabled (right)

While the two vary slightly, you can see that overall CPU utilization appears to be similar regardless of whether or not encryption is enabled.

Our third test is actually one of our standard OS X CPU benchmarks - we time the import of 203 RAW images into iPhoto. This task is impacted by both CPU and I/O performance:

FileVault Performance - iPhoto Import - Pictures per Minute

Despite the I/O dependency, there's virtually no performance impact to enabling FileVault here.

Our final tests are raw I/O tests using Quickbench. I focused on 4KB and 8KB random read/write since those are the most common transfer sizes for random file access. And for sequential operations I focused on 128KB transfers, again optimizing for common sizes.

FileVault Performance - Quickbench 4KB Random Read (MB/s)

FileVault Performance - Quickbench 4KB Random Write (MB/s)

FileVault Performance - Quickbench 8KB Random Read (MB/s)

FileVault Performance - Quickbench 8KB Random Write (MB/s)

FileVault Performance - Quickbench 128KB Sequential Read (MB/s)

FileVault Performance - Quickbench 128KB Sequential Write (MB/s)

Overall the hit on pure I/O performance is in the 20 - 30% range. It's noticeable but not big enough to outweigh the benefits of full disk encryption. Note that under OS X there's still no way to take advantage of SSD controllers with FDE like the SF-1000/2000 series and the Intel SSD 320.

FileVault Safari, iChat, TextEdit, Preview, QuickTime X
Comments Locked

106 Comments

View All Comments

  • GotThumbs - Wednesday, July 20, 2011 - link

    Apple has recognized the money maker it has with its App Store (Or can we now call this an application store). I'm not a mac user and most likely never will be, but I have to say their business model works very well for squeezing income from every corner of their empire. The IOS app store has been a huge money maker (30% of every purchase adds up quickly) and now Apple is moving the same business model to its computers. Apple does have a tendancey to repackage and sell its products in various versions, but with the same underlying technology (develop once, repackage multiple times). True to form, all the apple fans will swarm around and gladly deposit their coin into the machine.
  • GotThumbs - Wednesday, July 20, 2011 - link

    Realistically, They should give away their OS to invite more users, who will then shop their true money maker....the app store. Kinda like a drug dealer would give the first taste for free. :-)
  • ltcommanderdata - Wednesday, July 20, 2011 - link

    Apple's CFO Peter Oppenheimer has already said they operate the App Store as a break even venture, ie. their 30% cut basically goes directly to operating expenses. Unless you believe their CFO is actually lying to investors at shareholder meetings in which case you should report this and your evidence to the SEC.
  • GotThumbs - Wednesday, July 20, 2011 - link

    $1,634,000,000 in revenue from Other Music Related Products and Services (3)

    (3) Includes sales from the iTunes Store, App Store, and iBookstore in addition to sales of iPod services and Apple-branded and third-party iPod accessories

    Lets not be too naive.
  • ltcommanderdata - Wednesday, July 20, 2011 - link

    The App Store no doubt generates revenue for Apple, but how much profit do they actually make?
  • steven75 - Friday, July 22, 2011 - link

    Please educate yourself. As much as you might think it, yuo aren't smarter than the SEC.
  • GotThumbs - Wednesday, July 20, 2011 - link

    I think ALL investors are looking for profits, and if Apple happens to turn a profit through their iTunes store (whoops), do you really think the investors will be angry about the white lie?
  • Taft12 - Wednesday, July 20, 2011 - link

    Accountants can paint a revenue picture to look any way they want it to. Look no further than "Hollywood Accounting" in the movie industry. Don't take that break even comment at face value.
  • parlour - Monday, July 25, 2011 - link

    I would call up the SEC and tell them about your great insight. If what you are saying is true Apple is in deep, deep trouble.

    In reality it would be stupid for Apple’s CFO to lie about something like that, not worth the trouble at all.
  • Puppies04 - Wednesday, July 20, 2011 - link

    $1,634,000,000 just to break even! Sheesh that is some massive overhead.

Log in

Don't have an account? Sign up now