宝典hp-unix-内存热门题目及案例分享.ppt

宝典hp-unix-内存热门题目及案例分享.ppt

  1. 1、本文档共44页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
宝典hp-unix-内存热门题目及案例分享

内存热点问题及案例分享 张永军 企业客户技术支持中心 支持服务事业部 中国惠普有限公司 2004.2 检查内存 1. dmesg: Memory Information: physical page size = 4096 bytes, logical page size = 4096 bytes Physical: 1048576 Kbytes, lockable: 790684 Kbytes, available: 918096 Kbytes 2.sam: sam?Performance Monitors?System Properties?Memory 3.syslog.log 4.glance Memory的角色 三个部分: 1. Physical memory 2. Available Memory The amount of main memory not reserved for the kernel is termed available memory. Available memory is used by the system for executing user processes. 3. Lockable Memory Pages kept in memory for the lifetime of a process by means of a system call (such as mlock, plock, or shmctl) are termed locked memory. Locked memory cannot be paged and processes with locked memory cannot be deactivated. Kernel parameter: unlockable_mem. Total available system memory - unlockable_mem = lockable memory 检查空闲内存 1. Top Memory: 126108K (79812K) real, 419716K (324852K) virtual, 98184K free 2. Glance 3. Vmstat #vmstat 1 1 procs memory page faults cpu r b w avm free re at pi po fr de sr in sy cs us sy id 1 0 0 93405 5989 5 1 0 0 0 0 0 448 737 133 1 1 99 与内存相关的内核参数 Buffer cache related: nbuf and bufpages =0 表示使用动态内存 dbc_max_pct 50 dbc_min_pct 5 Buffer cache used by File system. 建议调低dbc_max_pct(尤其大量使用raw device),否则占用太多内存。 与内存相关的内核参数(续) vx_ninode=0 表示使用动态内存,可能占用很大内存, 造成系统内存资源耗尽,还可能造成superpagepool corruption Or fragmentation。 unlockable_mem 使用缺省值(=0) 内存的分配 内存分配的三种方式,需要相同数量的swap. plain memory as allocated with? malloc(3C) system call. shared memory as allocated with shmget(2) system call. memory mapped files as allocated with?mmap(2) system call.?? 内存的分配(续) 一般内存的分配由malloc(3C) 系统调用完成 a) To report process memory usage, by largest first, run: ?????????? # ps –efl | sort –rnk 10 | more ?And look at 10th column (SZ) to see

文档评论(0)

wuyoujun92 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档