在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):HewlettPackard/LinuxKI开源软件地址(OpenSource Url):https://github.com/HewlettPackard/LinuxKI开源编程语言(OpenSource Language):C 66.4%开源软件介绍(OpenSource Introduction):LinuxKI Toolset v7.4The LinuxKI Toolset (or LinuxKI for short) is an opensourced advanced mission critical performance troubleshooting tool for Linux. It is designed to identify performance issues beyond the typical performance metrics and results in faster root cause for many performance issues. LinuxKI is a kernel tracing toolkit designed to answer two primary questions about the system:
LinuxKI analyzes the kernel trace data in different and often unique ways to help performance specialist drill down on often complex performance issues. The following output is an example of data displayed for a specific task:
LinuxKI is designed to be easy to install, collect data, and generate reports. It runs on Linux kernels 2.6.32 or later running on x86_64, arm64 and ppc64 platforms. It collects low-level detailed traces reflecting the behavior of the running workload, which can be analyzed online or bundled along with configuration and other performance data into a single gzip file suitable for transfer and offline analysis. LinuxKI only enables key tracepoints in the performance paths, such as scheduler events, system call events, block I/O events, interrupt events, and CPU profiling events. It has the ability to collect system and user stack traces during sched_switch events and CPU profiling events, and much more. LinuxKI can analyze the detailed trace data in many different ways - per-PID, per-device, per-HBA path, per-CPU, per-LDOM, per-interrupt, per-Docker container, and much more. LinuxKI can collect its trace data from either of two sources: the Linux ftrace facility, or the LiKI DLKM supplied as part of this toolset. The default tracing mechanism used is LiKI, however you may chose to use ftrace if desired. Here are some considerations:
Using the LiKI tracing module is the preferred method, but ftrace may be used in cases where where the LiKI DLKM cannot be installed, either due to missing dependencies, or inherent risks of installing a DLKM. Disclaimer of Warranty and Limitation of Liability NoticesRefer to the COPYING.liki, COPYING.kiinfo, LICENSE.txt files for additional information. OverviewThe following documentation provides a brief overview for downloading and installing the LinuxKI Toolset, as well as data collection and report generation. Be sure to refer to the LinuxKI MasterClass, LinuxKI Quick Reference Guide, and LinuxKI FAQ for complete documentation: LinuxKI Quick Reference Guide
DownloadPre-packaged RPM and DEB files are available on the Releases Page. PrerequisitesThere are no mandatory pre-requisites. LinuxKI should install and run on most Linux systems from 2.6.32 through 5.14.21 However, if you would like to use the LiKI tracing mechanism (perferred method), you will need the following packages installed to compile the LiKI module from source code:
If LiKI fails to compile, you can resolve the dependency issue and execute the module_prep script to manually build the LiKI DLKM tracing module. You can also continue to use the LinuxKI Toolset using the ftrace tracing mechanism. InstallationThe LinuxKI Toolset is provided in an RPM Package and can be installed as follows:
Or for Debian-related kernels, the toolset can be installed using the dpkg command:
The files are installed in the /opt/linuxki directory. You should add this directory to the PATH of the root user for the duration of the data collection session. You can also use your favorite package manager, such as yum.
Verifying the LinuxKI toolset versionYou can verify the version of the LinuxKI toolset using rpm or dpkg as follows:
Removing the LinuxKI toolsetYou can remove the LinuxKI toolset using rpm or dpkg as follows:
Data collectionWhen the system is experiencing performance problems, the runki script can be executed to collect data. By default 20 seconds of trace data will be collected, and then runki will spend some time gathering other configuration and supplemental data, and then bundle this into a single gzip archive. It might take several minutes in all to complete. Root/superuser privilege is required to collect the trace data. The data is stored in the current working directory, and may require several hundred megabytes or gigabytes of space per collection run, depending on the size of the system and amount of trace data generated. The filesystem on which data is stored should be enabled to use the filesystem cache; directIO is not recommended. If sufficient memory is available, the current working directory can be changed to /dev/shm and the runki script can collect the data in-memory and then copied to persistent storage later. After installing the LinuxKI Toolset, a 20-second trace dump can easily be obtained as follows:
or
When the data collection is complete, you will see a message similar to the following...
Trace analysisAfter data collection, a default set of reports can be generated as follows:
Most of the generated reports are text based and can be viewed with a standard editor or text viewer. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论