大体配置如下:
➜ ~ # free -lmh
total used free shared buffers cached
Mem: 1.0G 639M 366M 30M 187M 184M
Low: 868M 501M 366M
High: 138M 137M 252K
-/+ buffers/cache: 267M 739M
Swap: 2.0G 0B 2.0G
➜ ~ $ uname -ri
2.6.32-642.1.1.el6.i686 i386
➜ ~ $ cat /etc/centos-release
CentOS release 6.8 (Final)
serverSpeeder version 3.10.66.29
vm.lowmem_reserve_ratio = 256 512 32
Part of installed services or processes:
- google-drive-ocamlfuse
- bpcs_uploader
- LNMP
- gogs
- ss-python
相关日志和信息请移步
/var/log/messages:
https://gist.github.com/MilesPong/173611a702660f9e7cb1da6154efe63a#file-messages/proc/meminfo:
https://gist.github.com/MilesPong/173611a702660f9e7cb1da6154efe63a#file-meminfo/proc/zoninfo:
https://gist.github.com/MilesPong/173611a702660f9e7cb1da6154efe63a#file-zoneinfo---
请问如何正确配置才能避免 OOM 的出现?还是说内存已经就是瓶颈,再怎么优化配置没有用?
---
晕~gist 显示不正常,完整的gist在这里
https://gist.github.com/MilesPong/173611a702660f9e7cb1da6154efe63a锚点分别是
#file-messages
#file-meminfo
#file-zoneinfo
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/292163
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.