Information About Processor
Hello Everybody, I'm writting an app and I need to get all te informations about a processor. I know I can use
dmidecode -t 7
cat /proc/cpuinfo
hwinfo --cpu
lscpu
(...)
None of these have all the informations I need, and I need to get informations from different places. The problem is that sometimes I can't mix those information.
ex:
dmidecode tells me that there is 2 processors
cat /proc/cpuinfo tells me that there is only
one core, and even when it tells me there is 4,
how can I know if a core is from Processor A or Processor B?.
at other pc I can't know how many cores there is
because of the version of the kernel, cpuinfo doesn't give enought information about it.
I need to run that app for 2.4.X kernel versions and 2.6.X kernel versions.
can anyone help me?
|