On 05/07/2018 05:20 PM, Bruno Haible wrote:
* Use the kernel-provided meta-info about the algorithms to decide whether to use the kernel API. ... Drawback: Does not work if /proc is not mounted.I would favour the third approach.
I agree. With the Linux kernel these days, mounting /proc is pretty much essential if you care about efficiency, as it's the standard way to get performance-relevant configuration information out of the kernel.