We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers.
Asked
Active
Viewed 5,061 times
18
-
1Well, gzip uses deflate, so I'm not sure you *should* see any noticeable difference. – Lasse V. Karlsen Oct 17 '08 at 07:19
-
1that's what I thought, that's why I'm surprised – kitsune Oct 17 '08 at 07:24
2 Answers
15
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
- 16,358
- 9
- 56
- 65
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
- 13,221
- 9
- 64
- 84

Gorpik
- 10,940
- 4
- 36
- 56