-
如题,给paopao分配了6g的内存,实际的占用在1.5g左右,想了解paopao的自动根据内存调整机制是否可以更改为手动 |
Beta Was this translation helpful? Give feedback.
Answered by
kkkgo
Apr 27, 2024
Replies: 1 comment
-
你可以通过手动挂载 MemAvailable 4500000 单位为KB。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mmm1h
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你可以通过手动挂载
/proc/meminfo
来欺骗docker容器的可用内存。比如编辑
/home/meminfo
:单位为KB。
docker run -v/home/meminfo:/proc/meminfo sliamb/paopaodns
在技术上,试图欺骗Docker如内存的信息可能会引起一些不可预见的稳定性和性能问题。