* [ruby-core:82239] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory
[not found] <redmine.issue-13783.20170804103033@ruby-lang.org>
@ 2017-08-04 10:30 ` inform
2017-08-04 12:10 ` [ruby-core:82240] [Ruby trunk Bug#13783][Feedback] " shyouhei
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: inform @ 2017-08-04 10:30 UTC (permalink / raw
To: ruby-core
Issue #13783 has been reported by opti (Andreas Opti).
----------------------------------------
Bug #13783: Memory allocation / GC does not free unused memory
https://bugs.ruby-lang.org/issues/13783
* Author: opti (Andreas Opti)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:82240] [Ruby trunk Bug#13783][Feedback] Memory allocation / GC does not free unused memory
[not found] <redmine.issue-13783.20170804103033@ruby-lang.org>
2017-08-04 10:30 ` [ruby-core:82239] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory inform
@ 2017-08-04 12:10 ` shyouhei
2017-08-07 21:13 ` [ruby-core:82270] [Ruby trunk Bug#13783] " inform
2017-08-07 21:14 ` [ruby-core:82271] " inform
3 siblings, 0 replies; 4+ messages in thread
From: shyouhei @ 2017-08-04 12:10 UTC (permalink / raw
To: ruby-core
Issue #13783 has been updated by shyouhei (Shyouhei Urabe).
Status changed from Open to Feedback
Hmm, I don't know exactly why so this might not fork for you but at least on my machine, the situation seems fixed in latest trunk. Can you test?
```
zsh % rbenv shell 2.4.1
zsh % ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
zsh % for i in 1 4 16 64; do
/usr/bin/time -l ruby -e $i.'times {x=[]; 1000000.times {|i| x.push [i,i*3]} }' |& fgrep resident
done
78553088 maximum resident set size
195747840 maximum resident set size
311996416 maximum resident set size
341024768 maximum resident set size
zsh % rbenv shell trunk@svn
zsh % ruby -v
ruby 2.5.0dev (2017-08-04 trunk 59496) [x86_64-darwin15]
zsh % for i in 1 4 16 64; do
/usr/bin/time -l ruby -e $i.'times {x=[]; 1000000.times {|i| x.push [i,i*3]} }' |& fgrep resident
done
73068544 maximum resident set size
183775232 maximum resident set size
183783424 maximum resident set size
185192448 maximum resident set size
```
----------------------------------------
Bug #13783: Memory allocation / GC does not free unused memory
https://bugs.ruby-lang.org/issues/13783#change-66018
* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:82270] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory
[not found] <redmine.issue-13783.20170804103033@ruby-lang.org>
2017-08-04 10:30 ` [ruby-core:82239] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory inform
2017-08-04 12:10 ` [ruby-core:82240] [Ruby trunk Bug#13783][Feedback] " shyouhei
@ 2017-08-07 21:13 ` inform
2017-08-07 21:14 ` [ruby-core:82271] " inform
3 siblings, 0 replies; 4+ messages in thread
From: inform @ 2017-08-07 21:13 UTC (permalink / raw
To: ruby-core
Issue #13783 has been updated by opti (Andreas Opti).
I dodn't manage to compile v250 (because of other errrors), nice to see that this bug is fixed now.
(mentioned it in a mailinglist sometimes ago).
Now I found "r59074 | ko1 | 2017-06-13 11:52:33 +0900 (Tue, 13 Jun 2017) | 5 lines" in the changelog,
maybe s.o. could backported that to 2.4.x ?
Seems also if updating 2.4.x -> 2.4.x+1 I have to reinstall [compile] all gems?
thanks
Opti
----------------------------------------
Bug #13783: Memory allocation / GC does not free unused memory
https://bugs.ruby-lang.org/issues/13783#change-66050
* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:82271] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory
[not found] <redmine.issue-13783.20170804103033@ruby-lang.org>
` (2 preceding siblings ...)
2017-08-07 21:13 ` [ruby-core:82270] [Ruby trunk Bug#13783] " inform
@ 2017-08-07 21:14 ` inform
3 siblings, 0 replies; 4+ messages in thread
From: inform @ 2017-08-07 21:14 UTC (permalink / raw
To: ruby-core
Issue #13783 has been updated by opti (Andreas Opti).
I didn't manage to compile v250 (because of other errrors), nice to see that this bug is fixed now.
(mentioned it in a mailinglist sometimes ago).
Now I found "r59074 | ko1 | 2017-06-13 11:52:33 +0900 (Tue, 13 Jun 2017) | 5 lines" in the changelog,
maybe s.o. could backported that to 2.4.x ?
Seems also if updating 2.4.x -> 2.4.x+1 I have to reinstall [compile] all gems?
thanks
Opti
----------------------------------------
Bug #13783: Memory allocation / GC does not free unused memory
https://bugs.ruby-lang.org/issues/13783#change-66051
* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-07 21:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-13783.20170804103033@ruby-lang.org>
2017-08-04 10:30 ` [ruby-core:82239] [Ruby trunk Bug#13783] Memory allocation / GC does not free unused memory inform
2017-08-04 12:10 ` [ruby-core:82240] [Ruby trunk Bug#13783][Feedback] " shyouhei
2017-08-07 21:13 ` [ruby-core:82270] [Ruby trunk Bug#13783] " inform
2017-08-07 21:14 ` [ruby-core:82271] " inform
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).