A 40-line fix eliminated a 400x performance gap
1–10 of 81 posts
Re: A 40-line fix eliminated a 400x performance gap
#2Re: A 40-line fix eliminated a 400x performance gap
#3Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
Re: A 40-line fix eliminated a 400x performance gap
#4Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
Did you look into the large spread on your distributions? Some of these span multiple orders of magnitude which is interesting
Re: A 40-line fix eliminated a 400x performance gap
#5Re: A 40-line fix eliminated a 400x performance gap
#6Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
Re: A 40-line fix eliminated a 400x performance gap
#7Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
I don't think it is possible to talk about fractions of nanoseconds without having an extremely good idea of the stability and accuracy of your clock. At best I think you could claim there is some kind of reduction but it is super hard to make such claims in the absolute without doing a massive amount of prep work to ensure that the measured times themselves are indeed accurate. You could be off by a large fraction a…
Re: A 40-line fix eliminated a 400x performance gap
#8Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
edit : I had an afterthought about this because it ended up being a low quality comment ;
Bringing up such TLDR give a lot of value to reading content, especially on HN, as it provides way more inertia and let focus on -
reading this short form felt like that cool friend who gave you a heads up.
Re: A 40-line fix eliminated a 400x performance gap
#9Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
Very thankful for the 1liner tldr edit : I had an afterthought about this because it ended up being a low quality comment ; Bringing up such TLDR give a lot of value to reading content, especially on HN, as it provides way more inertia and let focus on - reading this short form felt like that cool friend who gave you a heads up.
Re: A 40-line fix eliminated a 400x performance gap
#10Earlier quoted context omitted.
Very thankful for the 1liner tldr edit : I had an afterthought about this because it ended up being a low quality comment ; Bringing up such TLDR give a lot of value to reading content, especially on HN, as it provides way more inertia and let focus on - reading this short form felt like that cool friend who gave you a heads up.
I was unsure whether to post it or not so I am glad you found it useful!