Maxmemory and dir settings for redis profiles


redis info command outputs used_memory:4008617480 used_memory_human:3.73G
whether this is the memory of the directory set by dir.
but there is only one dump.rdb file in the dir path that is 1.3G in size.
so what kind of memory is used by the maxmemory parameter, the directory set by the dir parameter or the system disk?
where exactly is the data of redis stored?

which memory is the RES occupied by redis-server?


maxmemory is the memory footprint considered by redis. Check through the info memory command, that is, the used_memory
dir parameter is set to the default directory where redis data + log + pid files are stored