title: Exceed Redis maxmemory
body: <p>I am experimenting with redis 3.0 eviction policies on my local machine - I'd like to limit max memory so redis cannot consume more than 20 megabytes.</p>
  
  <p>my configuration:</p>
  
  <pre><code>loglevel debug
  maxmemory 20mb
  maxmemory-policy noeviction
  </code></pre>
  
  <p>from here, I run <code>redis-server</code> with my configuration followed by </p>
  
  <p><code>redis-benchmark -q -n 100000 -c 50 -P 12</code> </p>
  
  <p>to store a bunch of keys in memory. This puts memory usage for redis at 21MB on my mac, 1 megabyte over the specified limit. If I run it again, even more is consumed.</p>
  
  <p>According to the <a href="http://redis.io/topics/lru-cache" rel="nofollow">redis documentation</a> this should be controlled by my maxmemory directive and eviction policy, where an error is thrown on subsequent writes but I am not finding that this is the case. </p>
  
  <p>Why is redis-server consuming more memory than allotted?  </p>