mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 12:11:21 +00:00
Active defrag fixes for 32bit builds
problems fixed: * failing to read fragmentation information from jemalloc * overflow in jemalloc fragmentation hint to the defragger * test suite not triggering eviction after population
This commit is contained in:
@ -1019,7 +1019,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
if (zmalloc_used_memory() > server.stat_peak_memory)
|
||||
server.stat_peak_memory = zmalloc_used_memory();
|
||||
|
||||
run_with_period(10) {
|
||||
run_with_period(100) {
|
||||
/* Sample the RSS and other metrics here since this is a relatively slow call.
|
||||
* We must sample the zmalloc_used at the same time we take the rss, otherwise
|
||||
* the frag ratio calculate may be off (ratio of two samples at different times) */
|
||||
|
Reference in New Issue
Block a user