Project

General

Profile

Actions

Feature #5183

closed

[PATCH] openssl: add OP_NO_COMPRESSION constant

Added by normalperson (Eric Wong) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
[ruby-core:38911]

Description

Disabling OpenSSL compression can save memory since zlib buffers
enforce a rather large per-connection overhead. For
memory-constrained systems that have OpenSSL built against zlib,
there can be a drastic reduction in memory usage with 1000 open
connections:

Compression enabled
VmRSS: 596132 kB
Compression disabled
VmRSS: 21924 kB

The above was generated with openssl 1.0.0.d-3 on Debian testing
(x86_64). The NOCOMP environment variable controls compression
in the attached script.

If you prefer: git pull git://bogomips.org/ruby openssl-no-compression


Files

0001-openssl-add-OP_NO_COMPRESSION-constant.patch (3.29 KB) 0001-openssl-add-OP_NO_COMPRESSION-constant.patch normalperson (Eric Wong), 08/11/2011 05:52 AM
ossl-memory-usage-no-comp.rb (1.06 KB) ossl-memory-usage-no-comp.rb script to test memory usage normalperson (Eric Wong), 08/11/2011 05:52 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0