Difference between revisions of "CPU: Info"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 59: Line 59:
 
==CoreFreq==
 
==CoreFreq==
  
sudo apt-get install dkms git libpthread-stubs0-dev  [On Debian/Ubuntu]
+
Install Pendukung
  
Next clone the CoreFreq source code from the Github repository, move into the download folder and compile and build the program:
+
sudo apt-get install dkms git libpthread-stubs0-dev libelf-dev
  
 +
Compile
 +
 +
cd /usr/local/src
 
  git clone https://github.com/cyring/CoreFreq.git
 
  git clone https://github.com/cyring/CoreFreq.git
 
  cd CoreFreq
 
  cd CoreFreq
 
  make  
 
  make  
 +
 +
Start Server
  
 
  sudo insmod corefreqk.ko
 
  sudo insmod corefreqk.ko
 
  sudo ./corefreqd
 
  sudo ./corefreqd
  
Then, start the client, as a user.
+
Start the client
  
 
  ./corefreq-cli
 
  ./corefreq-cli
  
 
+
Catatan tambahan
  
  
Line 117: Line 122:
  
 
  $ ./corefreq-cli -c
 
  $ ./corefreq-cli -c
 
 
 
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[CPU]]
 
* [[CPU]]

Latest revision as of 09:26, 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

Install Pendukung

sudo apt-get install dkms git libpthread-stubs0-dev libelf-dev

Compile

cd /usr/local/src
git clone https://github.com/cyring/CoreFreq.git
cd CoreFreq
make 

Start Server

sudo insmod corefreqk.ko
sudo ./corefreqd

Start the client

./corefreq-cli

Catatan tambahan


$ ./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