diff --git a/hardware/scaling/README.md b/hardware/scaling/README.md index f488cbc..71fe974 100644 --- a/hardware/scaling/README.md +++ b/hardware/scaling/README.md @@ -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. \ No newline at end of file +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.