classification
Title: Backport of http://bugs.python.org/issue11849 to Python 2.7 (Make it more likely for the system allocator to release free()d memory arenas on glibc-based systems).
Type: enhancement Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, bhyolken, python-dev
Priority: normal Keywords: patch

Created on 2014-02-03 00:52 by bhyolken, last changed 2014-02-04 15:20 by python-dev. This issue is now closed.

Files
File name Uploaded Description Edit
memory_fix_updated2.patch bhyolken, 2014-02-04 06:44 review
Messages (5)
msg210063 - (view) Author: Benjamin Yolken (bhyolken) Date: 2014-02-03 00:52
We have found that http://bugs.python.org/issue11849 affects a number of our Python 2.7 systems in production. I took the changes in http://hg.python.org/cpython/rev/f8a697bc3ca8 and backported them to the head of the python 2.7 cpython hg branch. I have verified that these changes fix the problem and that all tests pass.

Please see the attached patch.
msg210071 - (view) Author: Benjamin Yolken (bhyolken) Date: 2014-02-03 01:27
Attaching an updated version of the patch generated with autoconf 2.69 instead of 2.68.
msg210169 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-02-03 23:32
It seems you actually want the second patch on that issue not the first.
msg210179 - (view) Author: Benjamin Yolken (bhyolken) Date: 2014-02-04 06:44
Ahh, didn't see the "better resolution" patch later in the issue. I've updated the Python 2.7 patch here accordingly.
msg210241 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-02-04 15:20
New changeset 4e43e5b3f7fc by Benjamin Peterson in branch '2.7':
mmap obmalloc arenas so that they may be immediately returned to the system when unused (closes #20494)
http://hg.python.org/cpython/rev/4e43e5b3f7fc
History
Date User Action Args
2014-02-04 15:20:36python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg210241

resolution: fixed
stage: resolved
2014-02-04 06:44:44bhyolkensetfiles: - memory_fix_updated.patch
2014-02-04 06:44:19bhyolkensetfiles: + memory_fix_updated2.patch

messages: + msg210179
2014-02-04 00:13:13bhyolkensetfiles: - memory_fix.patch
2014-02-03 23:32:04benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg210169
2014-02-03 01:27:33bhyolkensetfiles: + memory_fix_updated.patch

messages: + msg210071
2014-02-03 00:52:49bhyolkencreate