summaryrefslogtreecommitdiff
path: root/src/multi.c
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2020-08-27 11:09:32 +0300
committerGitHub <noreply@github.com>2020-08-27 11:09:32 +0300
commit8bdcbbb085888d98b765cc7899009670e019b9d0 (patch)
tree53e492fb7da6f42a241701eb69a7d52b9338cb85 /src/multi.c
parentb7289e912cbe1a011a5569cd67929e83731b9660 (diff)
downloadredis-8bdcbbb085888d98b765cc7899009670e019b9d0.tar.gz
Update memory metrics for INFO during loading (#7690)
During a long AOF or RDB loading, the memory stats were not updated, and INFO would return stale data, specifically about fragmentation and RSS. In the past some of these were sampled directly inside the INFO command, but were moved to cron as an optimization. This commit introduces a concept of loadingCron which should take some of the responsibilities of serverCron. It attempts to limit it's rate to approximately the server Hz, but may not be very accurate. In order to avoid too many system call, we use the cached ustime, and also make sure to update it in both AOF loading and RDB loading inside processEventsWhileBlocked (it seems AOF loading was missing it).
Diffstat (limited to 'src/multi.c')
0 files changed, 0 insertions, 0 deletions