In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge about how to test the performance of Linux server. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's learn about it.
1. Install sysbench yum-y install sysbenchcheck it
Man sysbench2, CPU Benchmark (running performance) testing CPU running performance
Sysbench-- test=cpu-- cpu-max-prime=20000 run test results
$sysbench-test=cpu-cpu-max-prime=20000 run sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Doing CPU performance benchmark Threads started! Done. Maximum prime number checked in CPU test: 20000 Test execution summary: total time: 23.5990s total number of events: 10000 total time taken by event execution: 23.5983 per-request statistics: min: 2.34ms avg: 2. 36ms max: 5.32ms approx. 95 percentile: 2.41ms Threads fairness: events (avg/stddev): 10000.00000.00 execution time (avg/stddev): 23.5983Accord0.00 record data total time taken by event execution: 23.5983
3. Memory Benchmark (running performance)
Test read performance
Sysbench-test=memory-memory-block-size=1K-memory-scope=global-memory-total-size=100G-memory-oper=read run test results
Sysbench-- test=memory-- memory-block-size=1K-- memory-scope=global-- memory-total-size=100G-- memory-oper=read run sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Doing memory operations speed test Memory block size: 1K Memory transfer size: 102400M Memory operations type: read Memory scope type: global Threads started! Done. Operations performed: 104857600 (6045253.78 ops/sec) 102400.00 MB transferred (5903.57 MB/sec) Test execution summary: total time: 17.3454s total number of events: 104857600 total time taken by event execution: 12.1786 per-request statistics: min: 0.00ms avg: 0.00ms max: 0.06ms approx. 95 percentile: 0.00ms Threads fairness: events (avg/stddev): 104857600.0000max 0.00 execution time (avg/stddev): 12.1786hip 0.00 record data 102400.00 MB transferred (5903.57 MB/sec)
Test write performance
Sysbench-test=memory-memory-block-size=1K-memory-scope=global-memory-total-size=100G-memory-oper=write run test results
Sysbench-- test=memory-- memory-block-size=1K-- memory-scope=global-- memory-total-size=100G-- memory-oper=write run sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Doing memory operations speed test Memory block size: 1K Memory transfer size: 102400M Memory operations type: write Memory scope type: global Threads started! Done. Operations performed: 104857600 (4056443.11 ops/sec) 102400.00 MB transferred (3961.37 MB/sec) Test execution summary: total time: 25.8496s total number of events: 104857600 total time taken by event execution: 20.6986 per-request statistics: min: 0.00ms avg: 0.00ms max: 0.08ms approx. 95 percentile: 0.00ms Threads fairness: events (avg/stddev): 104857600.0000 execution time 0.00 execution time (avg/stddev): 20.6986Comp0.00 recording result
102400.00 MB transferred (3961.37 MB/sec) * 1 * | 4**IO Benchmark (running performance) * *
Create a file
Sysbench-- test=fileio-- file-total-size=1G prepare $sysbench-- test=fileio-- file-total-size=1G prepare sysbench 0.4.12: multi-threaded system evaluation benchmark 128 files, 8192Kb each, 1024Mb total Creating files for the test... Test read and write performance
Sysbench-test=fileio-- file-total-size=1G-- file-test-mode=rndrw-- init-rng=on-- max-time=300-- max-requests=0 run $sysbench-- test=fileio-- file-total-size=1G-- file-test-mode=rndrw-- init-rng=on-- max-time=300-- max-requests=0 run sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Initializing random number generator from timer. Extra file open flags: 0128 files, 8Mb each 1Gb total file size Block size 16Kb Number of random requests for random IO: 0 Read/Write ratio for combined random IO test: 1.50 Periodic FSYNC enabled, calling fsync () each 100 requests. Calling fsync () at the end of test, Enabled. Using synchronous I/O mode Doing random r/w test Threads started! Time limit exceeded, exiting... Done. Operations performed: 33000 Read, 22000 Write, 70340 Other = 125340 Total Read 515.62Mb Written 343.75Mb Total transferred 859.38Mb (2.8644Mb/sec) 183.32 Requests/sec executed Test execution summary: total time: 300.0153s total number of events: 55000 total time taken by event execution: 0.4013 per-request statistics: min: 0.00ms avg: 0.01ms max: 0.10ms approx. 95 percentile: 0.01ms Threads fairness: events (avg/stddev): 55000.0000 execution time (avg/stddev): 0.4013max 0.00 record result
Read 515.62Mb Written 343.75Mb Total transferred 859.38Mb (2.8644Mb/sec) above is all the content of the article "how to test the performance of Linux server". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.