免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: zhilan

[系统管理] 内存管理不正常(不释放内存),请教各位大哥 [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2003-01-08 20:48 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

这个帖子不错,有头有尾,加为精华:)

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2003-01-08 21:06 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

我还发现sybase
load数据库时!的确有这个问题!
大最新的sybase补丁!
jflong 该用户已被删除
发表于 2003-01-09 08:55 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
发表于 2003-01-09 10:00 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

/usr/samples/kernel/vmtune -p ** -P ** -f **** -F **** -h 1

论坛徽章:
0
发表于 2003-01-09 14:24 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

这类问题属于内存分配问题。

类似大量文件类操作,如compress、database的dump/load会大量占有内存中的文件型内存(在AIX系统中,内存简单可以分为两类:计算型内存和文件型内存)。所以按照系统缺省的配置,文件型内存最多会占用total real memory的80%(这个可以利用nmon看到),当内存很少时,就会产生换叶到paging space的现象,主要换出文件型内存帧。

这个问题可以通过vmtune加以控制,在/etc/inittab中添加:vmtune:2nce:/usr/samples/kernel/vmtune -p 5 -P 20 -h 1将文件型内存控制在total real memory的5%~20%之间,也就是minperm和maxperm。

前提是必须安装vmtune,好像在bos.adt.samples中

论坛徽章:
0
发表于 2003-01-09 16:20 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

调整MAXPERM和MINPERM是SOFT LIMIT,调整后实际效果并不好,调整STRICT_MAXPERM(-h 1)是HARD LIMIT,强制。

论坛徽章:
0
发表于 2003-01-14 17:51 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

jinyingtao 你好! 我正是这样做的,将maxperm设置为远小于缺省值,并执行严格的maxperm策略(即h 1)。
先看参数的意义:
   If percentage of RAM occupied by file pages falls below minperm, VMM steals both file and computational pages
   If percentage of RAM occupied by file pages rises above maxperm, VMM steals only file pages
   If percentage of RAM occupied by file pages is between minperm and maxperm, VMM will steal only file pages Unless file repaging rate is higher than computational repaging rate
    将maxperm设小,可避免这样的情形:当执行大量文件类操作时,文件性内存耗用过多,而计算性内存将不敷使用,从而产生大量的换页操作。而事实上此时文件性内存应作为page-stealer的偷取对象,因为它被重复引用的可能性非常低。

论坛徽章:
0
发表于 2003-01-14 17:53 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

  jinyingtao 你好! 我正是这样做的,将maxperm设置为远小于缺省值,并执行严格的maxperm策略(即h 1)。
先看参数的意义:
   If percentage of RAM occupied by file pages falls below minperm, VMM steals both file and computational pages
   If percentage of RAM occupied by file pages rises above maxperm, VMM steals only file pages
   If percentage of RAM occupied by file pages is between minperm and maxperm, VMM will steal only file pages Unless file repaging rate is higher than computational repaging rate
    将maxperm设小,可避免这样的情形:当执行大量文件类操作时,文件性内存耗用过多,而计算性内存将不敷使用,从而产生大量的换页操作。而事实上此时文件性内存应作为page-stealer的偷取对象,因为它被重复引用的可能性非常低。

论坛徽章:
0
发表于 2003-01-14 17:54 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

jinyingtao 你好! 我正是这样做的,将maxperm设置为远小于缺省值,并执行严格的maxperm策略(即h 1)。
先看参数的意义:
   If percentage of RAM occupied by file pages falls below minperm, VMM steals both file and computational pages
   If percentage of RAM occupied by file pages rises above maxperm, VMM steals only file pages
   If percentage of RAM occupied by file pages is between minperm and maxperm, VMM will steal only file pages Unless file repaging rate is higher than computational repaging rate
    将maxperm设小,可避免这样的情形:当执行大量文件类操作时,文件性内存耗用过多,而计算性内存将不敷使用,从而产生大量的换页操作。而事实上此时文件性内存应作为page-stealer的偷取对象,因为它被重复引用的可能性非常低。

论坛徽章:
0
发表于 2003-01-08 16:03 |显示全部楼层

内存管理不正常(不释放内存),请教各位大哥

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP