3 ms·
What about this on FreeBSD? It's possible to reach the same results?
by u64x086a 1y ago
What about this on FreeBSD? It's possible to reach the same results?
- loeg 1y agoFreeBSD doesn't use RCU in the kernel, so it is unlikely to have the exact same ~bug as Linux here. Any naive implementation will have the same decent performance OpenBSD does for this program. FreeBSD's equivalent implementation lives here (it does all of this under an exclusive lock): http://fxr.watson.org/fxr/source/kern/kern_descrip.c#L1882 http://fxr.watson.org/fxr/source/kern/kern_descrip.c#L1882 It doesn't use RCU, but does do a kind of bespoke refcounted retention of old versions of the fdtable on a free list.