Skip to content

[BUG] Ubuntu 22.04 , gcc 11.2.0 , Active defrag test failed #10950

@0xD4n

Description

@0xD4n

Describe the bug

redis-server --version

Redis server v=7.0.2 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=15c2c3973ed24647

free -h

               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       231Mi       7.0Gi       1.0Mi       547Mi       7.3Gi
Swap:          1.8Gi          0B       1.8Gi

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

make test

Cleanup: may take some time... OK
Starting test server at port 21079
...
...
...
�[1;31;49m!!! WARNING�[0m The following tests failed:

*** [�[0;31;49merr�[0m]: Active defrag in tests/unit/memefficiency.tcl
Expected 72 <= 30 (context: type eval line 113 cmd {assert {$max_latency <= 30}} proc ::test)
Cleanup: may take some time... OK
make[1]: *** [Makefile:427: test] Error 1
make[1]: Leaving directory '/opt/redis-stable/src'
make: *** [Makefile:6: test] Error 2

To reproduce

make test

Expected behavior

\o/ All tests passed without errors!

Additional information

I have noticed that in a similar issue #10053 reported was asked to execute the following ./runtest --single unit/memefficiency --verbose output included below.

Cleanup: may take some time... OK
Starting test server at port 21079
[ready]: 24144
�[1;37;49mTesting unit/memefficiency�[0m
[ready]: 24143
[ready]: 24145
[ready]: 24146
[ready]: 24147
[ready]: 24148
[ready]: 24149
[ready]: 24150
[ready]: 24151
[ready]: 24152
[ready]: 24153
[ready]: 24155
[ready]: 24156
[ready]: 24157
[ready]: 24154
[ready]: 24158
=== (memefficiency external:skip) Starting server 127.0.0.1:21611 ok
[�[0;32;49mok�[0m]: Memory efficiency with values in range 32 (154 ms)
[�[0;32;49mok�[0m]: Memory efficiency with values in range 64 (153 ms)
[�[0;32;49mok�[0m]: Memory efficiency with values in range 128 (157 ms)
[�[0;32;49mok�[0m]: Memory efficiency with values in range 1024 (190 ms)
[�[0;32;49mok�[0m]: Memory efficiency with values in range 16384 (557 ms)
[1/1 �[0;33;49mdone�[0m]: unit/memefficiency (1 seconds)
�[1;37;49mTesting solo test�[0m
=== (defrag external:skip) Starting server 127.0.0.1:21612 ok
frag 1.52
frag 1.02
hits: 393676
misses: 2141633
max latency 7
{active-defrag-cycle 1657221160 7 7} {command 1657221157 889 889}
{1657221158 7} {1657221159 7} {1657221160 7}
AOF loading:
frag 1.05
hits: 1360602
misses: 8892575
max latency 176
{while-blocked-cron 1657221183 85 176} {active-defrag-cycle 1657221183 7 7} {command 1657221183 21993 21993}
{1657221171 39} {1657221172 39} {1657221173 143} {1657221174 52} {1657221175 124} {1657221176 53} {1657221177 91} {1657221178 33} {1657221179 176} {1657221181 20} {1657221182 104} {1657221183 85}
[�[0;31;49merr�[0m]: Active defrag in tests/unit/memefficiency.tcl
Expected 176 <= 30 (context: type eval line 113 cmd {assert {$max_latency <= 30}} proc ::test)
used 54570536
rss 54878208
frag 1.01
frag_bytes 307672
used 29315448
rss 54050816
frag 1.84
frag_bytes 24735368
used 29356232
rss 30638080
frag 1.04
frag_bytes 1281848
[�[0;32;49mok�[0m]: Active defrag eval scripts (3830 ms)
frag 1.86
frag 1.03
hits: 499087
misses: 1509516
max latency 8
{active-defrag-cycle 1657221200 7 8} {command 1657221198 729 729}
{1657221198 8} {1657221199 8} {1657221200 7}
[�[0;32;49mok�[0m]: Active defrag big keys (13727 ms)
frag 2.00
frag 1.02
misses: 101247
hits: 98756
max latency 8
{active-defrag-cycle 1657221214 8 8} {command 1657221213 335 335}
{1657221214 8}
[�[0;32;49mok�[0m]: Active defrag big list (13411 ms)
=== (defrag) Starting server 127.0.0.1:21613 ok
frag 1.96
frag 1.05
hits: 626861
misses: 1716405
[�[0;32;49mok�[0m]: Active defrag edge case (17771 ms)
[1/1 �[0;33;49mdone�[0m]: defrag (87 seconds)

                   The End

Execution time of different units:
  1 seconds - unit/memefficiency
  87 seconds - defrag

�[1;31;49m!!! WARNING�[0m The following tests failed:

*** [�[0;31;49merr�[0m]: Active defrag in tests/unit/memefficiency.tcl
Expected 176 <= 30 (context: type eval line 113 cmd {assert {$max_latency <= 30}} proc ::test)
Cleanup: may take some time... OK

I have tried building version 6.2.7 on the same machine, make test is successful

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:to-be-closedrequesting the core team to close the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions