全球主机交流论坛

标题: XEN的VPS上cache内存没用完就用SWAP内存啦? [打印本页]

作者: GoTop    时间: 2010-5-3 21:37
标题: XEN的VPS上cache内存没用完就用SWAP内存啦?
这是我VPS上探针的统计情况:

内存使用状况 物理内存:共 360.22 M, 已使用 352.13 M, 空闲 8.09 M, 使用率 97.75 %   
Cache化内存为 100.55 M, 真实内存使用率为 69.84 %   
SWAP区:共 255.99 M, 已使用 23.55 M, 空闲 232.44 M, 使用率 9.2 %
作者: cosence    时间: 2010-5-3 21:42
提示: 作者被禁止或删除 内容自动屏蔽
作者: gdtv    时间: 2010-5-3 21:43
同问
作者: qiqi13245    时间: 2010-5-3 21:44
原帖由 gdtv 于 2010-5-3 21:43 发表
同问

作者: GoTop    时间: 2010-5-3 22:36
原帖由 cosence 于 2010-5-3 21:42 发表
/ect/sysctl.conf在
vm.swapiness=xx  xx默认是60好象值越小表示越尽可能的用物理内存。
改成20试试


我的/ect/sysctl.conf文件没你说的这个值呢
  1. # Kernel sysctl configuration file for Red Hat Linux
  2. #
  3. # For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
  4. # sysctl.conf(5) for more details.

  5. # Controls IP packet forwarding
  6. net.ipv4.ip_forward = 0

  7. # Controls source route verification
  8. net.ipv4.conf.default.rp_filter = 1

  9. # Do not accept source routing
  10. net.ipv4.conf.default.accept_source_route = 0

  11. # Controls the System Request debugging functionality of the kernel
  12. kernel.sysrq = 0

  13. # Controls whether core dumps will append the PID to the core filename
  14. # Useful for debugging multi-threaded applications
  15. kernel.core_uses_pid = 1

  16. # Controls the use of TCP syncookies
  17. net.ipv4.tcp_syncookies = 1

  18. # Controls the maximum size of a message, in bytes
  19. kernel.msgmnb = 65536

  20. # Controls the default maxmimum size of a mesage queue
  21. kernel.msgmax = 65536

  22. # Controls the maximum shared segment size, in bytes
  23. kernel.shmmax = 4294967295

  24. # Controls the maximum number of shared memory segments, in pages
  25. kernel.shmall = 268435456
复制代码





欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4