为什么还有一半的内存不用却疯狂的用 swap? redis 一直在 loading 中
資深大佬 : blackcurrant 6
我在用 docker 运行一个大概需要 50 多 G 内存的 redis 。
1:M 25 Jan 2021 23:19:34.834 * Loading RDB produced by version 5.0.8 1:M 25 Jan 2021 23:19:34.834 * RDB age 15094503 seconds 1:M 25 Jan 2021 23:19:34.834 * RDB memory usage when created 50690.37 Mb
但是系统的内存用到 30 多 G 就不再增长,swap 倒是用了很多。

redis 的数据等了很久也始终在 loading 中,不知道问题出在哪
127.0.0.1:6379> keys * (error) LOADING Redis is loading the dataset in memory
大佬有話說 (6)