Announcement

Collapse
No announcement yet.

GCC 12 Profile Guided Optimization Benchmarks With The AMD Threadripper 3990X

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #41
    Originally posted by coder View Post
    I think it's good for people to understand caches at a functional level. They're not magic. A CPU with 64 kB of L1D cache is not necessarily going to contain the last 64 kB of stuff you touched. In fact, it probably won't, and sometimes even much less than that!

    Here's the short list I'd recommend working programmers know about:
    1. Cache sets & eviction
    2. What's a copy-back cache and why it matters
    3. Cache coherency and its implications
    Yeah, the associativity, the dirty bit and ultimately, the synchronization of cache across cores which requires atomic instruction to enforce ordering like SeqCst, Acquire or Release.

    Comment

    Working...
    X