a proposed callout API

Ivan Voras ivoras at fer.hr
Tue Nov 14 11:56:48 UTC 2006


Poul-Henning Kamp wrote:

...
> 4. We execute all callouts on one CPU only.
...
> Short callouts, less than 2 seconds, will be stored in a binary
> heap (A tree where a node is numerically lower than its parents.)
> 
> The depth of the heap is Log2(nodes) and there are very efficient
> ways to store and access the heap.
> 
> Locking will be with one mutex for the heap.

Won't that retain the 1-cpu-only "feature"?

Maybe make NCPU or NCPU/2 groups and fill them round-robin?



More information about the freebsd-arch mailing list