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

2015-10-09 Thread Sepherosa Ziehau
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 <375...@gmail.com> wrote: > On 10/9/15, Zachary Crownover

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

2015-10-09 Thread Michael Neumann
On 10/09/15 12:38, Hleb Valoshka wrote: Hi all. I want to get info about cpu without parsing /var/run/dmesg.boot, is it possible? I'm porting ohai (https://github.com/chef/ohai/pull/626/files#r41601905). You can use sysctl to extract information, e.g.: sysctl hw.cpu_topology.tree

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

2015-10-09 Thread Hleb Valoshka
On 10/9/15, Michael Neumann wrote: > You can use sysctl to extract information, e.g.: > > sysctl hw.cpu_topology.tree ... > What information you are looking for exactly? Model name, frequency, vendor id, stepping, supported features.

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

2015-10-09 Thread John Marino
On 10/9/2015 2:43 PM, John Marino wrote: > On 10/9/2015 2:36 PM, Hleb Valoshka wrote: >> On 10/9/15, Markus Pfeiffer wrote: >> >>> Just use the cpuid utility? It's available in dports... >> >> Your suggestion may be good for end user but not for ruby library. >> > >

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

2015-10-09 Thread Hleb Valoshka
Hi all. I want to get info about cpu without parsing /var/run/dmesg.boot, is it possible? I'm porting ohai (https://github.com/chef/ohai/pull/626/files#r41601905).

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

2015-10-09 Thread Markus Pfeiffer
On Fri, Oct 09, 2015 at 01:56:28PM +0300, Hleb Valoshka wrote: > On 10/9/15, Michael Neumann wrote: > > > You can use sysctl to extract information, e.g.: > > > > sysctl hw.cpu_topology.tree > ... > > What information you are looking for exactly? > > Model name, frequency,

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

2015-10-09 Thread John Marino
On 10/9/2015 2:36 PM, Hleb Valoshka wrote: > On 10/9/15, Markus Pfeiffer wrote: > >> Just use the cpuid utility? It's available in dports... > > Your suggestion may be good for end user but not for ruby library. > You are re-inventing the wheel:

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

2015-10-09 Thread Hleb Valoshka
On 10/9/15, Markus Pfeiffer wrote: > Just use the cpuid utility? It's available in dports... Your suggestion may be good for end user but not for ruby library.

dragonfly image

2015-10-09 Thread Samy CHBINOU
Hello, Is is possible for me to use the dragonfly image as logo for my company?

Re: dragonfly image

2015-10-09 Thread Justin Sherrill
No. Using another organization's logo for your own company would be illegal, confusing for customers, and not very polite, On Fri, Oct 9, 2015 at 9:05 AM, Samy CHBINOU wrote: > Hello, > Is is possible for me to use the dragonfly image as logo for my company? >

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

2015-10-09 Thread Hleb Valoshka
On 10/9/15, John Marino wrote: >> You are re-inventing the wheel: >> >> http://www.freshports.org/sysutils/rubygem-ohai/ >> >> You're efforts would be better served to fix whatever prevents that port >> from building (on top of providing patches for it). >> >> These types