X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/4365e5b2d32798c168a8376fad891c0e5cccb4ec..95f68f7b0fc4ffc700361484b6c792a8e03f3a13:/src/aof.c?ds=inline diff --git a/src/aof.c b/src/aof.c index bc92cdb9..6289e4dd 100644 --- a/src/aof.c +++ b/src/aof.c @@ -962,6 +962,13 @@ int rewriteAppendOnlyFileBackground(void) { if (server.sofd > 0) close(server.sofd); snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid()); if (rewriteAppendOnlyFile(tmpfile) == REDIS_OK) { + size_t private_dirty = zmalloc_get_private_dirty(); + + if (private_dirty) { + redisLog(REDIS_NOTICE, + "AOF rewrite: %lu MB of memory used by copy-on-write", + private_dirty/(1024*1024)); + } exitFromChild(0); } else { exitFromChild(1);