Subject: Re: [boost] cache size runtime detection
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-08-17 16:45:35
On 17.08.2015 23:03, Joel FALCOU wrote:
> On 17/08/2015 19:11, Andrey Semashev wrote:
>> On 17.08.2015 20:01, Glen Fernandes wrote:
>>> Andrey wrote:
>>>> My idea is a system capabilities
>>>> library (Boost.SystemCaps) which would offer a generic interface for
>>>> querying the current system properties such as:
>>>> - Number of CPU cores/threads.
>>>> - Current CPU core capabilities (vendor string, instruction set
>>>> extensions, cache properties, etc.). Probably, this would need to
>>>> support heterogenous systems as well.
>>>> - System RAM size.
>>>> - OS version string.
>>> This sounds like a good idea. It would almost be runtime-analogous to
>>> Boost.Config (Boost.RuntimeConfig or Boost.SystemConfig).
>> The name is not final, just something I refer the idea to. I'm in favor
>> of shorter names though, like Boost.SysInfo, perhaps.
> What about Boost.SysCtl to mimic the sysctl() function ?
AFAIK sysctl() is used for configuring the system, but the proposed
library will not (at least, I didn't plan it to). Also, the man page says:
don't call it: use of this system call has long been discouraged, and it
is so unloved that it is likely to disappear in a future kernel version.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk