# Suricata use 100% cpu

**URL:** <https://forum.suricata.io/t/suricata-use-100-cpu/2339>\
**Category:** Help\
**Created:** [March 21, 2022, 1:29am UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339 "2022-03-21T01:29:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiago\_Andrade](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/thiago_andrade/32/1347_2.png) [@Thiago\_Andrade](https://forum.suricata.io/u/Thiago_Andrade)\
**Post date:** [March 21, 2022, 1:29am UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339/1 "2022-03-21T01:29:17Z")

</div>

Hi guys,

I’m using suricata IDS mode with wazuh to block ddos attacks. It’s working but I noticed that the ip is blocked in iptables but the suricata is using 100% of the cpu.  
Even blocked on iptables does suricata still process packets? If so, is there any way to change this behavior?

Thank you!

---

<div class="post-metadata">

**Author:** ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)\
**Post date:** [March 21, 2022, 9:43pm UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339/2 "2022-03-21T21:43:41Z")

</div>

Can you give us more details?  
What version are you running in which mode?  
I would assume you use the nfqueue setup and thus you could use queue-bypass to ensure packets are still passed by if the queue is full. But would also be worth to check if the cpu load could be mitigated. But that would require more details.

---

<div class="post-metadata">

**Author:** ![suricatalfon](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/suricatalfon/32/385_2.png) [@suricatalfon](https://forum.suricata.io/u/suricatalfon)\
**Post date:** [April 4, 2022, 6:42am UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339/3 "2022-04-04T06:42:30Z")

</div>

Hi,

I have been trying to find out about the excessive use of cpu in windows systems for some time.  
There is a lot of difference in cpu usage between branches 5 and 6. With the same configuration and rules, Suricata 6 = almost 100% CPU, Suricata 5 = never exceeds 8 or 10% and normal is 2%.

---

<div class="post-metadata">

**Author:** ![pevma](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/pevma/32/29_2.png) [@pevma](https://forum.suricata.io/u/pevma)\
**Post date:** [April 4, 2022, 10:02am UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339/4 "2022-04-04T10:02:10Z")

</div>

Out of curiosity - Is it the same traffic as well? Same machines?

---

<div class="post-metadata">

**Author:** ![suricatalfon](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/suricatalfon/32/385_2.png) [@suricatalfon](https://forum.suricata.io/u/suricatalfon)\
**Post date:** [April 4, 2022, 10:19am UTC](https://forum.suricata.io/t/suricata-use-100-cpu/2339/5 "2022-04-04T10:19:05Z")

</div>

Yes, exactly. And on two different machines. In both I have installed branch 5 and it works very well. Both are Windows Server.

 ![su0000002](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/d/d64144cd61228622811024912ad57291d5a881fe.png)  
 ![su0000001](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/8/87411c3002c7d90e8ef6fa67204120aefeb09e80.png)
