getting cpu info w/o parsing /var/run/dmesg.boot

Sepherosa Ziehau sepherosa at
Fri Oct 9 18:03:43 PDT 2015

Those information could be exported through sysctl easily.  Anyone
want to take a simple kernel hacking task to complete it?  I believe
them to be pretty useful.


On Fri, Oct 9, 2015 at 11:47 PM, Hleb Valoshka <375gnu at> wrote:
> On 10/9/15, Zachary Crownover <zachary.crownover at> wrote:
>> You could also look at what facter does, from puppet. It's also Ruby and
>> being rewritten in C++.
> Not too much info:
>     class BSD < Base
>       def get_processor_count
>         Facter::Util::POSIX.sysctl("hw.ncpu").to_i
>       end
>     end

Tomorrow Will Never Die

More information about the Users mailing list