Why should bgsave be considered when redis dict is expanded, but not when it is reduced?

  1. Why does dict try not to expand its capacity when redis is in bgsave?
  2. Why does dict not have to consider whether it is in bgsave when downsizing?
Apr.19,2022
When

1.bgsave, dict is not expanded to minimize excessive separation of memory pages, and the system needs more overhead to reclaim memory.
2.bgsave is the process of persisting data to disk, and the condition for scaling down is that the number of elements is less than 10% of the array, and does not produce too much memory fragmentation or memory separation.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb5029-2516.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb5029-2516.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?