Live data from Hacker News

Viewing profile — deadcanard

deadcanard

HN member
Joined
Thu, Aug 19, 2021, 6:35 PM UTC
HN karma
23
Public activity
13 items

About deadcanard

Mostly dead duck

Recent public activity

  1. story
  2. comment
    Comment #36762640

    Take this with a hefty grain of salt. This a one-author paper from a MD that got their license suspended by MA's medical board. The author also pushes some anti vax rhetoric on the…

  3. comment
    Comment #33790543

    2) Agreed about the solvability and difficulty of avoiding cache collisions. DDIO must write its data somewhere in the L3 cache. It ends up in the shareable slice. So either you're…

  4. comment
    Comment #33789885

    Have you tried one the link of the article: https://docs.kernel.org/admin-guide/kernel-per-CPU-kthreads.... ? Also try running "perf stat -d" on your run and see anything pops out

  5. comment
    Comment #33789547

    Again, I am biased. But the article explains mem translation in fairly simple terms, hammers the main advantages of HPs (better use of the TLB, simpler and smaller PT). Explains cl…

  6. comment
    Comment #33789469

    IMO the easiest way (but certainly not the only way) is to allocate a new stack and switch to it with makecontext(). The manpage has a full code example. You just need to change th…

  7. comment
    Comment #33789178

    I'd argue that understanding what happens on every single memory access qualifies as fundamental.

  8. comment
    Comment #33788952

    I am biased but I don't think it's fair to say that your article covers as much. There is more content in the article written in a way that's trying to be approachable. I certainly…

  9. comment
    Comment #33788407

    Wrt code, look at the bench in the article. Even with sequential access, you can get a decent speedup using huge pages. But unless you have a good profile and using PGO, it'll like…

  10. comment
    Comment #33788230

    URL for your article?

  11. comment
    Comment #33788042

    CAT is indeed a good thing to look at. But there are some important caveats 1) unless you have a very small number of cores, it's not possible to reserve a cache slice for all prog…

  12. comment
    Comment #31627009

    Then, instantiate the smart pointer with a custom no-op deleter and if you use the nt typedef I mentioned above, you'll get a similar compiler output to Rust's. e.g nt_shared_ptr x…

  13. comment
    Comment #31626906

    It's because shared_ptr uses an atomic count to synchronise between threads while the Rust version is assuming only one thread. There is no equivalent in the standard C++ lib. Thou…