diff options
author | antirez <antirez@gmail.com> | 2014-03-24 12:00:20 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-03-24 12:00:20 +0100 |
commit | 93253c27620647deb3cb60e2666fbf7db9eff4cb (patch) | |
tree | e502e4e0707bc148c289f1b18723e74be72d170c /src/redis-trib.rb | |
parent | 30639c8ca957b3ece9985d8261f89b4494494886 (diff) | |
download | redis-93253c27620647deb3cb60e2666fbf7db9eff4cb.tar.gz |
Sample and cache RSS in serverCron().
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.
Diffstat (limited to 'src/redis-trib.rb')
0 files changed, 0 insertions, 0 deletions