今天是2014-01-07,解决一下hp-unix异步I/O问题。

从trace日志中看:
WARNING:Could not increase the asynch I/O limit to 32 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 96 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 96 for SQL direct I/O. It is set to 0
*** 2014-01-07 09:18:51.911
WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 96 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 128 for SQL direct I/O. It is set to 0
*** 2014-01-07 09:19:03.482
WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0
WARNING:Could not increase the asynch I/O limit to 128 for SQL direct I/O. It is set to 0

可以看到是数据库异步I/0出现问题。问题排查有两个方面,数据库方面和主机方面:
第一:排查数据库:
主要有如下参数:
filesystemio_options=asynch
 disk_asynch_io=TRUE
 tape_asynch_io=TRUE
 dbwr_io_slaves=0
 backup_tape_io_slaves=FALSE
经过排查参数设置没有问题。
第二:主机侧问题。
因为机器是hp-unix,需要关注如下参数:
The following kernel parameters are used for managing asynchronous I/O operations. The first four are related to POSIX asynchronous I/O operations; the last pertains to open ports between processes and the asynchronous disk-I/O driver:

aio_listio_max
Specifies how many POSIX asynchronous I/O operations are allowed in a single listio() call.

aio_max_ops
System-wide maximum number of POSIX asynchronous I/O operations that are allowed at any given time.

aio_physmem_pct
Maximum total system memory that can be locked for use in POSIX asynchronous I/O operations.

aio_prio_delta_max
Maximum priority offset allowed in a POSIX asynchronous I/O control block (aiocb).

max_async_ports
Maximum number of ports to the asynchronous disk-I/O driver that processes can have open at any given time.

另外主机检查是否已经配置了异步i/0参考官网文档:
http://docs.oracle.com/cd/B19306_01/server.102/b15658/appb_hpux.htm#i637036
  但是在本例中看出,已经启动了部分进程的异步I/O。但是只有50个。
orarep@pmsdb2[/dev]$/usr/sbin/fuser /dev/async
/dev/async:    18635o   11336o   11376o    8833o   18637o    4527o    5834o   10723o   18643o    7740o    5751o   18647o   11330o   11348o   11370o   18639o    2486o   11354o    7738o   11391o   11346o    5795o   11334o   10719o   11389o    5867o   10721o   11356o    8835o    5749o   12291o     390o    3617o   11352o   11344o   11340o   18645o   11338o   11342o    4029o   11372o   11350o   11358o    5785o   11328o   11332o     388o    5779o

orarep@pmsdb2[/dev]$ps  -ef | grep ora_dbw3_repdb
  orarep 11340     1  0 12ÔÂ 31  ?         2:13 ora_dbw3_repdb
  orarep  6010   170  3 09:49:44 pts/6     0:00 grep ora_dbw3_repdb
orarep@pmsdb2[/dev]$

进一步确认max_async_ports 内核参数:如下:
Description
max_async_ports limits the total number of open ports to the ansynchronous disk-I/O driver that processes on the system can have at any given time (this has nothing to do with any RS-232 asynchronous data-communications interfaces). The system allocates an array of port structures for each port when it is opened that is used for all communication between the process and the asynchronous disk driver. The number of asynchronous ports required by a given application is usually specified in the documentation for that application (such as database applications software, video management software, etc.).

To determine a suitable value for max_async_ports:

Determine how many ports are required for each application and/or process that uses asynchronous disk I/O.

Determine which of these applications will be running simultaneously as separate processes. Also determine whether multiple copies of an application will be running at the same time as separate processes.

Based on these numbers, determine the maximum number of open ports to the asynchronous disk driver that will be needed by all processes any given time to obtain a reasonable total.

Set max_async_ports to a value that is not less than this number.
查看该内核参数:
orarep@pmsdb2[/dev]$/usr/sbin/kctune max_async_ports
Tunable          Value  Expression 
max_async_ports     50  Default    
orarep@pmsdb2[/dev]$
问题可以看出来,在系统高并发下只有50个异步进程。因此需要调整 该值为实际最大process值。

另外有bug也会出现这种问题:Bug 10208905  "WARNING:Could not increase the asynch I/O limit ..." messages in trace file

