Skip to content

Thaughts on improving section cache effect and false sharing #9

Open
@idoleat

Description

@idoleat

Benchmark atomic instructions latency and data through put

We provide a benchmark program to

  1. Show how cache coherence costs performance.
  2. Show that atomics guarantee forward progress but not necessarily faster than locks.
  3. Pave the way for trying out other mechanism to lower cache line contention

Considering how each micro architecture differs on atomic insn implementation, core topology and cache coherence protocol, the benchmark should run on a wide variety of hardware platforms. May be we can invite volunteers to benchmark.

I am looking into Evaluating the Cost of Atomic Operations on Modern Architectures and its citations, examining how we can conduct the benchmark.

False sharing example

We provide an example showing how false sharing affect performance. Benchmark provided by Zeosleus or examples in previous sections could be used.

Before working on this proposal, I will add example for discussing ABA problem in section 6 first and HTML export as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions