Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a63a3d4d
Commit
a63a3d4d
authored
Nov 15, 2011
by
Pieter Noordhuis
Browse files
Update README on allocators
parent
5bb2c88e
Changes
1
Show whitespace changes
Inline
Side-by-side
README
View file @
a63a3d4d
...
@@ -26,18 +26,19 @@ NOTE: if after building Redis with a 32 bit target you need to rebuild it
...
@@ -26,18 +26,19 @@ NOTE: if after building Redis with a 32 bit target you need to rebuild it
Allocator
Allocator
---------
---------
By default Redis compiles and links against jemalloc under Linux, since
Selecting a non-default memory allocator when building Redis is done by setting
glibc malloc() has memory fragmentation problems.
the `MALLOC` environment variable. Redis is compiled and linked against libc
malloc by default, with the exception of jemalloc being the default on Linux
systems. This default was picked because jemalloc has proven to have fewer
fragmentation problems than libc malloc.
To force
a
libc malloc
() build
use:
To force
compiling against
libc malloc
,
use:
% make
FORCE_LIBC_
MALLOC=
yes
% make MALLOC=
libc
In all the other non Linux systems the libc malloc() is used by default.
To compile against jemalloc on Mac OS X systems, use:
On Mac OS X you can force a jemalloc based build using the following:
% make MALLOC=jemalloc
% make USE_JEMALLOC=yes
Verbose build
Verbose build
-------------
-------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment