summaryrefslogtreecommitdiffstats
path: root/libnetdata
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-01-14 00:09:02 +0200
committerGitHub <noreply@github.com>2023-01-14 00:09:02 +0200
commitf10f19c8c8bba37e8364fa6138d6ea0f6160c3ea (patch)
tree6d71bc40d56362dd4de892239a633bdcfa2183be /libnetdata
parent3e2924fd466dbc05338518412f426d34b215ef0b (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')
-rw-r--r--libnetdata/libnetdata.h6
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