全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1269|回复: 4
打印 上一主题 下一主题

[疑问] XEN的VPS上cache内存没用完就用SWAP内存啦?

[复制链接]
跳转到指定楼层
1#
发表于 2010-5-3 21:37:59 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
这是我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 %
5#
 楼主| 发表于 2010-5-3 22:36:34 | 只看该作者
原帖由 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
复制代码
4#
发表于 2010-5-3 21:44:05 | 只看该作者
原帖由 gdtv 于 2010-5-3 21:43 发表
同问
3#
发表于 2010-5-3 21:43:30 | 只看该作者
同问
2#
发表于 2010-5-3 21:42:37 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-12 07:53 , Processed in 0.059601 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表