CPU 부하 테스트 - CPU buha teseuteu

오토스케일링과 같이 서버의 과부하를 높여 테스트를 해야 하는 경우가 있다. 실제 트래픽을 유발해서 테스트를 하는 것이 가장 좋은 방법이 지만, 시간과 자원이 여유치 못할 때 서버의 직접 적인 부하를 주어 테스트하는 방법이 있는데, 오늘은 이와 같은 방법을 알아보자.


- 패키지 설치

# 설치 명령어
yum install -y stress
# 버전 확인 명령어
stress --version

위의 명령어는 순서대로 패키지를 설치하고 해당 패키지의 버전을 확인하는 명령어 이다. 만약에 자신의 운영하는 서버가 EC2이고 단순히 설치가 이루어지지 않을 경우 아래의 명령어를 실행한 후 다시 패키지를 설치해보자.

# 아마존 리눅스 전용 epel 설치 명령어
amazon-linux-extras install epel -y

- 사용명령어

stress --help

위의 help 옵션을 주어 보면 자세히 해당 명령어의 기능에 대한 설명이 나온다.

 

-?, --help         show this help statement
     --version      show version statement
 -v, --verbose      be verbose
 -q, --quiet        be quiet
 -n, --dry-run      show what would have been done
 -t, --timeout N    timeout after N seconds
     --backoff N    wait factor of N microseconds before work starts
 -c, --cpu N        spawn N workers spinning on sqrt()
 -i, --io N         spawn N workers spinning on sync()
 -m, --vm N         spawn N workers spinning on malloc()/free()
     --vm-bytes B   malloc B bytes per vm worker (default is 256MB)
     --vm-stride B  touch a byte every B bytes (default is 4096)
     --vm-hang N    sleep N secs before free (default none, 0 is inf)
     --vm-keep      redirty memory instead of freeing and reallocating
 -d, --hdd N        spawn N workers spinning on write()/unlink()
     --hdd-bytes B  write B bytes per hdd worker (default is 1GB)

Example: stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s

 

명령어 실행 시 위와 같이 자세한 사용법이 나오면 친절하게 예제도 확인할 수 있다. 그중 자주 사용하는 옵션은 cpu와 timeout 이며, 이 두 가지만 사용해도 충분히 스트레스 테스트를 해볼 수 있다.

Stress testing is an important part of ensuring PC system stability and fault finding. We teach you how to do it with a plethora of different software.

how we stress test CPU and RAM

Table of Contents Table of Contents

Best tools to stress test your PC: When you’ve just dropped a substantial amount of money on a brand-new gaming PC, you should always make sure it’s working as intended. A PC stress test can help you achieve this. In this article, we will be covering RAM and CPU stress test tools to push your components to the maximum, while testing component stability in the process. 

Stress testing isn’t just for new systems however, stress testing is a valuable tool for older systems to ensure everything is running smoothly and performing as it should. Stressing your system can be especially useful to test overclock stability on newly overclocked components, and to make sure older parts remain fully functional. 

In this guide, we are going to outline the best RAM and CPU stress tests to perform along with where to download them online. We will also be including some hardware monitoring tools, to allow you to keep track of your system and how it’s performing. 

Please note that we do not cover the GPU in this article, if you’d like to know more about GPU overclocking then please visit our ‘how to stress test your GPU’ page.


VIDEO: How to stress test your PC, RAM & CPU


What is a stress test?

Stress tests are a pretty simple concept. A stress test can be both synthetic or real-world, but most of the time stress tests are synthetic for the sake of controlling as many variables as possible. Stress tests are designed to test component stability, this is usually done when applying overclocks/underclocks or a component fault is suspected.

Samsung S95B 65″ QD-OLED TV

Samsung introduces the latest QD-OLED TV technology in the S95B – offering up stunning color accuracy, brightness, and contrast. Alongside these characteristics, the S95B also features a 120Hz refresh rate, near-instantaneous response time, and several HDMI 2.1 ports – making it the perfect choice for entertainment and gaming scenarios. Read more

