Difference between revisions of "CPU: Info"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " sudo lscpu ==Pranala Menarik== * CPU")
 
Line 1: Line 1:
 +
==lscpu==
 +
 +
sudo lscpu
 +
 +
 +
==cat /proc/cpuinfo==
 +
 +
cat /proc/cpuinfo
 +
 +
 +
cat /proc/cpuinfo | grep 'vendor' | uniq #view vendor name
 +
cat /proc/cpuinfo | grep 'model name' | uniq #display model name
 +
cat /proc/cpuinfo | grep processor | wc -l #count the number of processing units
 +
cat /proc/cpuinfo | grep 'core id' #show individual cores
 +
 +
 +
 +
==cpuid==
 +
 +
cpuid
 +
 +
 +
 +
 +
==dmidecode==
 +
 +
sudo dmidecode --type processor
 +
 +
 +
 +
==inxi==
 +
 +
inxi -C
 +
 +
 +
 +
==lshw -c CPU==
 +
 +
sudo lshw -C CPU
 +
 +
 +
 +
==hardinfo==
 +
 +
hardinfo
 +
 +
 +
==hwinfo==
 +
 +
hwinfo --cpu
 +
 +
 +
==nproc==
 +
 +
nproc
 +
 +
 +
 +
==CoreFreq==
 +
 +
sudo apt-get install dkms git libpthread-stubs0-dev  [On Debian/Ubuntu]
 +
 +
Next clone the CoreFreq source code from the Github repository, move into the download folder and compile and build the program:
 +
 +
git clone https://github.com/cyring/CoreFreq.git
 +
cd CoreFreq
 +
make
 +
 +
sudo insmod corefreqk.ko
 +
sudo ./corefreqd
 +
 +
Then, start the client, as a user.
 +
 +
./corefreq-cli
 +
 +
 +
 +
 +
$ ./corefreq-cli -h
 +
 +
CoreFreq Options
 +
CoreFreq.  Copyright (C) 2015-2017 CYRIL INGENIERIE
 +
 +
usage: corefreq-cli [-option <arguments>]
 +
-t Show Top (default)
 +
-d Show Dashboard
 +
  arguments: <left> <top> <marginWidth> <marginHeight>
 +
-c Monitor Counters
 +
-i Monitor Instructions
 +
-s Print System Information
 +
-M Print Memory Controller
 +
-m Print Topology
 +
-u Print CPUID
 +
-k Print Kernel
 +
-h Print out this message
 +
 +
Exit status:
 +
0 if OK,
 +
1 if problems,
 +
>1 if serious trouble.
 +
 +
Report bugs to labs[at]cyring.fr
 +
 +
To print info about the kernel, run:
 +
 +
$ ./corefreq-cli -k
 +
 +
Print CPU identification details:
 +
 +
$ ./corefreq-cli -u
 +
 +
You can as well monitor CPU instructions in real-time:
 +
 +
$ ./corefreq-cli -i
 +
 +
Enable tracing of counters as below:
 +
 +
$ ./corefreq-cli -c
 +
  
  
sudo lscpu
 
  
  

Revision as of 08:57, 3 January 2020

lscpu

sudo lscpu


cat /proc/cpuinfo

cat /proc/cpuinfo


cat /proc/cpuinfo | grep 'vendor' | uniq		#view vendor name
cat /proc/cpuinfo | grep 'model name' | uniq		#display model name
cat /proc/cpuinfo | grep processor | wc -l		#count the number of processing units
cat /proc/cpuinfo | grep 'core id'			#show individual cores	


cpuid

cpuid



dmidecode

sudo dmidecode --type processor


inxi

inxi -C


lshw -c CPU

sudo lshw -C CPU


hardinfo

hardinfo 


hwinfo

hwinfo --cpu


nproc

nproc


CoreFreq

sudo apt-get install dkms git libpthread-stubs0-dev  [On Debian/Ubuntu] 

Next clone the CoreFreq source code from the Github repository, move into the download folder and compile and build the program:

git clone https://github.com/cyring/CoreFreq.git
cd CoreFreq
make 
sudo insmod corefreqk.ko
sudo ./corefreqd

Then, start the client, as a user.

./corefreq-cli



$ ./corefreq-cli -h
CoreFreq Options
CoreFreq.  Copyright (C) 2015-2017 CYRIL INGENIERIE

usage:	corefreq-cli [-option <arguments>]
	-t	Show Top (default)
	-d	Show Dashboard
		  arguments: <left> <top> <marginWidth> <marginHeight>
	-c	Monitor Counters
	-i	Monitor Instructions
	-s	Print System Information
	-M	Print Memory Controller
	-m	Print Topology
	-u	Print CPUID
	-k	Print Kernel
	-h	Print out this message 

Exit status:
0	if OK,
1	if problems,
>1	if serious trouble.

Report bugs to labs[at]cyring.fr

To print info about the kernel, run:

$ ./corefreq-cli -k

Print CPU identification details:

$ ./corefreq-cli -u

You can as well monitor CPU instructions in real-time:

$ ./corefreq-cli -i

Enable tracing of counters as below:

$ ./corefreq-cli -c



Pranala Menarik