|
Blue Forest http://www.lslnet.com at 20:18 on April 6, 2006
Freebsd how cpu information?
Linux /proc/cpuinfo there, but I can not look like under the freebsd cpu information (such as frequency version) or the order paper.
Systat not on the Eastern cpu. |
Freebsd how cpu information?
I have no specific details of how to investigate the case, but you can look at the top of the source code. Not long ago, a relatively simple.
Now the brothers hope to provide precise, detailed answers. Laughter :) |
Freebsd how cpu information?
Dmesg |grep CPU |
Freebsd how cpu information?
Machinery has long reopening dmesg information has been left off, only dmesg.today and dmesg.yesterday /var/log inside.
There are other ways to see cpu information? |
Freebsd how cpu information?
/var/run/dmesg.boot |
Freebsd how cpu information?
Resume or what, huh, huh |
Freebsd how cpu information?
[quote][i] Note from the original "Kim Sum of transparency"] resume or what, huh, huh [/quote [/i] released :
"Best" idea! |
Freebsd how cpu information?
[quote][i] Note from the original "Kim Sum of transparency"] resume or what, huh, huh [/quote [/i] released :
If you restart the machine is the production environment? |
Freebsd how cpu information?
Oh, my machines are automatic time to restart it, for us, is the resumption of normal |
Freebsd how cpu information?
[quote][i] Note from the original "Kim Sum of transparency"] Oh, my machines are automatic time to restart it, for us, is the resumption of normal [/quote [/i] released :
If the machines are production machines, but in the field you will see cpu information to reopen it?
Is it really could not see FreeBSD CPU information?
Dmesg.boot : /var/log not find another document, and only dmesg.today dmesg.yesterday. |
Freebsd how cpu information?
[quote][i] Note from the original "delphij" ]/var/[b]run[/b]/dmesg.boot[/quote [/i] released :
|
Freebsd how cpu information?
In /var/run/dmesg.boot
Not /var/log China. |
Freebsd how cpu information?
Sorry, upstairs has said. . . |
Freebsd how cpu information?
Oh, was I wrong list.
Thank you! |
Freebsd how cpu information?
There are two ways I can see that it is a simple and easy to use
Sysctl hw.model
What you can see is this type cpu
Sysctl kern.smp.cpus
Few can see
Secondly, you write a procedure to read the following example of this process
[code]
#include "Err.h>;
#include "Sys/types.h>;
#include "Sys/sysctl.h>;
Int main () (
Int error, cpus;
Char model[128];
Long speed;
Size_t len;
Practically = sizeof cpus;
Error = sysctlbyname ( "kern.smp.cpus" &cpus, &len, 0, 0);
If (error "0) (
Erroneamente (1, "sysctlbyname (\" kern.smp.cpus\ ")");
}
Practically = sizeof speed;
Error = sysctlbyname ( "hw.clockrate" &speed, &len, 0, 0);
If (error "0) (
Erroneamente (1, "sysctlbyname (\" hw.clockrate\ ")");
}
Practically = sizeof model;
Error = sysctlbyname ( "hw.model" model, &len, 0, 0);
If (error "0) (
Erroneamente (1, "sysctlbyname (\" hw.model\ ")");
}
Printf ( "CPUs is %d\n" cpus);
Printf ( "Rate is %d\n" speed);
Printf ( "Model is %s\n" model);
}
[/code] |
Freebsd how cpu information?
Quakelee has been my mind. . . . . That |
Freebsd how cpu information?
[quote][i] Note from the original "platinum" ]quakelee has been my mind. . . . . [/i] That [/quote published :
Em23 : that the dog's mouth : What not to vomit |
Freebsd how cpu information?
[quote][i] Note from the original "quakelee" [/i] released :
Em23 : that the dog's mouth : What not to vomit [/quote]
But that's not all you. . . . Belt! |
Freebsd how cpu information?
Fengyun envoy was right :
More /var/run/dmesg.boot
Not know? |
| |