diff mbox

[ovs-dev] install.md: Suggest jemalloc memory allocator

Message ID 75893F05AB419D468E0D150A71FCA0C30BB60922@G9W0339.americas.hpqcorp.net
State Accepted
Headers show

Commit Message

Rodriguez Betancourt, Esteban March 15, 2016, 11:29 p.m. UTC
Change installing documentation to suggest to use
jemalloc memory allocator.

This memory allocator showed great performance gains
when used at ovsdb-server and other components.

Signed-off-by: Esteban Rodriguez Betancourt <estebarb@hpe.com>
---
 .travis.yml | 3 +++
 INSTALL.md  | 7 +++++++
 2 files changed, 10 insertions(+)

Comments

Russell Bryant March 16, 2016, 6:42 a.m. UTC | #1
On Tue, Mar 15, 2016 at 4:29 PM, Rodriguez Betancourt, Esteban <
estebarb@hpe.com> wrote:

> Change installing documentation to suggest to use
> jemalloc memory allocator.
>
> This memory allocator showed great performance gains
> when used at ovsdb-server and other components.
>
> Signed-off-by: Esteban Rodriguez Betancourt <estebarb@hpe.com>
>

This commit is also adding another travis-ci scenario but doesn't mention
it.  It's probably not worth another revision just for that, but may be
worth adding if you need to update the commit for some other reason.
Ben Pfaff March 17, 2016, 12:11 a.m. UTC | #2
On Tue, Mar 15, 2016 at 11:29:57PM +0000, Rodriguez Betancourt, Esteban wrote:
> Change installing documentation to suggest to use
> jemalloc memory allocator.
> 
> This memory allocator showed great performance gains
> when used at ovsdb-server and other components.
> 
> Signed-off-by: Esteban Rodriguez Betancourt <estebarb@hpe.com>

Applied, thanks!
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index 2b262e4..6618073 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,8 @@  addons:
       - gcc-multilib
       - libssl-dev
       - llvm-dev
+      - libjemalloc1
+      - libjemalloc-dev
 
 before_install: ./.travis/prepare.sh
 
@@ -30,6 +32,7 @@  env:
   - KERNEL=3.14.60
   - KERNEL=3.12.53
   - KERNEL=3.10.96
+  - TESTSUITE=1 LIBS=-ljemalloc
 
 script: ./.travis/build.sh $OPTS
 
diff --git a/INSTALL.md b/INSTALL.md
index 9dadcee..fa7b40e 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -247,6 +247,13 @@  Here is an example:
       `% mkdir _gcc && (cd _gcc && ../configure CC=gcc)`
       `% mkdir _clang && (cd _clang && ../configure CC=clang)`
 
+Under certains loads the ovsdb-server and other components perform
+better when using the jemalloc memory allocator, instead of the GLibC
+memory allocator.
+
+If you wish to link with jemalloc add it to LIBS:
+
+      `% ./configure LIBS=-ljemalloc`
 
 Building the Sources
 --------------------