Fix flaky unit/maxmemory test on MacOS/BSD. (#8619)
It seems like non-Linux sockets may be less greedy, resulting with more transient client output buffers. Haven't proven this but empirically when stressing this test on non-Linux tends to exhibit increased mem_clients_normal values.
This commit is contained in:
parent
e58118cda6
commit
7d81f39222
@ -178,7 +178,7 @@ proc test_slave_buffers {test_name cmd_count payload_len limit_memory pipeline}
|
||||
set orig_client_buf [s -1 mem_clients_normal]
|
||||
set orig_mem_not_counted_for_evict [s -1 mem_not_counted_for_evict]
|
||||
set orig_used_no_repl [expr {$orig_used - $orig_mem_not_counted_for_evict}]
|
||||
set limit [expr {$orig_used - $orig_mem_not_counted_for_evict + 20*1024}]
|
||||
set limit [expr {$orig_used - $orig_mem_not_counted_for_evict + 32*1024}]
|
||||
|
||||
if {$limit_memory==1} {
|
||||
$master config set maxmemory $limit
|
||||
|
Loading…
x
Reference in New Issue
Block a user