Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is data-dependency barrier: Linux Kernel

As question says it all I was looking for in depth explanation of data-dependency barrier in SMP especially with respect to Linux Kernel. I have the definition and brief description handy in this link here.

Linux Kernel Memory Barriers Documentation

However I was attempting to get a profound understanding of this concept. Your thoughts and inputs are highly appreciated.

like image 650
Ace Avatar asked Sep 03 '26 06:09

Ace


2 Answers

Actually, at least in terms of C++11, this is more closely related to consume semantics. You can read more about it e.g. here. In short, they provide weaker guarantees than acquire semantics, which makes them more efficient on certain platforms that support data dependency ordering.

like image 178
Ivan Vergiliev Avatar answered Sep 06 '26 17:09

Ivan Vergiliev


In C++ terms, it is called memory_order_consume. See this presentation from Paul Mckenney.

like image 32
Patrick Pan Avatar answered Sep 06 '26 17:09

Patrick Pan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!