*Prices are subject to change. WePC is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Learn more

The idea behind stress testing is to create a maximum load on a component and sustain that load until an issue presents itself, or the component passes the stress test.

What’s the difference between synthetic testing and real-world testing?

There are two main types of testing and both are required in different scenarios. There are both advantages and disadvantages to both. The exact dynamics of stress testing can become pretty complex, but we will aim to give an easy-to-understand explanation for both.

Synthetic testing

Synthetic testing is when a piece of software creates a set of defined instructions that do not differ or alter during the testing process, this is designed to provide repeatable results with very few software-oriented variables. An advantage to synthetic software testing is that the component can be reliably loaded to 100% load constantly.

For example, Aida64 has an in-built stress test tool that loads the CPU at 100% constantly and consistently. This is achieved by asking the CPU to complete complex instructions, whilst maintaining a steady stream of uninterrupted instructions that never differ from one another, so as to eliminate any software-related performance4 anomalies.

Real-world testing

Real-world testing is designed to create a ‘real-world’ representation of performance and is essentially mimicking your PC during normal usage conditions. Often real-world testing incorporates more than one component and is usually much less targeted than synthetic testing.

For example, a Prime95 test is a synthetic workload and targets the CPU specifically. Meanwhile, a gaming session is a real-world stress test and targets most PC components, mainly GPU, CPU, and RAM.

The idea here is to test how the component performs collectively with the rest of your system, this test is mainly for fault detection within the system as a whole, or to test a specific component’s reaction, thermals, or power draw in a real-world scenario.


Whether you want to check the stability of your CPU after overclocking it or want to see how hot it is running, you are going to want a CPU stress test tool. The tools we recommend below are the best you can use for the job and are worth a download so you can start stress-testing your CPU. Here are the best tools to stress test your PC with.

Prime95

prime95 CPU stress test

When it comes to CPU stress testing, the most reliable and widely popular Prime95 is a go-to tool. This tool finds the Mersenne prime number using the CPU and generates a very heavy workload. If your PC can manage running this stress test for a couple of hours (1-2) we’d make a pretty safe assumption that your PC is working as it should.

There are a few different tests you can run when you want to stress your CPU. You can run small FFT’s to reveal potential issues early on. The blended test could be very useful as it will stress your CPU and RAM at the same time. But using this method to fault find can be a bit of an issue due to the multiple components tested, leaving you unsure where the fault lies.

If you’d like to try Prime95, download it here.

IntelBurn Test

image 5

IntelBurn Test is another free stress test tool that will enable you to push your processor to the limit. You can use this tool to check how stable your component is, however, due to this software having very few in-bult failsafe’s, it’s lead to some negative feedback over the years with users reporting damage due to their CPUs. This isn’t exclusive to Intel Burn Test, all of the stress testing tools on this list have the potential to cause harm if your overclocks aren’t properly configured.

Don’t let that put you off, The IntelBurn test is still a very well renowned CPU stress testing tool.

If you want try the IntelBurn Test, download it here.

Adia64

aida

Aid64 is the only stress test tool for your CPU on the list that will cost you money. The package starts at around $39.95, which isn’t that expensive but for most out there its completely unnecessary with the free tools bringing enough capabilities to the table. That being said Aida64 is one of the most reliable and in-depth CPU stress testing tools available today.

Aida64 needs to be paid for you to get full system diagnostic utility when compared to the free ones. This type of kit is aimed more towards computer engineers, Professionals in the IT industry, and enthusiasts. but you can get a free trial that lasts a limited number of days with limited features, and the trial does indeed include the stress testing suite.

Download AIda64 here.


RAM can sometimes be forgotten about when it comes to stress testing, but for a thorough system test, it is highly important. With a RAM tool, you can diagnose potential issues from your components and also check for stability, especially when overclocking. When RAM fails it can cause a whole host of issues elsewhere in the PC, making RAM faults sometimes difficult to diagnose.

Because of this the best practice is to check the RAM physically when feasible.

Checking RAM physically

