- 1、本文档共44页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 安德森认知心理学及其启示5记忆结构ppt课件.ppt
- 安全驾驶技术(复杂道路驾驶).ppt
- 安德森认知心理学及其启示3知觉和模式识别ppt课件.ppt
- 安宫牛黄丸点舍ppt课件.pptx
- 安全防范主题班会ppt课件.ppt
- 安徽省中考政治课件:.迎接挑战立志成才(粤教版)(九年级全一册)PPT课件.ppt
- 安徽欧果商贸有限公司培训中心ppt课件.pptx
- 安徽财经大学青年志愿者协会 规章制度.ppt
- 安徽安凯汽车(客车)营销诊断项目建议报告-创建高效的汽车营销和营销体系.ppt
- 安全驾驶—交通法规、交通信号_PPT课件.ppt
- 期末复习课件++专题7+阿基米德原理++2023-2024学年人教版八年级物理下册.pptx
- 4-1电磁振荡(教学课件)高中物理人教版选择性必修第二册.pptx
- 本包含页空白页.pdf
- 【会计实操经验】财务操纵的知识框架.pdf
- 英国b2c电商网站ocado市场前景及投资研究报告-培训课件外文版2024.6,拼多多,阿里巴巴,1688,temu,tiktok.pdf
- 印尼在线约会行业市场前景及投资研究报告-培训课件外文版2024.6,微信,tiktok.pdf
- 印尼物联网IOT行业市场前景及投资研究报告-培训课件外文版2024.5.pdf
- 印尼斋月消费情况分析报告-培训课件外文版2024.6.pdf
- 英国GDP分析报告-培训课件外文版2024.6.pdf
- 印尼铁路行业市场前景及投资研究报告-培训课件外文版2024.6,援建高铁.pdf
文档评论(0)