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.
Thanks, sephe On Fri, Oct 9, 2015 at 11:47 PM, Hleb Valoshka <[email protected]> wrote: > On 10/9/15, Zachary Crownover <[email protected]> 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
