Commit Graph
38 Commits
Author SHA1 Message Date
David CARLIER 871cc200a0 Fixes build warning when CACHE_LINE_SIZE is already defined. (#11389)
* Fixes build warning when CACHE_LINE_SIZE is already defined
* Fixes wrong CACHE_LINE_SIZE on some FreeBSD systems where it could be set to 128 (e.g. on MIPS)
* Fixes wrong CACHE_LINE_SIZE on Apple M1 (use 128 instead of 64)

Wrong cache line size in that case can some false sharing of array elements between threads, see #10892
2022-10-16 07:51:44 +03:00
David CARLIER ff80809053 register debug support on illumos/solaris. (#11335) 2022-10-02 16:36:31 +03:00
David CARLIER 22f763aa10 zmalloc api set malloc attributes for api giving non aliased pointers. (#11196)
micro optimizations, giving the hints that the returned addresses
 are guaranteed to be unique. The alloc_size attribute gives an extra hint
 about the source of the size, useful mostly for calloc-like calls or when there
 are extra arguments.
2022-09-05 16:09:28 +03:00
David CARLIERandOran Agra bdcd4b3df8 zmalloc_get_rss implementation for haiku. (#10687)
also fixing already defined constants build warning while at it.

Co-authored-by: Oran Agra <oran@redislabs.com>
2022-05-08 15:12:17 +03:00
David CARLIER ef68deb3c2 support tcp-keepalive config interval on macOs (#10667)
Till now, on MacOS we only used to enable SO_KEEPALIVE,
but we didn't set the interval which is configurable via the `tcp-keepalive` config.
This adds support for that on MacOS, to match what we already do on Linux.
2022-05-02 09:37:14 +03:00
David CARLIER aba2865c86 Add socket-mark-id support for marking sockets. (#10349)
Add a configuration option to attach an operating system-specific identifier to Redis sockets, supporting advanced network configurations using iptables (Linux) or ipfw (FreeBSD).
2022-04-20 09:29:37 +03:00
David CARLIER 834fa5870c zmalloc_get_rss openbsd implementation (#10149)
Add support for getting the RSS in OpenBSD
2022-01-19 20:56:12 +02:00
David CARLIER 50fa627b90 zmalloc_get_rss netbsd impl fix proposal. (#10116)
Seems like the previous implementation was broken (always returning 0)

since kinfo_proc2 is used the KERN_PROC2 sysctl oid is more appropriate
and also the query's length was not necessarily accurate (6 here).
2022-01-16 10:03:09 +02:00
David CARLIER 7da7d2aa8e checkTcpBacklogSettings check for solaris based systems. (#10109) 2022-01-15 20:39:05 +02:00
David CARLIERandYossi Gottlieb 2c5573e894 Check somaxconn system settings on macOS, FreeBSD and OpenBSD. (#9972)
Co-authored-by: Yossi Gottlieb <yossigo@gmail.com>
2021-12-28 09:20:10 +02:00
David CARLIER 418c2e7931 TLS build fix on OpenBSD when built with LibreSSL. (#9486) 2021-09-11 22:54:09 +03:00
David CARLIER ec951cdc15 Solaris based system rss size report. (#8138) 2020-12-06 15:30:29 +02:00
David CARLIER 0719388cfb raspberry build fix. (#8095)
__ILP32__ is 32 bits ABI and does not imply x86, this patch resolves this.
2020-11-25 12:15:32 -08:00
David CARLIER f16b52cb7d redis_set_thread_title support for Haiku. (#8060) 2020-11-23 16:14:33 +02:00
David CARLIER d428de590f DragonFlyBSD resident memory amount (almost) similar as FreeBSD. (#8023) 2020-11-08 09:16:14 +02:00
David CARLIER 27f4c212f3 cpu affinity: DragonFlyBSD support (#7956) 2020-10-25 14:14:05 +02:00
David CARLIER f971a5d8ed Add support for Haiku OS (#7435) 2020-09-29 15:52:13 +03:00
David CARLIER ce8bfc56ad getting rss size implementation for netbsd (#7293) 2020-09-29 08:49:35 +03:00
David CARLIER c3edaa7941 Further NetBSD update and build fixes. (#7831)
mainly backtrace and register dump support.
2020-09-23 10:00:31 +03:00
David CARLIER eabe3eaec0 debug.c: NetBSD build warning fix. (#7810)
The symbol base address is a const on this system.
2020-09-19 12:24:40 +03:00
David Carlier 4715ce5903 NetBSD build update.
This platform supports CPU affinity (but not OpenBSD).
2020-05-12 21:21:22 +01:00
David Carlier 6548157293 debug, dump registers on arm too. 2020-03-07 10:43:41 +00:00
David Carlier 960c25ac0a Add missing header 2019-11-11 13:06:08 +00:00
David Carlier 5a8a005026 Adding AnonHugePages case + comments 2019-09-20 11:01:36 +01:00
David Carlier 819a661be5 Getting region date per process in Darwin 2019-09-15 14:05:00 +01:00
David Carlier f1c6c658ac Updating resident memory request impl on FreeBSD. 2019-07-28 14:33:57 +01:00
David Carlier 4de88828d9 build fix 2019-03-28 06:38:16 +00:00
David Carlier ac086b1932 OpenBSD support.
Special treatment here as backtrace support is optional,
cannot be found via pkg-config and similar neither.
2018-11-25 08:10:26 +00:00
David Carlier 69ca907868 Backtrace/register dump on BSD.
FreeBSD/DragonFlyBSD does have backtrace only it does not
belong to libc.
2018-11-25 07:21:56 +00:00
David Carlier 4e0af5efd4 DragonFlyBSD little build fix 2018-11-11 18:49:55 +00:00
David Carlier 1d98666327 only FreeBSD change/little warning addressing 2018-11-08 10:13:52 +00:00
David Carlier e84d327fc1 Merge branch 'clang_build_fix_warnings' of https://github.com/devnexen/redis into clang_build_fix_warnings 2018-10-31 09:53:25 +00:00
David Carlier cf2f5e19d9 tweak form feedback 2018-10-31 09:53:07 +00:00
David Carlier 9d6fbf0e00 allow flavors 2018-10-30 21:41:49 +00:00
David Carlier 6534b3e09e Fix clang build.
Some math functions require c11 standard.
2018-10-30 13:23:43 +00:00
David Carlier ae3bfe583e needs it for the global 2018-10-26 14:12:47 +00:00
David Carlier 0b73d0a8d2 Fix non Linux build.
timezone global is a linux-ism whereas it is a function under BSD.
Here a helper to get the timezone value in a more portable manner.
2018-10-26 14:02:09 +00:00
David Carlier 62689ef0cf Fix undefined behavior constant defined. 2017-11-19 16:23:42 +00:00