In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use CoreFreq in linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use CoreFreq in linux" this article.
CoreFreq is a CPU monitor for Intel 64-bit processors and supports Atom, Core2, Nehalem, SandyBridge and above, as well as the AMD 0F family.
Its core is built on a kernel module that retrieves internal performance counters from each CPU core and works with a daemon that collects data, to which a small console client connects and displays the collected data.
CoreFreq CPU Monitoring
It provides the basic work of recapturing CPU data with high precision:
Core frequency and ratio; SpeedStep (EIST), Turbo Boost, hyperthreading (HTT), and basic clock (Base Clock).
The performance counter combines a timestamp counter (Time Stamp Counter) (TSC), a non-downtime core cycle (Unhalted Core Cycles) (UCC), and a non-downtime reference cycle (Unhalted Reference Cycles) (URC).
Instructions per cycle or per second: IPS, IPC, or CPI.
CPU C status: C0C1C3 C6C7-C1E-C1, C3 automatic / non-degraded (UnDemotion).
DTS temperature, thermal monitoring (Thermal Monitoring) TM1, TM2 status with Tjunction Max.
Includes the cache for bootstrapping and the application CPU topology diagram.
Processor characteristics, brand, architecture string.
Note: this tool is more suitable for Linux expert users and experienced system administrators, but novice users can learn how to use it step by step.
How CoreFreq works
It is implemented by calling a Linux kernel module, which uses:
The assembly code is kept as close as possible to the performance counter reading.
Press the slab data memory affected by each CPU plus a high-resolution timer.
CPU pause / resume and CPU hot swappable are supported.
Use shared memory to protect the kernel from user-space programs.
Use atomic synchronized threads to eliminate mutexes and deadlocks.
How to install CoreFreq in Linux
To install CoreFreq, you first need to install dependent programs (development tools) to compile and build the program from the source code.
$sudo yum group install 'Development Tools' [On CentOS/RHEL] $sudo dnf group install' Development Tools' [On Fedora 22 + Versions] # sudo apt-get install dkms git libpthread-stubs0-dev [On Debian/Ubuntu]
Next, clone the CoreFreq source code on Github, go to the download folder and compile the build program:
$git clone https://github.com/cyring/CoreFreq.git $cd CoreFreq $make
Build a CoreFreq program
Note: Arch Linux users can install corefreq-git from AUR.
Now run the following command to load the Linux kernel module from the local directory, and then run the daemon:
$sudo insmod corefreqk.ko $sudo. / corefreqd
Then use a normal user to start the client.
$. / corefreq-cli
CoreFreq Linux CPU monitoring
In the above interface, you can use these keyboard shortcuts:
Use F2 to display the usage menu displayed at the top of the screen.
Use the right and left arrows to move the menu tab.
Use the up and down arrows to select the menu item, and then click enter.
Use F4 to close the program.
Use h to open the Quick reference.
To view all usage options, enter the following command:
. / corefreq-cli-h
CoreFreq options:
CoreFreq. Copyright (C) 2015-2017 CYRIL INGENIERIE usage: corefreq-cli [- option]-t Show Top (default)-d Show Dashboard arguments:-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 information about the kernel, run:
. / corefreq-cli-k
Print CPU details:
$. / corefreq-cli-u
You can also monitor CPU commands in real time:
$. / corefreq-cli-I
Enable counter tracking as follows:
The above $. / corefreq-cli-c is all the contents of the article "how to use CoreFreq in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.