title: gz file needs a huge amount of disk space to extract
body: <p>I downloaded a compressed file in gz format of 4.5 GB with uncompressed file size of 15.7 GB. </p>
  
  <p>When I extracted the file in Ubuntu 14.04 (using the archive manager), I got a message related to insufficient disk space. </p>
  
  <p>However, after inspection I had more than 40 GB available.</p>
  
  <p>Previous attempts to extract this file failed because apparently I didn't have enough disk space, but I was surprised by how much extra disk space I needed to finish the extraction.</p>
  
  <p>I expected that some extra amount of disk space is needed to allow for some temporary files, but so much extra disk space seems a bit excessive.</p>
  
  <p>Is this the expected behavior? The same happened in an EC2 instance with Ubuntu Server 14.04 using gzip -d file.gz.</p>