diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-05-20 13:58:58 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-05-20 13:58:58 +0200 |
commit | f166bb1d500dcecb14bff13312a4e7d2a76356c7 (patch) | |
tree | bed8d0386bce4f1c042a6a8771be44341528d3c4 /tests/assets | |
parent | fab43727b43de73add99dfc3f25a69ac0777fd67 (diff) | |
download | redis-f166bb1d500dcecb14bff13312a4e7d2a76356c7.tar.gz |
code to enable running tests with the vm enabled
Diffstat (limited to 'tests/assets')
-rw-r--r-- | tests/assets/default.conf | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/assets/default.conf b/tests/assets/default.conf index c6ae1078e..15d70ffbd 100644 --- a/tests/assets/default.conf +++ b/tests/assets/default.conf @@ -220,7 +220,7 @@ vm-enabled no # *** WARNING *** if you are using a shared hosting the default of putting # the swap file under /tmp is not secure. Create a dir with access granted # only to Redis user and configure Redis to create the swap file there. -vm-swap-file /tmp/redis.swap +vm-swap-file redis.swap # vm-max-memory configures the VM to use at max the specified amount of # RAM. Everything that deos not fit will be swapped on disk *if* possible, that @@ -249,12 +249,8 @@ vm-page-size 32 # # The total swap size is vm-page-size * vm-pages # -# With the default of 32-bytes memory pages and 134217728 pages Redis will -# use a 4 GB swap file, that will use 16 MB of RAM for the page table. -# -# It's better to use the smallest acceptable value for your application, -# but the default is large in order to work in most conditions. -vm-pages 134217728 +# 32M swap should be enough for testing. +vm-pages 1048576 # Max number of VM I/O threads running at the same time. # This threads are used to read/write data from/to swap file, since they |