summaryrefslogtreecommitdiff
path: root/src/config.h
Commit message (Collapse)AuthorAgeFilesLines
* Check that tcp-backlog is matched by /proc/sys/net/core/somaxconn.antirez2014-12-041-0/+1
|
* Improve accuracy of HAVE_ATOMIC dependency checkSamuel Chou2014-08-081-1/+6
| | | | | | | [I had to split out the clang check due to clang *really* not liking the __GLIBC_PREREQ macro; -matt] Closes #1456
* Allow __powerpc__ to define HAVE_ATOMIC tooMatt Stancliff2014-06-261-1/+1
| | | | | | | | | | | | | | | | From mailing list post https://groups.google.com/forum/#!topic/redis-db/D3k7KmJmYgM In the file “config.h”, the definition HAVE_ATOMIC is used to indicate if an architecture on which redis is implemented supports atomic synchronization primitives. Powerpc supports atomic synchronization primitives, however, it is not listed as one of the architectures supported in config.h. This patch adds the __powerpc__ to the list of architectures supporting these primitives. The improvement of redis due to the atomic synchronization on powerpc is significant, around 30% to 40%, over the default implementation using pthreads. This proposal adds __powerpc__ to the list of architectures designated to support atomic builtins.
* Define HAVE_ATOMIC for clang.antirez2014-05-071-1/+1
|
* Set proctitle: avoid the use of __attribute__((constructor)).Stam He2013-02-271-0/+2
| | | | | | | | | | | | This cased a segfault in some Linux system and was GCC-specific. Commit modified by @antirez: 1) Stripped away the part to set the proc title via config for now. 2) Handle initialization of setproctitle only when the replacement is used. 3) Don't require GCC now that the attribute constructor is no longer used.
* Set process name in ps output to make operations safer.antirez2013-02-261-0/+12
| | | | | | | | | | | | | | | | | | This commit allows Redis to set a process name that includes the binding address and the port number in order to make operations simpler. Redis children processes doing AOF rewrites or RDB saving change the name into redis-aof-rewrite and redis-rdb-bgsave respectively. This in general makes harder to kill the wrong process because of an error and makes simpler to identify saving children. This feature was suggested by Arnaud GRANAL in the Redis Google Group, Arnaud also pointed me to the setproctitle.c implementation includeed in this commit. This feature should work on all the Linux, OSX, and all the three major BSD systems.
* Not every __sun has backtrace().antirez2013-01-211-1/+1
| | | | | | I don't know how to test for Open Solaris that has support for backtrace() so for now removing the #ifdef that breaks compilation under other Solaris flavors.
* Fix config.h endianess detection to work on Linux / PPC64.antirez2012-12-111-2/+15
| | | | | | | | | | | | | | Config.h performs endianess detection including OS-specific headers to define the endianess macros, or when this is not possible, checking the processor type via ifdefs. Sometimes when the OS-specific macro is included, only __BYTE_ORDER is defined, while BYTE_ORDER remains undefined. There is code at the end of config.h endianess detection in order to define the macros without the underscore, but it was not working correctly. This commit fixes endianess detection fixing Redis on Linux / PPC64 and possibly other systems.
* Use more fine grained HAVE macros instead of HAVE_PROCFS.antirez2012-11-211-1/+3
|
* BSD license added to every C source and header file.antirez2012-11-081-0/+29
|
* Marginally more robust glibc version test for sync_file_range detection.antirez2012-10-261-1/+1
|
* patch config.h for sync_file_rangecharsyam2012-10-261-2/+3
|
* Fix compilation on Linux kernels or glibc versions lacking sync_file_range().antirez2012-10-251-0/+13
| | | | | | This fixes issue #667. Many thanks to Didier Spezia for the fix.
* Incrementally flush RDB on disk while loading it from a master.antirez2012-08-281-0/+8
| | | | | | | | | | | | | | This fixes issue #539. Basically if there is enough free memory the OS may buffer the RDB file that the slave transfers on disk from the master. The file may actually be flused on disk at once by the operating system when it gets closed by Redis, causing the close system call to block for a long time. This patch is a modified version of one provided by yoav-steinberg of @garantiadata (the original version was posted in the issue #539 comments), and tries to flush the OS buffers incrementally (every 8 MB of loaded data).
* first cut at event port supportDave Pacheco2012-05-151-0/+7
|
* Everything x86 is little endianPieter Noordhuis2012-04-111-4/+5
|
* Fix the build on Mac OS X, where features.h is non-existentJakub Wieczorek2012-02-261-5/+4
|
* use gcc sync builtins for memory counter when possiblePremysl Hruby2012-02-261-0/+9
|
* Solaris has backtrace(3)Pieter Noordhuis2012-02-211-1/+1
|
* ZMALLOC related stuff removed from config.h. They are now defined in zmalloc.hantirez2011-06-201-29/+0
|
* Show memory allocator in INFO outputPieter Noordhuis2011-05-051-1/+7
|
* More allocatorsPieter Noordhuis2011-05-051-0/+7
|
* Ehm... sorry if we don't support PDP endianessantirez2011-03-091-2/+1
|
* byte ordering detection in config.hantirez2011-03-091-6/+58
|
* Exclusively use either tcmalloc or OSX's native malloc_size()Pieter Noordhuis2010-10-231-5/+5
|
* Don't use prefix when malloc_size() can be calledPieter Noordhuis2010-10-231-2/+11
| | | | | Also, use tcmalloc functions explicitly via macros to prevent symbol lookups to resolve to native malloc/free on OSX.
* memory fragmentation reporting in INFO also added for Mac OS Xantirez2010-09-021-0/+5
|
* memory fragmentation ratio in INFO outputantirez2010-09-021-0/+5
|
* redis.c split into many different C files.antirez2010-07-011-0/+45
networking related stuff moved into networking.c moved more code more work on layout of source code SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;) cleanly compiling again after the first split, now splitting it in more C files moving more things around... work in progress split replication code splitting more Sets split Hash split replication split even more splitting more splitting minor change