1. 30 May, 2018 1 commit
  2. 17 May, 2018 1 commit
    • Oran Agra's avatar
      Active defrag fixes for 32bit builds · ad133e10
      Oran Agra authored
      problems fixed:
      * failing to read fragmentation information from jemalloc
      * overflow in jemalloc fragmentation hint to the defragger
      * test suite not triggering eviction after population
      ad133e10
  3. 12 Mar, 2018 1 commit
    • Oran Agra's avatar
      Adding real allocator fragmentation to INFO and MEMORY command + active defrag test · 806736cd
      Oran Agra authored
      other fixes / improvements:
      - LUA script memory isn't taken from zmalloc (taken from libc malloc)
        so it can cause high fragmentation ratio to be displayed (which is false)
      - there was a problem with "fragmentation" info being calculated from
        RSS and used_memory sampled at different times (now sampling them together)
      
      other details:
      - adding a few more allocator info fields to INFO and MEMORY commands
      - improve defrag test to measure defrag latency of big keys
      - increasing the accuracy of the defrag test (by looking at real grag info)
        this way we can use an even lower threshold and still avoid false positives
      - keep the old (total) "fragmentation" field unchanged, but add new ones for spcific things
      - add these the MEMORY DOCTOR command
      - deduct LUA memory from the rss in case of non jemalloc allocator (one for which we don't "allocator active/used")
      - reduce sampling rate of the rss and allocator info
      806736cd
  4. 09 May, 2017 1 commit
  5. 04 May, 2017 1 commit
  6. 11 Apr, 2017 2 commits
  7. 10 Jan, 2017 1 commit
  8. 30 Dec, 2016 1 commit
  9. 19 Sep, 2016 2 commits
  10. 13 Jan, 2016 1 commit
  11. 01 Oct, 2015 1 commit
  12. 17 Dec, 2014 2 commits
  13. 14 Nov, 2014 1 commit
  14. 12 Nov, 2014 1 commit
  15. 26 Jun, 2014 2 commits
  16. 24 Mar, 2014 1 commit
    • antirez's avatar
      Sample and cache RSS in serverCron(). · 93253c27
      antirez authored
      Obtaining the RSS (Resident Set Size) info is slow in Linux and OSX.
      This slowed down the generation of the INFO 'memory' section.
      
      Since the RSS does not require to be a real-time measurement, we
      now sample it with server.hz frequency (10 times per second by default)
      and use this value both to show the INFO rss field and to compute the
      fragmentation ratio.
      
      Practically this does not make any difference for memory profiling of
      Redis but speeds up the INFO call significantly.
      93253c27
  17. 05 Dec, 2013 1 commit
  18. 19 Jan, 2013 1 commit
  19. 21 Nov, 2012 1 commit
  20. 19 Nov, 2012 1 commit
  21. 14 Nov, 2012 1 commit
  22. 24 Aug, 2012 2 commits
    • antirez's avatar
    • antirez's avatar
      Better Out of Memory handling. · 6fdc6354
      antirez authored
      The previous implementation of zmalloc.c was not able to handle out of
      memory in an application-specific way. It just logged an error on
      standard error, and aborted.
      
      The result was that in the case of an actual out of memory in Redis
      where malloc returned NULL (In Linux this actually happens under
      specific overcommit policy settings and/or with no or little swap
      configured) the error was not properly logged in the Redis log.
      
      This commit fixes this problem, fixing issue #509.
      Now the out of memory is properly reported in the Redis log and a stack
      trace is generated.
      
      The approach used is to provide a configurable out of memory handler
      to zmalloc (otherwise the default one logging the event on the
      standard output is used).
      6fdc6354
  23. 27 Mar, 2012 2 commits
  24. 26 Feb, 2012 1 commit
  25. 07 Feb, 2012 1 commit
  26. 16 Nov, 2011 1 commit
  27. 02 Jul, 2011 1 commit
  28. 20 Jun, 2011 1 commit
  29. 20 Jan, 2011 1 commit
  30. 09 Jan, 2011 2 commits
  31. 02 Nov, 2010 1 commit
  32. 23 Oct, 2010 1 commit
  33. 02 Sep, 2010 1 commit