免费注册 查看新帖 |

Chinaunix

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

正常的磁盘写操作,会产生pageout吗?我的pageout值达2000了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-27 09:38 |只看该作者 |倒序浏览
  首先说明,我的系统是redhat linux as3.0+oracle9.2.0.4,做的是应用的数据库服务器。
  我在做多个用户同时操作系统的性能测试时,发现我用vmstat看到的wa的值很大,在50左右。pageout值很大,在2000左右,系统很慢。下面是某一典型时刻的iostat -x的结果:
avg-cpu:  %user   %nice    %sys   %idle
          30.70    0.00    4.92   64.38

Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
/dev/sda     2.04 503.06 11.22 258.50  106.12 6092.52    53.06  3046.26    22.98    20.41    7.57   6.19 167.01
/dev/sda1    0.00   0.00  0.00  0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
/dev/sda2    0.00   0.00  0.00  0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
/dev/sda3    2.04 503.06 11.22 258.50  106.12 6092.52    53.06  3046.26    22.98    20.41    7.57   6.19 167.01

  根据iostat的结果,算得实际的磁盘读写速率约在4M左右,这样的传输速率肯定不是磁盘的硬件因素造成的瓶颈。我所做的操作是有涉及到写数据库的操作的,我想问:这些正常的写操作,会不会产生pageout呢?
  因为我看一般的推荐值,说pageout值在20以内算正常,如果是这样,那我近2000的pageout值就肯定不正常了,但如果是正常的写操作也会产生pageout的话,那和4M的速度接近,磁盘就又是正常的了,很迷惑啊?希望有人帮忙解答一下。
dwtsteven 该用户已被删除
2 [报告]
发表于 2006-11-27 12:01 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2006-11-27 14:21 |只看该作者
我是2G的内存,配给oracle1G。
但是linux系统,好像不管配多少内存,最终都会用完的吧

论坛徽章:
0
4 [报告]
发表于 2006-11-27 14:22 |只看该作者
不是oracle占的,我统计了oracle占用的内存,总共也才20%

论坛徽章:
0
5 [报告]
发表于 2006-11-27 15:18 |只看该作者
你就是要用2.4也要配置/etc/sysctl.conf

论坛徽章:
0
6 [报告]
发表于 2006-11-27 15:39 |只看该作者
to allegro:这是我cat /etc/sysctl.conf的结果

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl( and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1


kernel.shmmax=2147483648
kernel.shmmni=4096
kernel.shmall=2097152
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000

论坛徽章:
0
7 [报告]
发表于 2006-11-27 15:41 |只看该作者
free结果:
[root@ccats10000 root]# free -m
             total       used       free     shared    buffers     cached
Mem:          2007       1983         23          0        175       1377
-/+ buffers/cache:        430       1576
Swap:         4000          0       4000
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP