[#59462] [ruby-trunk - Bug #9342][Open] [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3 — "jsc (Justin Collins)" <redmine@...>

9 messages 2014/01/02

[#59466] [ruby-trunk - Bug #9343][Open] [PATCH] SizedQueue#max= wakes up waiters properly — "normalperson (Eric Wong)" <normalperson@...>

11 messages 2014/01/02

[#59498] [ruby-trunk - Bug #9352][Open] [BUG] rb_sys_fail_str(connect(2) for [fe80::1%lo0]:3000) - errno == 0 — "kain (Claudio Poli)" <claudio@...>

10 messages 2014/01/03

[#59516] [ruby-trunk - Bug #9356][Open] TCPSocket.new does not seem to handle INTR — "charliesome (Charlie Somerville)" <charliesome@...>

48 messages 2014/01/03

[#59538] [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

33 messages 2014/01/03
[#59582] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — SASADA Koichi <ko1@...> 2014/01/06

Intersting challenge.

[#59541] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — Eric Wong <normalperson@...> 2014/01/04

Hi, I noticed a trivial typo in array.c, and it fails building struct.c

[#59583] [ruby-trunk - Bug #9367][Open] REXML::XmlDecl doesn't use user specified quotes — "bearmini (Takashi Oguma)" <bear.mini@...>

12 messages 2014/01/06

[#59642] [ruby-trunk - Bug #9384][Open] Segfault in ruby 2.1.0p0 — "cbliard (Christophe Bliard)" <christophe.bliard@...>

11 messages 2014/01/08

[#59791] About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...>

A while ago I created a proof-of-concept that I intended to use in my

16 messages 2014/01/15
[#59794] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/15

On 15 Jan 2014, at 11:58, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:

[#59808] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/16

Em 15-01-2014 19:42, Eric Hodel escreveu:

[#59810] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/16

On 16 Jan 2014, at 02:15, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:

[#59826] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/17

Em 16-01-2014 19:43, Eric Hodel escreveu:

[#59832] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/17

On 17 Jan 2014, at 04:22, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:

[ruby-core:59605] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed

From: SASADA Koichi <ko1@...>
Date: 2014-01-06 22:36:28 UTC
List: ruby-core #59605
(2014/01/06 23:10), Urabe Shyouhei wrote:
> On 01/06/2014 06:11 PM, Urabe Shyouhei wrote:
>> On 01/06/2014 04:52 PM, SASADA Koichi wrote:
>>> Could you try same measurement
>>> https://github.com/ruby/ruby/pull/495#issuecomment-31580604
>>> with only addding dummy padding to RVALUE (and not extend embed area) if
>>> it is easy to try?
>>
>> Wait a moment.  It is not difficult but takes some time.
> 
> Here you are.
> http://www.atdot.net/fp/view/hfgzym
> 
> 2.1.1 and 5-words should be the same, so be sure there are ~1 second error margin.
> 
> I cannot explain why 9 words case is this fast, but it is clear to me
> that prime-number-sized object does have negative impact on performance.
> 

Thank you.

On my environment, I can't measure the improvement with padding.
http://www.atdot.net/fp_store/f.0w30zm/file.copipa-temp-image.png

model name      : Intel(R) Xeon(R) CPU           E5335  @ 2.00GHz
stepping        : 7
cpu MHz         : 1995.013
cache size      : 4096 KB

Effective on recent CPUs?



----
BTW, vm3_gc benchmark results:

$ for i in `seq 5 16`; do LD_PRELOAD=~/tmp/trunk-$i/lib/libruby.so
~/tmp/trunk-$i/bin/ruby -e "p GC::INTERNAL_CONSTANTS[:RVALUE_SIZE]";
time LD_PRELOAD=~/tmp/trunk-$i/lib/libruby.so  ~/tmp/trunk-$i/bin/ruby
../trunk/benchmark/bm_vm3_gc.rb; done
40

real    0m4.020s
user    0m4.008s
sys     0m0.012s
48

real    0m4.409s
user    0m4.408s
sys     0m0.000s
56

real    0m4.918s
user    0m4.916s
sys     0m0.000s
64

real    0m5.178s
user    0m5.176s
sys     0m0.000s
72

real    0m6.059s
user    0m6.048s
sys     0m0.008s
80

real    0m6.498s
user    0m6.488s
sys     0m0.008s
88

real    0m6.700s
user    0m6.696s
sys     0m0.004s
96

real    0m7.513s
user    0m7.508s
sys     0m0.004s
104

real    0m8.049s
user    0m8.029s
sys     0m0.012s
112

real    0m8.033s
user    0m8.025s
sys     0m0.012s
120

real    0m6.644s
user    0m6.632s
sys     0m0.012s
128

real    0m7.643s
user    0m7.628s
sys     0m0.016s



-- 
// SASADA Koichi at atdot dot net

In This Thread