In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install and use CoreFreq under Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading 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.
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. Performance counters combine timestamp counters (TSC), non-downtime core cycles (UCC), and non-downtime reference cycles (URC). Instructions per cycle or per second: IPS, IPC, or CPI. CPU C status: C0C1C3C6C7-C1E-C1, C3 automatic / non-degraded. DTS with Tjunction Max temperature and heat monitoring TM1, TM2 status. 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 is achieved by calling a Linux kernel module that uses assembly code to keep the performance counter readings as close as possible. 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 $makeCoreFreq: a powerful professional tool for monitoring CPU CoreFreq: a powerful professional tool for monitoring CPU
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: a powerful professional tool for monitoring CPU CoreFreq: a powerful professional tool for monitoring CPU
CoreFreq Linux CPU monitoring
In the above interface, you can use these 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:
$. / corefreq-cli-c
This is the end of the article on "how to install and use CoreFreq under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.