Skip to content
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

Analyze DPDK hugepages and be more user-friendly with non-existing user and check for shutdown before accessing Unix sockets v5 #9549

Closed
wants to merge 5 commits into from

Conversation

lukashino
Copy link
Contributor

Follow-up of #9466

PR is a combination of:

https://redmine.openinfosecfoundation.org/issues/6278
https://redmine.openinfosecfoundation.org/issues/5966
https://redmine.openinfosecfoundation.org/issues/6272

Describe changes:

  • check for the shutdown phase before accessing Unix sockets
  • rebased to the newest master

To use a pull request use a branch name like pr/N where N is the
pull request number.

Alternatively, SV_BRANCH may also be a link to an
OISF/suricata-verify pull-request.

SV_REPO=
SV_BRANCH=pr/1358
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Lukas Sismis added 5 commits October 4, 2023 16:17
If a user allocates too many hugepages and those are largely not used
then Suricata suggests that the user can lower the amount of hugepages
and therefore save memory for other purposes.

Ticket: OISF#5966
If a user doesn't allocate/allocates too little hugepages,
Suricata fails to start and outputs a hint to increase
number of hugepages (if enabled).

Ticket: OISF#5966
FatalError replaced function return because the caller (suricata.c) did not
handle the return value.
Make sure Suricata is in the running state before
you attempt to execute commands on the Unix sockets.
Likely with a longer time span between the initial shutdown command
and actual closing of Unix sockets resulted in an error of invalid
file descriptors.

Ticket: OISF#6272
@victorjulien
Copy link
Member

OISF/suricata-verify#1358 will need to be rebased to have a chance at a passing CI

@lukashino
Copy link
Contributor Author

Continues in #9562

@lukashino lukashino closed this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants