mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-26 13:14:16 +00:00
logsys: When corosync is compiled with --enable-small-memory-footprint, also reduce the size of the logsys SHM
Signed-off-by: Jerome Flesch <jerome.flesch@netasq.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
795aa5e24c
commit
6bec0aa227
@ -124,6 +124,12 @@
|
||||
#include "evil.h"
|
||||
#include "tsafe.h"
|
||||
|
||||
#ifdef HAVE_SMALL_MEMORY_FOOTPRINT
|
||||
#define IPC_LOGSYS_SIZE 1024*64
|
||||
#else
|
||||
#define IPC_LOGSYS_SIZE 8192*128
|
||||
#endif
|
||||
|
||||
LOGSYS_DECLARE_SYSTEM ("corosync",
|
||||
LOGSYS_MODE_OUTPUT_STDERR | LOGSYS_MODE_THREADED | LOGSYS_MODE_FORK,
|
||||
0,
|
||||
@ -132,7 +138,7 @@ LOGSYS_DECLARE_SYSTEM ("corosync",
|
||||
LOG_DAEMON,
|
||||
LOG_INFO,
|
||||
NULL,
|
||||
1000000);
|
||||
IPC_LOGSYS_SIZE);
|
||||
|
||||
LOGSYS_DECLARE_SUBSYS ("MAIN");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user