diff options
author | Oran Agra <oran@redislabs.com> | 2018-02-18 17:36:21 +0200 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2018-03-12 15:08:52 +0200 |
commit | 806736cdf91658e7a8e1a2d8631b82763b508c36 (patch) | |
tree | b5d9b0ad4be2f58dcc2de0ad355d39416b62f5bf /tests/test_helper.tcl | |
parent | be1b4aa9aa76d15bb57b7159cb559a8b9dde5513 (diff) | |
download | redis-806736cdf91658e7a8e1a2d8631b82763b508c36.tar.gz |
Adding real allocator fragmentation to INFO and MEMORY command + active defrag test
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
Diffstat (limited to 'tests/test_helper.tcl')
-rw-r--r-- | tests/test_helper.tcl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 7def9a7f6..3114f844c 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -452,6 +452,8 @@ for {set j 0} {$j < [llength $argv]} {incr j} { puts $t } exit 0 + } elseif {$opt eq {--verbose}} { + set ::verbose 1 } elseif {$opt eq {--client}} { set ::client 1 set ::test_server_port $arg |