[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:60847] Re: [ruby-trunk - Feature #9113] Ship Ruby for Linux with jemalloc out-of-the-box
From:
Eric Wong <normalperson@...>
Date:
2014-02-18 23:53:15 UTC
List:
ruby-core #60847
sam.saffron@gmail.com wrote:
> An artificial test is:
>
> @retained = []
>
> MAX_STRING_SIZE = 100
>
> def stress(allocate_count, retain_count, chunk_size)
Note: I think we should seed the RNG to a constant to have
consistent data between runs
srand(123)
> chunk = []
> while retain_count > 0 || allocate_count > 0
> if retain_count == 0 || (Random.rand < 0.5 && allocate_count > 0)
> chunk << " " * (Random.rand * MAX_STRING_SIZE).to_i
> allocate_count -= 1
> if chunk.length > chunk_size
> chunk = []
> end
> else
> @retained << " " * (Random.rand * MAX_STRING_SIZE).to_i
> retain_count -= 1
> end
> end
> end
Sam: Thank you!
I think we should integrate this test into the mainline benchmark suite.
Perhaps even provide an option to run with all the existing tests with
the big @retained array.
ko1: what do you think?