MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
bpf
Search

[$] Concurrency management in BPF

Thursday February 7, 2019. 06:24 PM , from LWN.net
In the beginning, programs run on the in-kernel BPF virtual machine had no
persistent internal state and no data that was shared with any other part
of the system. The arrival of eBPF and, in particular, its maps
functionality, has changed that situation, though, since a map can be
shared between two or more BPF programs as well as with processes running
in user space. That sharing naturally leads to concurrency problems, so
the BPF developers have found themselves needing to add
primitives to manage concurrency (the 'exchange and add' or XADD
instruction, for example). The next step is the addition of a
spinlock mechanism to protect
data structures, which has also led to some wider discussions on what the
BPF memory
model should look like.
https://lwn.net/Articles/779120/rss
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Current Date
Apr, Fri 19 - 05:51 CEST