Hi,
I ran into the following issue while trying to measure the amount of memory that my inserted dataset uses.
I'm using redis v6.0.8 (on Ubuntu 20.04)
When I connect to a clean instance with redis-cli and issue "memory stats" I get the following value:
23) "dataset.bytes"
24) (integer) 46966
If I connect to the same redis server instance with another redis-cli and issue the same command I get (both redis-cli instances give this same value now):
23) "dataset.bytes"
24) (integer) 50956
When I disconnect the second redis-cli and run "memory stats" in the first redis-cli I get:
23) "dataset.bytes"
24) (integer) 46966
Conclusion, the dataset.bytes value appears to depend on the interface usage which is not to be expected given the explanation of dataset.bytes in the documentation.
I have two questions:
1. What's the best method to measure memory consumption of inserted data?
2. I consider this issue with "memory stats" a bug. How should I report it?
Thanks,
chillin