# CPU threads stress test problem

**URL:** <https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849>\
**Category:** General Usage\
**Created:** [January 16, 2025, 9:45pm UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849 "2025-01-16T21:45:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamad\_Badiez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamad_badiez/32/213635_2.png) [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Post date:** [January 16, 2025, 9:45pm UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849/1 "2025-01-16T21:45:34Z")

</div>

Hi everybody,

I want to test my CPU threads in full load.  
I wrote this code:

[https://github.com/mbzadegan/Fortran\_Julia\_HPC/blob/main/cpu\_stress\_test.jl](https://cpu_stress_test.jl)

When I run it with the `-t auto` option, my CPU threads get a full load of 100% for around 2 seconds, and then the load drops to around 60% on all CPU threads!

Why my CPU usage was not kept at %100 till the program ended?

Thank you.

---

<div class="post-metadata">

**Author:** ![brainandforce](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brainandforce/32/211054_2.png) [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Post date:** [January 16, 2025, 10:07pm UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849/2 "2025-01-16T22:07:16Z")

</div>

Just to let you know, the link to your code is broken [(here’s a working link)](https://github.com/mbzadegan/Fortran_Julia_HPC/blob/main/cpu_stress_test.jl).

Are you using a CPU with asymmetric multiprocessing? (ARM big.LITTLE, 12th generation and later Intel CPUs)

---

<div class="post-metadata">

**Author:** ![Mohamad\_Badiez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamad_badiez/32/213635_2.png) [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Post date:** [January 16, 2025, 10:11pm UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849/3 "2025-01-16T22:11:10Z")

</div>

Thank you for your update,

I’m using **Intel (R) Core™ i5-6500T CPU @ 2.50GHz** CPU.

---

<div class="post-metadata">

**Author:** ![Mohamad\_Badiez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamad_badiez/32/213635_2.png) [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Post date:** [January 20, 2025, 7:54am UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849/4 "2025-01-20T07:54:56Z")

</div>

For your update, there is no any problem when I run the Fortran alternative code and the CPU keep %100 till program will be end. So, I think some configuration should be done in the Julia.
