diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-01-14 00:09:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 00:09:02 +0200 |
commit | f10f19c8c8bba37e8364fa6138d6ea0f6160c3ea (patch) | |
tree | 6d71bc40d56362dd4de892239a633bdcfa2183be /libnetdata/libnetdata.h | |
parent | 3e2924fd466dbc05338518412f426d34b215ef0b (diff) |
More 32bit fixes (#14264)
* query planer weight calculation using long long
* adjust replication query ahead pipeline for smaller systems
* do not generate huge replication messages
* add message to indicate replication message was interrupted
* improved message
* max replication size 25% of sender buffer
* fix for last commit
* use less cache and smaller page sizes and fewer threads on 32-bits
* fix reserved libuv workers for 32bits
* fix detection of 32/64 bit
Diffstat (limited to 'libnetdata/libnetdata.h')
-rw-r--r-- | libnetdata/libnetdata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetdata/libnetdata.h b/libnetdata/libnetdata.h index 0f5a7ec2e1..5abe6eb854 100644 --- a/libnetdata/libnetdata.h +++ b/libnetdata/libnetdata.h @@ -15,6 +15,12 @@ extern "C" { #define NETDATA_INTERNAL_CHECKS 1 #endif +#if SIZEOF_VOID_P == 4 +#define ENV32BIT 1 +#else +#define ENV64BIT 1 +#endif + // NETDATA_TRACE_ALLOCATIONS does not work under musl libc, so don't enable it //#if defined(NETDATA_INTERNAL_CHECKS) && !defined(NETDATA_TRACE_ALLOCATIONS) //#define NETDATA_TRACE_ALLOCATIONS 1 |