Within the default audit.rules
file on CentOS 5, 6 and 7, the following is set:
# Increase the buffers to survive stress events.
# Make this bigger for busy systems
-b 320
However, there is no mention of what unit the provided number is.
The man page for auditctl
is not clear:
OPTIONS
-b backlog
Set max number of outstanding audit buffers allowed
(Kernel Default=64) If all buffers are full, the
failure flag is consulted by the kernel for action.
I've seen recommendations for this value that encompass a huge range of possible numbers (320, 8192, all the way up to 32768 and beyond).
I want to make sure that the value I'm setting is sane and that I'm not merely covering the tracks of an inefficient audit.rules
file.
Is there some sort of implied size of a kernel / audit buffer? What would the recommendation be here?