WARNING:Could not increase the asynch I/O limit to 64 for SQL direct I/O. It is set to 0的更多相关文章

  1. ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], []

    一ORACLE 10.2.0.5.0 标准版的数据库的告警日志出现ORA-00600错误,具体错误信息如下所示 Errors in file /u01/app/oracle/admin/SCM2/bd ...

  2. mongodb 3.2.x 启动 Warning 错误处理

    [root@restore1 data1]# mongod --dbpath=/data/data1/mongodb_data/ --directoryperdb ** WARNING: You ar ...

  3. mongodb 启动 WARNING: soft rlimits too low, transparent_hugepage/enabled is 'always'. never

    今天启动mongodb的时候,之前一直没注意,今天发现又warning,想整一整. 下面是告警 2019-09-05T12:00:55.271+0800 I CONTROL [initandliste ...

  4. Oracle12c版本中未归档隐藏参数

    In this post, I will give a list of all undocumented parameters in Oracle 12.1.0.1c. Here is a query ...

  5. Total Commander 8.52 Beta 1

    Total Commander 8.52 Beta 1http://www.ghisler.com/852_b1.php 10.08.15 Release Total Commander 8.52 b ...

  6. RFID 读写器 Reader Writer Cloner

    RFID读写器的工作原理 RFID的数据采集以读写器为主导,RFID读写器是一种通过无线通信,实现对标签识别和内存数据的读出和写入操作的装置. 读写器又称为阅读器或读头(Reader).查询器(Int ...

  7. [Elixir009]像GenServer一样用behaviour来规范接口

    1.Behaviour介绍 Erlang/Elixir的Behaviour类似于其它语言中的接口(interfaces),本质就是在指定behaviours的模块中强制要求导出一些指定的函数,否则编译 ...

  8. PG sys function

    The System Catalogs of PostgreSQLscott=# \dS List of relations Schema | Name | Type | Owner -------- ...

  9. ocp 1Z0-042 121-178题解析

    121. You want to create a new optimized database for your transactional production environment to be ...

随机推荐

  1. C#软件winform程序安装包制作及卸载程序制作

    使用vs2010 winform程序开发的软件的人比较多,程序的开发是为了在不同的人不同的机器使用,为了使不同的机器能使用该软件就需要在制作程序安装包,安装包里必须包含该软件运行所选的所有环境,下面就 ...

  2. SQL常用日期函数

    原文:http://www.cnblogs.com/coconut_zhang/archive/2009/02/02/1382598.html 1. 当前系统日期.时间 select getdate( ...

  3. Hibernate中load与get的区别

    1.get()采用立即加载方式,而load()采用延迟加载; ①get()方法执行的时候,会立即向数据库发出查询语句;(查询顺序:内部缓存,数据库) ②load()方法返回的是一个代理(此代理中只有一 ...

  4. HDU 1045(Fire Net)题解

    以防万一,题目原文和链接均附在文末.那么先是题目分析: [一句话题意] 给定大小的棋盘中部分格子存在可以阻止互相攻击的墙,问棋盘中可以放置最多多少个可以横纵攻击炮塔. [题目分析] 这题本来在搜索专题 ...

  5. HTML5中的服务器‘推送’技术 -Server-Sent Events

    转帖:http://www.developersky.net/thread-63-1-1.html 一直以来,HTTP协议都是严格遵循Request-Response模型的.客户端发送一个Reques ...

  6. SQL字符型字段按数字型字段排序实现方法(转)

    由于是按字母顺序排列,所以123排在了2的前面,显然不符合我们的要求,那么怎样才能按照我们预想的数字顺序排序呢 ORDER BY `meta_value`   那么按得分排序得到的结果可能是:1101 ...

  7. hdu 2509 Be the Winner 博弈

    题目链接 有n堆苹果, 对于其中的每一堆的x个苹果, 它是放在一条线上的. 你每次可以对一堆苹果进行操作, 可以取y个, 1<=y<=x. 然后如果你是取的一条线上中间的苹果, 那么这一堆 ...

  8. Android设置全屏

    全屏显示 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLA ...

  9. linux如何ARP嗅探 Linux下嗅探工具Dsniff安装记录

      先来下载依赖包 和一些必须要用到的工具 我这里用的是 dsniff-2.3 的版本 wget http://www.monkey.org/~dugsong/dsniff/dsniff-2.3.ta ...

  10. 用U盘装win7/XP系统的操作

    现在上网本越来越流行了,但是上网本是没有光驱的,那如何给上网本装系统就成了一个难题,其实不仅仅不带光驱的笔记本用户愁怎么装系统,那些没有光驱的台式机用户也愁.为了给这类用户提供方便,笔者今天以上网本装 ...