Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hardware/scaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ Avoid false sharing of data, adding alignment/padding as needed. This can be com
Minimize contention for true sharing:

```
global_flag = true => if (global_flag) global_flag = true
global_flag = true => if (!global_flag) global_flag = true
```

avoids unnecessary writes to a shared cache line.

Use a scalable malloc such as [jemalloc](https://jemalloc.net/) or [tcmalloc](https://github.com/google/tcmalloc) or [oneTBB malloc](https://uxlfoundation.github.io/oneTBB/main/tbb_userguide/automatically-replacing-malloc.html) if malloc library contention shows up.
Use a scalable malloc such as [jemalloc](https://jemalloc.net/) or [tcmalloc](https://github.com/google/tcmalloc) or [oneTBB malloc](https://uxlfoundation.github.io/oneTBB/main/tbb_userguide/automatically-replacing-malloc.html) if malloc library contention shows up.
Loading