关于Disk file operations I/O这个等待事件

Disk file operations I/O这个等待事件相关的资料很少,查到一些英文的解释。
This event is used to wait for disk file operations (for example, open, close, seek, and resize). It is also used for miscellaneous I/O operations such as block dumps and password file accesses.

请问这个等待事件由什么引起的,应该怎么解决呢?
标签: 暂无标签
zhaojingyuo

写了 14 篇文章,拥有财富 332,被 3 人关注

转播转播 分享分享 分享淘帖
回复

使用道具

P6 | 发表于 2012-6-17 18:02:34
Disk file operations I/OThis event is used to wait for disk file operations (for example, open, close, seek, and resize). It is also used for miscellaneous I/O operations such as block dumps and password file accesses.

Wait Time: The wait time is the actual time it takes to do the I/O

Parameter Description
FileOperation         Type of file operation
fileno                    File identification number
filetype                 Type of file (for example, log file, data file, and so on)

fileOperation主要有下面几个方面
    1 file creation
    2 file open
    3 file resize
    4 file deletion
    5 file close
    6 wait for all aio requests to finish
    7 write verification
    8 wait for miscellaneous io (ftp, block dump, passwd file)
    9 read from snapshot files

我们知道操作系统在操作文件的时候,需要打开文件、关闭文件、定位文件位置等。
当这些操作在进行的时候,Oracle就处于等待时间。

这类等待时间出现以后,往往和Bug有关系。
这类等待时间主要是和文件操作有关系,但不是文件内容的操作。
回复

使用道具

P4 | 发表于 2012-6-17 19:31:23
老师指的bug是?是说要打补丁吗?如果数据库中的数据文件过多的话,在定位数据文件的时候应该也会出现这个等待事件吧?我遇到的这个系统大约有250个dbf文件,是不是因为这个原因呢?
回复

使用道具

P6 | 发表于 2012-6-18 12:05:22
数据文件是多一些,但是不至于出现严重的Disk file operations I/O等待事件。
你的这个等待事件在top5中出现了吗?
回复

使用道具

P6 | 发表于 2012-6-18 12:06:34
往往不是因为文件多,往往是因为文件系统的性能比较差造成的。
回复

使用道具

P4 | 发表于 2012-6-18 21:08:32

是的老师,这个事件在top 5中出现了,这个是awr报告。

AWR.rar (87.98 KB, 下载次数: 12)
回复

使用道具

P6 | 发表于 2012-6-19 10:44:26
你主要需要解决的等待事件是log file sync,Disk file operations I/O可以忽略,占用很少。
回复

使用道具

P4 | 发表于 2012-6-19 20:41:28
明白了老师,系统是有大量的commit,也正在想办法解决这个问题。
老师,Disk file operations I/O可以忽略?是说这个等待事件的等待次数和等待时间没有达到一定的量吗?那么对于一个系统来说,等待事件的等待次数和等待时间到达什么程度,我们才必须去优化呢?
回复

使用道具

P6 | 发表于 2012-6-22 23:41:10
1、如果前面有比这个明显的等待事件,那么先解决前面的。
2、主要是看等待时间所占的比例,如果超过20以上,必须解决。
这个还要看具体情况,例如你进来比较闲,没啥事,及时10%以上的等待时间也可以解决一下
回复

使用道具

P4 | 发表于 2012-6-22 23:59:20
我明白了,解决等待事件也是要有主次关系的,谢谢老师!
回复

使用道具

您需要登录后才可以回帖 登录 | 加入社区

本版积分规则

意见
反馈