Language Selection

English French German Italian Portuguese Spanish

Davidlohr Bueso: Linux v5.2: Performance Goodies

Filed under
Linux

This applies the idea that in most cases, a rwsem will be uncontended (single threaded). For example, experimentation showed that page fault paths really expect this. The change itself makes the code basically not read in a cacheline in a tight loop over and over. Note however that this can be a double edged sword, as microbenchmarks have show performance deterioration upon high amounts of tasks, albeit mainly pathological workloads.

Read more