
Hi there, I seem to be running into a problem with freeing memory. Under OS X all is well, but under Linux there seems to be a problem in the case of linked data structures. I have attached a python program which demonstrates the problem. The output of the script for both linux and OS X are below. Thanks very much in advance, and for the amazing work on PyPy. OS X: 2.7.8 (857f34cd4254, Oct 14 2014, 22:01:17) [PyPy 2.5.0-alpha0 with GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.51)] Darwin 14.1.0 ('', '', '') initial 20 MB 0 558 MB 0 30 MB 1 558 MB 1 31 MB 2 558 MB 2 32 MB Linux: 2.7.8 (dfffd5d7cc7e, Feb 08 2015, 14:59:48) [PyPy 2.5.0 with GCC 4.8.2] Linux 3.13.0-44-generic ('debian', 'jessie/sid', '') initial 82 MB 0 626 MB 0 626 MB 1 627 MB 1 627 MB 2 627 MB 2 627 MB

Hi Christian, On 15 February 2015 at 21:36, Christian Walder <walderchristian@gmail.com> wrote:
I seem to be running into a problem with freeing memory.
The problem you have, as I understand it, is that the OS-visible size of the process goes up but not down. This is expected. I don't really know why OS/X versus Linux makes any difference. Someone should collect a few links to existing answers into a FAQ entry... A bientôt, Armin

Thanks for the quick reply. You're right. When I tried to boil it down to a minimal example, I incorrectly attributed my original problem to linked structures. This is because if I create a large tuple instead of a linked structure in my example, then the OS visible size does go down and up in both Linux and OS/X. Thanks again, Christian On 17 February 2015 at 13:10, Armin Rigo <arigo@tunes.org> wrote:

Hi Christian, On 15 February 2015 at 21:36, Christian Walder <walderchristian@gmail.com> wrote:
I seem to be running into a problem with freeing memory.
The problem you have, as I understand it, is that the OS-visible size of the process goes up but not down. This is expected. I don't really know why OS/X versus Linux makes any difference. Someone should collect a few links to existing answers into a FAQ entry... A bientôt, Armin

Thanks for the quick reply. You're right. When I tried to boil it down to a minimal example, I incorrectly attributed my original problem to linked structures. This is because if I create a large tuple instead of a linked structure in my example, then the OS visible size does go down and up in both Linux and OS/X. Thanks again, Christian On 17 February 2015 at 13:10, Armin Rigo <arigo@tunes.org> wrote:
participants (2)
-
Armin Rigo
-
Christian Walder