suricata
|
Go to the source code of this file.
Typedefs | |
typedef enum OSHugepageAction_ | OSHugepageAction |
Enumerations | |
enum | OSHugepageAction_ { OS_UNKNOWN, OS_LINUX_SYS_DEVICES } |
Functions | |
void | SystemHugepageSnapshotDestroy (SystemHugepageSnapshot *s) |
SystemHugepageSnapshot * | SystemHugepageSnapshotCreate (void) |
The function creates a snapshot of the system's hugepage usage per NUMA node and per hugepage size. The snapshot is used to evaluate the system's hugepage usage after initialization of Suricata. More... | |
void | SystemHugepageEvaluateHugepages (SystemHugepageSnapshot *pre_s, SystemHugepageSnapshot *post_s) |
The function compares two hugepage snapshots and prints out recommendations for hugepage configuration. More... | |
Definition in file util-hugepages.c.
typedef enum OSHugepageAction_ OSHugepageAction |
enum OSHugepageAction_ |
Enumerator | |
---|---|
OS_UNKNOWN | |
OS_LINUX_SYS_DEVICES |
Definition at line 40 of file util-hugepages.c.
void SystemHugepageEvaluateHugepages | ( | SystemHugepageSnapshot * | pre_s, |
SystemHugepageSnapshot * | post_s | ||
) |
The function compares two hugepage snapshots and prints out recommendations for hugepage configuration.
[in] | pre_s | a pointer to the snapshot taken before Suricata initialization |
[in] | post_s | a pointer to the snapshot taken after Suricata initialization |
Definition at line 363 of file util-hugepages.c.
SystemHugepageSnapshot* SystemHugepageSnapshotCreate | ( | void | ) |
The function creates a snapshot of the system's hugepage usage per NUMA node and per hugepage size. The snapshot is used to evaluate the system's hugepage usage after initialization of Suricata.
Definition at line 323 of file util-hugepages.c.
void SystemHugepageSnapshotDestroy | ( | SystemHugepageSnapshot * | s | ) |
Definition at line 304 of file util-hugepages.c.
References SystemHugepageSnapshot::num_nodes.
Referenced by SuricataPostInit().