Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please read the <a href="http://redis.io/topics/virtual-memory" rel="nofollow">Virtual Memory</a> chapter from Redis documentation. The relevant part:</p> <blockquote> <p><strong>The vm-max-memory setting</strong> The vm-max-memory setting specifies how much memory Redis is free to use before starting swapping values on disk.</p> <p>Basically if this memory limit is not reached, no object will be swapped, Redis will work with all objects in memory as usual. Once this limit is hit however, enough objects are swapped out to return the memory into just under the limit.</p> <p>The swapped objects are primarily the ones with the highest "age" (that is, the number of seconds since they have not been used), but the "swappability" of an object is also proportional to the logarithm of it's size in memory. So although older objects are preferred, bigger objects are swapped out first when they are about the same age.</p> <p><em>WARNING:</em> Because keys can't be swapped out, Redis will not be able to honor the vm-max-memory setting if the keys alone are using more space than the limit.</p> <p>The best value for this setting is enough RAM to hold the "working set" of data. In practical terms, just give Redis as much memory as you can, and swapping will work better.</p> </blockquote> <p><strong>UPDATE</strong> As for Redis 2.4 (it seems like the official documentation in Redis site is not updated to that version), it's not recommended to use VM.</p> <p><code>redis.conf</code> says:</p> <pre><code>### WARNING! Virtual Memory is deprecated in Redis 2.4 ### The use of Virtual Memory is strongly discouraged. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload