-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suricata: regular lock ups in IPS mode #710
Comments
|
Please stop posting issues without proper descriptions. I'm going to delete this in 10 minutes if there is no hint of what this actually refers to. |
|
It was a keystroke mistake which accidentally created the issue before it was ready... |
|
At least SC_ERR_SYSCALL is harmless and already reported upstream. https://redmine.openinfosecfoundation.org/issues/1606 Did you indeed select no rules but still enabled IPS? |
|
OK about SC_ERR_SYSCALL I do have rules enabled, there just isn't one named rbn-malvertisers. There is a rbn ruleset in the list, but it's not enabled. How do I trace the lockups? process jumps from 2% to 10% and there seems to be nothing in the logs and it's not related to a rule either. That's the stats before the last restart |
|
procstat when "locked up" is not different than when it's running properly. |
|
I'm still testing this. I've tried using polling, but apart from burning my CPUs, it didn't solve anything. |
|
I'm not experiencing the issue any more on 16.1 with Suricata 3.0 (release) compiled with clang37, so closing this. |
|
Good to know, thank you. 10.2 has clang 3.4 in base. I suspect any gcc would be fine as well? |
|
Of course, as I wrote this, the problem happened again :D. I've got a bit more info this time, but I don't think that's something you can fix as it's probably driver related. Any hints of a tunable which may help would be appreciated though. I've turned powerd off and I'll see if it changes anything. So it's an interrupt which "locks up": irq259: re0 |
|
At one point, restarting Suricata wouldn't help. All I got was A reboot was necessary. To test I'm using torrents which create lots of connections. |
|
I've played with a lot of tunables and it's always the same symptoms. At some point Suricata simply can't talk to the network card any more. It doesn't matter if the NIC is using interrupts, a fast queue or polling. Although the drivers can be blamed (I'm going to compile the ones from Realtek to see if it makes a difference), maybe netmap needs to be updated (I'v noticed lots of movement in the repository these past months) or simply Suricata is not ready yet for netmap. |
|
I'm still suspecting re(4) issues over everything else. |
|
It's a good thing netmap comes with a packed generator, it makes things easier to test (100% reproducible). The problem has been reported upstream since the driver modifications are provided by the netmap package. I suspect netmap is not piloting the card properly and is flooding it with more information that it can handle. |
|
This can be temporarily fixed by enabling jumbo frames on that interface. I suspect this workaround in the netmap header is not working
|
Env
Problem
Serious lockups which block the entire LAN. The only solutions is to have physical access and restart suricata.
Interface
Logs
suricata.log
procstat when "locked up"
The text was updated successfully, but these errors were encountered: