Skip to content

Commit

Permalink
use ghc 7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Kostirya committed Jun 11, 2014
1 parent 8ab26f5 commit d6de7b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README
Expand Up @@ -58,6 +58,9 @@ http://by-need.blogspot.com/2013/01/redissharding-benchmark.html
Build
-----

ATTENTION! I would recommend using ghc7.8 which includes the new IO manager.
This productivity in 1.8 - 1.9 times (http://by-need.blogspot.com/2014/06/mio-benchmark-ghc-78.html).

ghc -threaded -rtsopts -O2 -feager-blackholing --make redis_sharding.hs
or
cabal configure && cabal build
Expand All @@ -73,11 +76,11 @@ Others parameters:
--port=6379
--timeout=300 (0 - disable timeout, seconds)

To use all CPU core run as
To use x CPU core run as

./redis_sharding --nodes=10.1.1.1:6380,10.1.1.1:6381,... +RTS -N
./redis_sharding --nodes=10.1.1.1:6380,10.1.1.1:6381,... +RTS -Nx

ATTENTION! +RTS -N must be after of all others parameters. To use 4 CPU core: -N4
ATTENTION! +RTS -Nx must be after of all others parameters. To use 4 CPU core: -N4


Tuning
Expand Down

0 comments on commit d6de7b9

Please sign in to comment.