Project

General

Profile

Actions

Bug #13783

closed

Memory allocation / GC does not free unused memory

Added by opti (Andreas Opti) over 6 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:82239]

Description

100.times {x=[]; 1000000.times {|i| x.push [i,i*3]} }
100.times should use (more or less) the same memory as 3.times,
also GC.start after x=[] doesn't help!
Problem: system begins swapping if doing that many times (using large data arrays running for longer times)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0