brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.94k stars 2.24k forks source link

How to free Memory after testing #1648

Closed RuifMaxx closed 1 year ago

RuifMaxx commented 1 year ago

After finished the YCSB test on redis cluster on kubernetes StatefulSet. The memory used by the container is still very high, how to free MEM after testing.

for example, after I run this command

./bin/ycsb.sh load redis -s -P workloads/workload_read -p redis.host=172.20.2.72 -p redis.port=6379 -threads 100 -p redis.cluster=true

workload_read is

recordcount=10000000
operationcount=10000000
workload=com.yahoo.ycsb.workloads.CoreWorkload
readallfields=true
readproportion=1
updateproportion=0
scanproportion=0
insertproportion=0
requestdistribution=zipfian

After finishing test for a while, I got:

$ kubectl top pod
NAME                                  CPU(cores)   MEMORY(bytes)   
centos7-deployment-7ddccf8767-c5tkg   0m           176Mi           
redis-app-0                           2m           1059Mi          
redis-app-1                           2m           1055Mi          
redis-app-2                           2m           1581Mi          
redis-app-3                           2m           1051Mi          
redis-app-4                           2m           1059Mi          
redis-app-5                           2m           1052Mi          
redis-app-6                           2m           1059Mi          
redis-app-7                           2m           1056Mi          
busbey commented 1 year ago

that will be up to redis tooling. YCSB doesn't delete the dataset stored in a load or run. Since Redis is an in-memory store the dataset will still be present in memory.