linux工具总结
Posted 银灯玉箫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux工具总结相关的知识,希望对你有一定的参考价值。
测试系统性能
-
sysbench Sysbench is an open-source and multi-purpose benchmark utility that evaluates the parameter features tests for CPU, memory, I/O, and database (mysql) performance.
-
stress and stress-ng It is a simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system.
-
dd Use dd command to monitor the reading and writing performance of a disk device
-
wrk2. a HTTP benchmarking tool based mostly on wrk. wrk2 is wrk modifed to produce a constant throughput load, and accurate latency details to the high 9s (i.e. can produce accurate 99.9999%'ile when run long enough).
-
YCSB. Yahoo! Cloud Serving Benchmark (YCSB)
https://github.com/brianfrankcooper/YCSB/
The goal of the YCSB project is to develop a framework and common set of workloads for evaluating the performance of different “key-value” and “cloud” serving stores. The project comprises two things:
The YCSB Client, an extensible workload generator
The Core workloads, a set of workload scenarios to be executed by the generator Although the core workloads provide a well rounded picture of a system’s performance, the Client is extensible so that you can define new and different workloads to examine system aspects, or application scenarios, not adequately covered by the core workload. Similarly, the Client is extensible to support benchmarking different databases. Although we include sample code for benchmarking HBase, Cassandra, Infinispan and MongoDB, it is straightforward to write a new interface layer to benchmark your favorite database. -
taskset.
taskset - retrieve or set a process’s CPU affinity
for i in `seq 1 number-of-CPUs`; do
taskset -c $i wrk -t 1 -c 50 -d 180s http://Reverse-Proxy-Server-IP-address/1kb.bin &
done
-
nginx performance test
nginx Plus Sizing Guide: How We Tested with wrk2 -
tc
How to limit bandwidth on Linux to better test your applications -
Intel pqos, monitor IPC and specify different memory bandwidths, LLC for different processes on X86 servers.
https://github.com/intel/intel-cmt-cat/wiki/Usage-Examples
sudo pqos -p all:29522 -
Intel pin
Pin is a dynamic binary instrumentation framework for the IA-32, x86-64 and MIC instruction-set architectures that enables the creation of dynamic program analysis tools. Some tools built with Pin are Intel® VTune™ Amplifier, Intel® Inspector, Intel® Advisor and Intel® Software Development Emulator (Intel® SDE).
https://www.intel.com/content/dam/develop/external/us/en/documents/cgo2013-256675.pdf -
CPULimit
Limit CPU Usage of a Process in Linux with CPULimit Tool
$ sudo cpulimit --pid 17918 --limit 50
以上是关于linux工具总结的主要内容,如果未能解决你的问题,请参考以下文章
Linux编程二Linux常见工具和项目开发(思维导图总结)