Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: Performance impact of full disk encryption?

  1. #1
    Join Date
    Jan 2009
    Beans
    244
    Distro
    Ubuntu 9.10 Karmic Koala

    Performance impact of full disk encryption?

    How much would using full disk encryption of varying types effect the performance of a hard drive? IE, the time it takes to read/write data and to load programs.

    What about CPU usage?

  2. #2
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: Performance impact of full disk encryption?

    I can't give you any benchmarks or anything, but from using it it seems quite responsive with a good disk, but it did have an issue of going out to lunch for about 5 seconds or more every now again. I found this a bit annoying, but nothing I couldn't live with.

    I keep a second drive with full disk encryption that I rsync when I go on the road. It does provide some peace of mind.

  3. #3
    Join Date
    Jan 2009
    Beans
    244
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Performance impact of full disk encryption?

    I've heard from two friends that it's barely noticeable. but have read on various websites that it's very noticeable.

    Does it have any effect (besides generally being quicker) if you use it with RAID0?

  4. #4
    Join Date
    Feb 2006
    Beans
    457

    Re: Performance impact of full disk encryption?

    blueshiftoverwatch,
    If full disk encryption is a must have then any question of a performance hit is not relevant but if the full disk encryption is a nice to have then performance might be an issue. If you do not need all the benefits offered by full disk encryption then encrypting just the data you consider sensitive might give you the best of both worlds.

  5. #5
    Join Date
    Jan 2008
    Location
    USA
    Beans
    971
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Performance impact of full disk encryption?

    It depends on which cipher is being used. The default is AES-256, which is pretty fast since it was written in assembler. Serpent will be a little slower.

    The benchmarks I have seen (Phoronix, etc.) say that AES-256 gives about a 5% performance hit. Not bad at all.

  6. #6
    Join Date
    Jan 2009
    Beans
    244
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Performance impact of full disk encryption?

    Quote Originally Posted by rookcifer View Post
    The benchmarks I have seen (Phoronix, etc.) say that AES-256 gives about a 5% performance hit. Not bad at all.
    That doesn't sound too bad.

    What encryption application would you recommend using? A friend who's really into security said that he's using Fedora over Ubuntu because it gives you the option to encrypt your entire disk by default. Because when you have to set it up after the OS is already installed it's a huge pain.
    Last edited by blueshiftoverwatch; November 23rd, 2009 at 02:25 AM.

  7. #7
    Join Date
    May 2007
    Beans
    880
    Distro
    Ubuntu Development Release

    Re: Performance impact of full disk encryption?

    Quote Originally Posted by blueshiftoverwatch View Post
    That doesn't sound too bad.

    What encryption application would you recommend using? A friend who's really into security said that he's using Fedora over Ubuntu because it gives you the option to encrypt your entire disk by default. But when you have to set it up after the OS is already installed it's a huge pain.
    Full-disk encryption is easy with Ubuntu if you use the Alternate CD installer. I just did it this afternoon and it takes maybe 60 seconds longer than a regular installation. I've never noticed any performance hit with LUKS full-disk encryption on any relatively new computer, and personally I think it's a bit more stable than home directory (+swap) encryption.
    ~~~
    I liked this old blog post by Aysiu: The Linux community's mixed messages

  8. #8
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Performance impact of full disk encryption?

    Howdy,

    The performance hit is negligible. While compiling a kernel I have measured it to be about 3% slower with full encryption. So if you want to recover that little penalty, simply change from Ext3 to JFS or XFS.

  9. #9
    Join Date
    Jan 2009
    Beans
    244
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Performance impact of full disk encryption?

    Quote Originally Posted by HermanAB View Post
    The performance hit is negligible. While compiling a kernel I have measured it to be about 3% slower with full encryption. So if you want to recover that little penalty, simply change from Ext3 to JFS or XFS.
    Or Ext4 if I wanted to live dangerously. From what I've read Ext3 and 4 are designed as good general purpose FS's while JFS and XFS are specifically designed for handling large files quickly, at the expensive of handling smaller files quickly.

  10. #10
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,907
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Performance impact of full disk encryption?

    Quote Originally Posted by blueshiftoverwatch View Post
    Or Ext4 if I wanted to live dangerously.
    Ext4 is stable now. And fast as hell. I use it on my fully encrypted disks and if I wouldn't know that the disks are encrypted I wouldn't be able to notice anything.

    Quote Originally Posted by blueshiftoverwatch View Post
    JFS and XFS are specifically designed for handling large files quickly
    Yes. But XFS can have ugly side effects, e.g. on certain systems and with certain disks it doesn't take sudden power failures lightly. On a bad day when and if XFS crashes (e.g. sudden power failure) whatever file happened to be open at that time may end up being overwritten with binary 0's ... result: empty files.

    Imagine this: You're watching a movie. These days that would be a ~700 MB *.avi file of some sorts. And suddenly there's a power failure ... bammmm, everything turns dark. The lights come back on, you boot your computer again with the intent to continue the movie ... only to find an empty file now.

    This has happened to me. And to others, e.g. here:

    "XFS Destroys Files"
    http://ubuntuforums.org/showthread.php?t=1025412

    I used to have XFS on my servers ... but since Ext4 is out I've been switching my systems over to Ext4. So far it has survived all crashes, e.g. we intentionally unplugged a running server from power just to see if Ext4 would lose any data ... So far everything seems OK. The nice thing about Ext4 seems to be that it is reliable as Ext3 but performs as well and fast as XFS.

    I personally would not recommend to use XFS on a system that has no UPS. If sudden power failures are an issue then you risk losing files with XFS. And with full-disk encryption this only gets worse.

    So if you want known reliability: Use Ext3. If you trust the kernel developers and their promises that Ext4 is stable now: Use Ext4. As I said: It's really really fast and I have not experienced any weird issues with Ext4 so far.

    Also the support forums seem to be silent regarding Ext4 troubles? I'd assume that if there were any obvious problems we'd see far more postings and complaints in the support sections ... ?

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •