Project

General

Profile

Actions

Feature #11170

closed

[PATCH] use ivar indices for generic ivars

Added by normalperson (Eric Wong) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:69323]

Description

This reduces memory overhead of ivars for common types such as
T_DATA the same way T_OBJECT does it.

For 9992 accepted clients on an OpenSSL server, this reduces RSS memory
from 77160K to 69248K on x86-64 with the attached ossl.rb script.
Connecting client process was reduced from 246312K to 230724K RSS.

OpenSSL 1.0.1e-2+deb7u16 on Debian 7


Files

ivar-reduce-combined.patch (17.2 KB) ivar-reduce-combined.patch normalperson (Eric Wong), 05/23/2015 01:34 AM
ossl_11170.rb (1.74 KB) ossl_11170.rb normalperson (Eric Wong), 05/23/2015 01:35 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0