Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Redis exceeds VM-max-memory #442

Closed
weichaoguo opened this Issue · 1 comment

2 participants

@weichaoguo

how to reproduce the problem:

  1. use redis 2.4.8 or 2.2.15 config redis vm-enabled with 256M vm-max-memory & 1 G max-memory & 32G swap size(each page 32 bytes) 2.write 20000 keys (total size : 4 G , key size = 17B, 1 B <= value size <= 128MB) 3.when about 2 G data has written , there is a warning like this : # WARNING: vm-max-memory limit exceeded by more than
    10% but unable to swap more objects out! 4.Then as max-memory limit , can not write the other keys any more. With the "top" command we can find redis server using about 1G memory & more than configed vm-max-memory 256M!!! (However the keys total size is 17Bx20000 < 1 MB !!!)

I want to know:

how to config swap or vm to make redis able to swap more objects out ?

@weichaoguo

I have read the similar issue 394 http://code.google.com/p/redis/issues/detail?id=394
but did'nt catch some useful solves

@mattsta mattsta closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.