16

We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers.

kitsune
  • 11,098
  • 13
  • 54
  • 77

2 Answers2

14

Is it possible that you are experiencing cache miss? That is, compressed content is sometimes cached compressed but switching compression schemes would (or at least should) invalidate that cache causing dramatically increased cpu utilization. Did you try switching it back?

Hafthor
  • 15,081
  • 9
  • 54
  • 62
7

gzip is, basically, deflate with some additional headers. So there should not be a significant performance hit. Now, maybe your deflate tool is just more efficient than your gzip tool. Are you using the same tool for both compressions or two different ones?

Luke Girvin
  • 12,672
  • 8
  • 57
  • 79
Gorpik
  • 10,360
  • 3
  • 32
  • 53