Skip to content

[BUG] Inability to write when reached maxmemory in FLASH mode  #645

Open
@jianjun126

Description

@jianjun126

Describe the bug
Hi,
I have tested in centos7 with memtier_benchmark (v1.4.0). When the memory reaches its limit, there may be instances of inability to write or very low write performance, such as:

clipboard

After the memory limit is reached, if key timeout or starting test queries performance, the write performance will also degrade to a very low value. such as:

clipboard
clipboard

To reproduce

keydb command:
./keydb-server ./keydb.conf --storage-provider flash /data1/6333/ --storage-provider-options "use_direct_reads=true;allow_mmap_reads=false;use_direct_writes=true;allow_mmap_writes=false"
keydb config:
keydb.conf.zip

memtier_benchmark command:
taskset -c 26-29,78-84 memtier_benchmark -s 127.0.0.1 -p 6333 -t 4 -c 20 -n 2000000 --distinct-client-seed --command="set __key__ __data__ ex 66000" --key-prefix="testkey_v3_" --key-minimum=100000000 --key-maximum=999000000 -R -d 800

Expected behavior
When reaching maximum memory in FLASH mode, keydb can write normally and maintain good performance

Additional information
I have tried to modify some parameters of keydb, but the above phenomenon still exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions