免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1263 | 回复: 4
打印 上一主题 下一主题

大虾们,看看这个memory的问题吧 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-23 16:23 |只看该作者 |倒序浏览
书上说,当内存不够用时,如果内存的空闲值低于物理内存的1/64时就开始往交换空间pageout了,我遇到了一个问题,当内存的空闲量为20是,交换分区的空闲量为70%, 当内存的空闲量为1%时,交换分区的空闲量居然不降反升为98%,且扫描速度(sr)和po值也为0,没有搞明白,那位高人能讲讲交换分区和内存的关系,授业解惑一下,谢谢!
再问一下,是不是内存用于data buffer的部分统计不出来?

[ 本帖最后由 cuxxx 于 2006-1-23 20:28 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-01-23 17:58 |只看该作者
期待高手指点。。。。。。
我略看了一下《The Solaris Memory System》,里面有这么一说:
*******************************************************
Sizing the buffer cache is somewhat more difficult. There is no fixed size of memory required for a buffer, it’s really sized by the payback between cost of additional memory and the performance gained by having a larger buffer.
A general rule of thumb is to use about 2% of the size of the dataset. For example, a 10GB database should have about 200MB of buffer cache.
If the database is on RAW filesystems, then buffer cache is not required for this, however the same amount of memory should be allocated for the shared memory buffer used by the database. If your database is on RAW, then you should still plan to leave about 10% of the total memory free for UFS buffer cache, which will be used by system processes, logfiles, and any other components that are on filesystems.

谁能解释一下RAW filesystems与RAW的区别,谢谢

[ 本帖最后由 cuxxx 于 2006-1-23 18:00 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2006-01-24 00:00 |只看该作者
原帖由 cuxxx 于 2006-1-23 17:58 发表
.. 谁能解释一下RAW filesystems与RAW的区别 ...


It's same thing here.

RAW = RAW filesystems = filesystems using RAW devices for databases

论坛徽章:
0
4 [报告]
发表于 2006-01-24 00:08 |只看该作者
原帖由 cuxxx 于 2006-1-23 16:23 发表
书上说,当内存不够用时,如果内存的空闲值低于物理内存的1/64时就开始往交换空间pageout了,我遇到了一个问题,当内存的空闲量为20是,交换分区的空闲量为70%, 当内存的空闲量为1%时,交换分区的空闲量居然不降 ...


1. It seems you don't know how to monitor free memory. The real free memory is not the
    value of "free" in vmstat.


2. sr in vmstat is quite different between Solaris 8,9  and 7,6.


Please read << Solaris Internals >>

论坛徽章:
0
5 [报告]
发表于 2006-01-24 09:32 |只看该作者
原帖由 Cygnus 于 2006-1-24 00:08 发表


1. It seems you don't know how to monitor free memory. The real free memory is not the
    value of "free" in vmstat.


2. sr in vmstat is quite different between Solaris 8,9  an ...


Thanks for your help, Cygnus!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP