Live data from Hacker News

Viewing profile — jerrinot

jerrinot

HN member
Joined
Sun, Oct 08, 2017, 10:58 PM UTC
HN karma
343
Public activity
69 items

About jerrinot

No profile information was provided.

Recent public activity

  1. story
  2. comment
    Comment #46616869

    clock_gettime() goes through the vDSO shim, but whether it avoids a syscall depends on the clock ID and (in some cases) the clock source. For thread-specific CPU user time, the vDS…

  3. comment
    Comment #46615373

    You raise a fair point about the percentiles. Those are reported as point estimates without confidence intervals and the implied precision overstates what system clock can deliver.…

  4. comment
    Comment #46613952

    Hi Jonas, thanks for the work on OpenJDK and the post! I swear I hadn't seen your blog :) I finished my draft around Christmas and it’s been in the queue since. Great minds think a…

  5. comment
    Comment #46613882

    In a system with green threads, you typically want the CPU time of the fiber or tasklet rather than the carrier thread. In that case, you have to ask the scheduler, not the kernel.…

  6. comment
    Comment #46611289

    Courtesy of Brendan Gregg and his flamegraph.pl scripts: https://github.com/brendangregg/FlameGraph Normally, I use the generator included in async-profiler. It produces interactiv…

  7. comment
    Comment #46611228

    no problem at all, I was confused too when I saw the profile for the first time.

  8. comment
    Comment #46610981

    That's a brilliant trick. The setup overhead and permission requirements for perf_event might be heavy for arbitrary threads, but for long-lived threads it looks pretty awesome! Th…

  9. comment
    Comment #46610854

    Exactly this.

  10. comment
    Comment #46610840

    Only for some clocks (CLOCK_MONOTONIC, etc) and some clock sources. For VIRT/SCHED, the vDSO shim still has to invoke the actual syscall. You can't avoid the kernel transition when…

  11. comment
    Comment #46610654

    I was unsure whether to post it or not so I am glad you found it useful!

  12. comment
    Comment #46610284

    Fair point. These were run on a standard dev workstation under load, which may account for the noise. I haven't done a deep dive into the outliers yet, but the distribution definit…

  13. comment
    Comment #46609804

    Author 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?…

  14. comment
    Comment #46286082

    I have no practical experience with bpftrace, so it did not occur to me. I'll give it a try and perhaps there's gonna be a 2nd part of this investigation.

  15. comment
    Comment #46282028

    It's much tougher when it's so hard to reproduce. Perhaps the NMI watchdog could help? https://docs.kernel.org/admin-guide/lockup-watchdogs.html

  16. comment
    Comment #46281346

    Wow, someone is actually reading the article in detail, that's a good feeling! In C, the != operator has higher precedence than the || operator. That said, extra parentheses never …

  17. comment
    Comment #46281211

    Thanks for the kind words! Heatmaps are amazing for pattern spotting. I also use them when hunting irregular hiccups or outliers. More people should know about this feature.

  18. comment
    Comment #46280890

    Author here. I've always been kernel-curious despite never having worked on one myself. Consider this either a collection of impractical party tricks or a hands-on way to get a fee…

  19. comment
    Comment #46193100

    Snowflake did not acquire RP after all.

  20. story
  21. comment
    Comment #45357557

    I expect candidates to suggest similar optimisations, but I felt it was unnecessary for the article itself.

  22. comment
    Comment #45354402

    That’s a neat trick, albeit with limited applicability given the very narrow range. Thanks for sharing!

  23. comment
    Comment #45353766

    That's a very good question. A proper compiler engineer would know, but I will do my best to find something and report back. Edit: I could not find any pass with a pattern matching…

  24. comment
    Comment #45353397

    Hi, author here. My superpower is spending unreasonable amounts of time researching things with no practical purpose. Occasionally I blog about it - as a warning to others.

  25. story