Corsair 5000T 22 best tools to stress test your PC

The best practice when it comes to RAM is to check it physically, doing this is simple.

If you have two sticks of RAM, remove one and see if the fault persists. If it does, remove the other stick and replace it with the one you removed first, swapping the sticks if you will.
Failing that, it’s time to switch up the slots. Try placing a single stick of RAM in the proper slot, or any other slot you haven’t been using, this is to check the slots on the motherboard hasn’t gone bad. Repeat this for all slots available.

Prime95(Blend Test)

prime95blend best tools to stress test your PC

Prime95 is best suited for CPU testing; however, its blended test can be useful for stress testing RAM and checking for stability when overclocking. When torture testing within the program, you will see an option to Blend, but it is worth noting that this tool won’t check your RAM for potential errors. If you are looking for a better diagnostic tool for your RAM, then the ones below are a much better solution.

Download here.

MemTest86+

Memtest86 screenshot best tools to stress test your PC

The best tool available for checking RAM stability and potential RAM issues is MemTest86+. Once MemTest is loaded it will automatically begin stress testing your RAM, and it will indicate clearly if you have any current hardware issues or if your RAM is unstable from a recent overclock. It is worth noting that this tool needs to be downloaded to a USB pen as it isn’t a windows application. You will want to set your system to boot from the USB drive then as mentioned the software will automatically begin on reboot.

Just make sure you have a couple of hours to spare, this test is thorough and takes a long time to complete.

MemTest 64+

best tools to stress test your PC memtest

MemTest86+ is always recommended for RAM stress testing as it is simply the best out there. However, MemTest64+ offers a more user-friendly solution. MemTest64+ works within Windows, making it more appealing to some. And is available for 64bit systems, most computers in this day and age are based on 64bit systems.


So, what are the best tools to stress test your PC? It is always a good idea to monitor your system when performing stress tests. Monitoring tools are a good way to keep track of temperatures, and load levels and some of these tools can be used in unison with benchmarking software allowing for better tracking.

HWMonitor

HWMonitor

A handy tool for component temperatures is HWMonitor. This tool is straightforward to use and will give you real-time info on thermals, clock speeds, and power usage.

While each component has varied max temperatures it can operate at; it is always good to keep your CPU under 75°C.

Download HW monitor here.

HWiNFO64

HWiNFO64 CPU stress test

This tool is quite advanced when compared to the other two. With HWiNFO64, you can monitor multicore components in a user-friendly manner. When running this tool, you can track temps on your CPU, GPU, RAM, and motherboard, while also tracking fan speeds and load times. This is a be-all and end-all tool, meaning it has pretty much everything you’ll ever need. Providing your PC has a sensor for whatever you’re trying to pull data from, HWINFO may be magical but it cant create sensors where there aren’t any.

If you’d like to give HWINFO a try, you can download here.

Core Temp

core temp

Core temp is a relatively simple tool, but it does exactly what it says on the tin. You get real-time temp readings, and you can easily see load percentages for your CPU. Core Temps is a bit more advanced for the Intel CPU users out there as you can see the information for each core of your processor however with AMD you can only see an overall temperature. We don’t know why this is as other software’s can report a per-core temperature on AMD CPUs, we guess it’s just a limitation on Core Temps end.

This tool also lets you see a bit more information on the CPU you have installed, such as displaying voltages and the frequencies.

If you’d like to give Core Temp a spin, download here.


Final word

There we have the best tools to stress test your PC, really all of them will work for you; it just comes down to picking what is best for you. Make sure before you begin, that you download one of the monitoring tools online to give you an idea of your system’s current status and to see what the stress testing does to your components.

These tools will come in handy for anyone looking to overclock and maximize the performance of their system. You will be able to push these components until they become unstable without worrying that you may break something. These tools can often give a good indication as to the health of your components and will help you diagnose the issue. We hope you enjoyed the best tools to stress test your PC article.

If you have any questions concerning PC issues, feel free to comment below or head over to the WePC community and we’ll do our best to help you.