GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Adaptive pool false-sharing · Issue #14757 · netty/netty Open Labels benchmarkAffect the JMH benchmarks DescriptionRunning Line 33 in 1cfd3a6
This is pretty visible in my beefy machine (Ryzen) and 0.16% 0x00007f4ff013aebb: mov 0x14(%r11),%r11d ;*getfield direct {reexecute=0 rethrow=0 return_oop=0} ; - io.netty.buffer.AdaptiveByteBufAllocator::newDirectBuffer@1 (line 70) ; - io.netty.buffer.AbstractByteBufAllocator::directBuffer@21 (line 188) ; - io.netty.buffer.AbstractByteBufAllocator::directBuffer@4 (line 179) ; - io.netty.microbench.buffer.ByteBufAllocatorConcurrentBenchmark::allocateReleaseAdaptive@7 (line 61) ; - io.netty.microbench.buffer.jmh_generated.ByteBufAllocatorConcurrentBenchmark_allocateReleaseAdaptive_jmhTest::allocateReleaseAdaptive_thrpt_jmhStub@17 (line 121) 35.75% 0x00007f4ff013aebf: mov 0x20(%r12,%r11,8),%ebp ; implicit exception: dispatches to 0x00007f4ff013cb00 ;*getfield threadLocalMagazine {reexecute=0 rethrow=0 return_oop=0} where the 35% cost (!!!!) is the field at byte 32 of the allocator i.e. the final field threadLocalMagazine Indeed, in another run I got 0.00% 0x00007f087c1eb497: tzcnt %ecx,%ebx 0.02% 0x00007f087c1eb49b: test %ebx,%ebx 0x00007f087c1eb49d: jle 0x00007f087c1eb998 0.00% 0x00007f087c1eb4a3: movslq %esi,%rcx 0.03% 0x00007f087c1eb4a6: lea -0x1(%rsi),%r11d 0x00007f087c1eb4aa: dec %rcx 0x00007f087c1eb4ad: and %r10,%rcx 0x00007f087c1eb4b0: mov %ecx,%ecx 0.20% 0x00007f087c1eb4b2: mov %r11d,%r13d 0x00007f087c1eb4b5: and %ecx,%r13d 0.00% 0x00007f087c1eb4b8: test %esi,%esi 0x00007f087c1eb4ba: jbe 0x00007f087c1eb7cc 0.00% 0x00007f087c1eb4c0: lea (%r12,%r9,8),%rax 0.09% 0x00007f087c1eb4c4: mov 0x10(%rax,%r13,4),%r13d 28.30% 0x00007f087c1eb4c9: vmovq %xmm0,%rsi where now the cost is for (int i = 0, m = Integer.numberOfTrailingZeros(~mask); i < m; i++) { Magazine mag = mags[index + i & mask]; the last In term of variability, on a NUMA-like system like the Ryzen, is pretty visible (even running with this shows pretty easily which perfasm output we have to search for since, in the second fork, there's an evident performance difference compared to the first one - but sadly is pretty randomic. Detecting false-sharing is never easy since even heap objects (e.g. the reference counters in buffers) which are not padded, whilst modified over and over, can interfere with loading of final stable and immutable innocent fields, causing it. Reacted by old driver Activity
| ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |