免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: WUMZ
打印 上一主题 下一主题

[小机硬件] 俺8个G的内存怎么只剩几K了,巨怪异! [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-05-05 09:58 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

我想是否你做过大文件操作?删除几个没用的大文件,fre就会大了

论坛徽章:
0
12 [报告]
发表于 2005-05-05 14:42 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

你的机器是跑的Oracle 9ias吧??
如果是,请查一下具体的配置,是不是把大量的内存拿来作Cache了呀??

论坛徽章:
0
13 [报告]
发表于 2005-05-05 17:47 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

wozxz 写到:
楼主把下列输出贴出来看看:
1、lsdev -Cc memory
2、lsattr -El mem#
3、ps aux
另外:
vmstat中sr:fr=42:1,当sr:fr>;1时,都认为有问题。


请问sr:fr=42:1  中,说明了什么问题了吗?

sr:fr=42:1说明在换页过程中,通过页替换算法扫描了42个页面,才释放1个页面。

论坛徽章:
0
14 [报告]
发表于 2005-05-05 19:29 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

兄弟!vmstat 可不是这么用地。
它的第一行输出是历史的均值,不具备太大的参考意义。
如:vmstat  2
再看第二行以后的输出才有意义

论坛徽章:
0
15 [报告]
发表于 2005-05-06 08:50 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

“fre”并不代表真实的可用的物理内存。

AIX中,若进行文件操作,比如读写,系统会将文件读入内存,这样,看到的"fre"会减少,但不不代表可用的物理内存会减少。

系统内存不够时,会将文件系统占用(topas里,no comp那些)的内存直接释放。当然,这要看参数是怎么定的了(记不得,vmtune里的)。

如果page in , page out不大,就应该没问题。不用太担心fre少

论坛徽章:
0
16 [报告]
发表于 2005-05-06 08:58 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

某些动作需要内存,而若此时内存中free的页已所剩无几,则会有部分内存被直接删除(file memory),或部分内存被换出到paging space中(computational memory)。是直接删除file memory,还是换出computional memory,则由系统参数:numperm,maxperm,minperm及内存页的re-page rate决定。

从前面贴出的topas结果看,comp内存占50%多,因为启动了数据库,估计是数据库占用(oracle分配了4G左右吧?);noncomp占用40%多,估计是文件操作引起(如备份数据库等)。

贴出的topas显示有7个paging out。

如果以上情况正确,则建议调小maxperm(AIX433;对于5, 查查资料吧)。

论坛徽章:
0
17 [报告]
发表于 2005-05-06 09:01 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

对不起 ,刚才没看仔细。

虽然有7个page out,但pgsin为0,而且paging space占用很少。

所以,不用担心。什么都不需要做。注意观察就可以了。

论坛徽章:
0
18 [报告]
发表于 2005-05-09 12:00 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

楼上,
借此贴问请教:
topas里,comp,noncomp,client这三项分别都是指什么???
还有pagein,pageout 大又说明什么呢???
谢谢。。。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
19 [报告]
发表于 2005-05-10 09:16 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

man topas:


PageIn
  Number of 4K pages read per second over the monitoring interval. This includes
  paging activity associated with reading from file systems. Subtract PgspIn
  from this value to get the number of 4K pages read from file systems per
  second over the monitoring interval.
PageOut
  Number of 4K pages written per second over the monitoring interval. This
  includes paging activity associated with writing to file systems. Subtract
  PgspOut from this value to get the number of 4K pages written to file systems
  per second over the monitoring interval.


MEMORY Displays the real memory size and the distribution of memory in use.

Real,MB
  The size of real memory in megabytes.
% Comp
  The percentage of real memory currently allocated to computational page
  frames. Computational page frames are generally those that are backed by
  paging space.
% Noncomp
  The percentage of real memory currently allocated to non-computational frames.
  Non-computational page frames are generally those that are backed by file
  space, either data files, executable files, or shared library files.
% Client
  The percentage of real memory currently allocated to cache remotely mounted
  files.

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
20 [报告]
发表于 2005-05-10 09:18 |只看该作者

俺8个G的内存怎么只剩几K了,巨怪异!

有朋友说Comp指的是malloc()分配占用的空间,
Noncomp一般的是文件缓存。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP