环境:

OS:Aix 5.3

Aix平台打开异步io需要fileset支持

# lslpp -l bos.rte.aio

Fileset                      Level  State      Description

----------------------------------------------------------------------------

Path: /usr/lib/objrepos

bos.rte.aio               5.3.0.60  COMMITTED  Asynchronous I/O Extension

Path: /etc/objrepos

bos.rte.aio               5.3.0.60  COMMITTED  Asynchronous I/O Extension

查看异步io是否已经打开,available表示已经开启.

# lsattr -El aio0

autoconfig available STATE to be configured at system restart True

fastpath   enable    State of fast path                       True

kprocprio  39        Server PRIORITY                          True

maxreqs    4096      Maximum number of REQUESTS               True

maxservers 10        MAXIMUM number of servers per cpu        True

minservers 1         MINIMUM number of servers                True

#aioo -a

minservers = 1

maxservers = 10

maxreqs = 4096

fsfastpath = 0

可以通过以下命令启用aio

# chdev -P -l aio0 -a autoconfig='available'

aio0 changed

修改maxreqs时报如下错误

#chdev -l aio0 -a maxreqs=16384

Method error (/usr/lib/methods/chgaio):

0514-064 Cannot perform the requested function because the

AIO kernel extension is permanent and cannot be unloaded.

解决办法如下

#chdev -l aio0 -P  -a maxreqs=16384

aio0 changed

可以仔细了解一下-P参数的作用

-P

Changes the device's characteristics permanently in the Customized Devices object class without actually changing the device.This is useful for devices that cannot be made unavailable and cannot be changed while in the available state. The change ismade to the database, and the changes are applied to the device when the system is rebooted. This flag cannot be used withthe -T flag. Not all devices support the -P flag.

查看aio进程数

#pstat -a | grep aio

查看目前系统异步io是否遇到瓶颈

# iostat -A 1 1

System configuration: lcpu=1 drives=3 paths=0 vdisks=0

aio: avgc avfc maxg maif maxr avg-cpu: % user % sys % idle % iowait

0    0   33    0 4096             0.4   0.8   98.8      0.0

Disks:        % tm_act     Kbps      tps    Kb_read   Kb_wrtn

hdisk1           0.0       0.0       0.0          0         0

hdisk0           0.0       0.0       0.0          0         0

cd0              0.0       0.0       0.0          0         0

下面的列表描述了用于监视 AIO 子系统的一些参数。

* avfc:这个参数用于报告在指定的时间间隔内每秒的平均快速路径请求计数。

* avgc:这个参数用于报告在指定的时间间隔内每秒的平均全局异步 I/O 请求。

* maxgc:这个参数用于报告从上一次获取这个值以来最大的全局异步 I/O 请求。

* maxfc:这个参数用于报告从上一次获取这个值以来快速路径请求计数的最大值。

* maxreqs:这个参数是允许的、异步 I/O 请求的最大值。

在我们的示例中,AIO 服务器不是系统瓶颈。

需要注意的是在AIX 6L中异步io会自动开启,maxreqsminservers、maxservers也会根据应用而自动调整,无须人工干预,当然也没有smitty aio这条命令了,呵呵.

附:metalink的说明

Solution

AIX 5L supports asynchronous I/O (AIO) for database files created both on file system partitions and on raw devices.

AIO on raw devices is implemented fully into the AIX kernel, and does not require database processes to service the AIO requests.

When using AIO on file systems, the kernel database processes (aioserver) control each request from the time a request is taken off the queue to the time it is completed. The number of aioserver servers determines the number of AIO requests that can be processed in the system concurrently. So, it is important to tune the number of aioserver processes when using file systems to store Oracle Database data files.

Use one of the following commands to set the number of servers. This applies only when using

asynchronous I/O on file systems rather than raw devices:

smit aio

chdev -l aio0 -a maxservers=' m ' -a minservers='n'

Set the minimum value to the number of servers to be started when the system is started. Set the maximum value to the number of servers that can be started in response to a large number of concurrent requests. These parameters apply to file systems only. They do not apply to raw devices.

The default value for the minimum number of servers is 1. The default value for the maximum number of servers is 10. These values are usually too low to run Oracle Database on large systems with 4 CPUs or more, if you are not using kernelized AIO. Oracle recommends that you set the parameters to the values listed in the following table.

Parameter Values

=============

minservers

Oracle recommends an initial value equal to the number of CPUs on the system or 10, whichever is lower.

maxservers

Starting with AIX 5L version 5.2, this parameter counts the maximum number of AIO servers per CPU. On previous versions of AIX, it was a systemwide value. If you are using GPFS, then set maxservers to worker1threads divided by the number of CPUs. This is the optimal setting.

Increasing maxservers does not lead to improved I/O performance. If you are using JFS/JFS2, then set the initial value to 10 times the number of logical disks divided by the number of CPUs.

Monitor the actual number of aioservers started during a typical workload using the pstat or ps commands. If the actual number of active aioservers is equal to the maxservers, then increase the maxservers value.

maxreqs

Set the initial value to 4 times the number of logical disks multiplied by the queue depth. You can determine the queue depth by running the following command:

$ lsattr -E -l hdiskxx

Typically, the queue depth is 3.

If the value of the maxservers or maxreqs parameter is set too low, then the following warning messages are repeatedly displayed:

"Warning: lio_listio returned EAGAIN

Performance degradation may be seen."

You can avoid these errors by increasing the value of the maxservers parameter. To display the number of AIO servers running, enter the following commands as the root user:

# pstat -a | grep -c aios

# ps -k | grep aioserver

Check the number of active AIO servers periodically, and change the values of the minservers and maxservers parameters if required. The changes take place when the system is restarted.

mysql aix版本查看_AIX 查看aio状态相关推荐

  1. mysql linux版本 rpm_Linux下查看MySQL版本及rpm里有没有MySQL

    查看MySQL版本号命令: [root@linuxidc.com]# mysql -V 显示:mysql  Ver 14.14 Distrib 5.5.7-rc, for Linux (x86_64) ...

  2. mysql查看历史连接数_MySQL如何查看连接数和连接状态

    MySQL 是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性.MySQL 所使用的 SQL 语言是用于访问数据库的最常用标准 ...

  3. 查看MySQL的版本

    通过mysql命令的-V参数查看版本信息 mysql -V 此种方法查看当前设备上的mysql版本. 通过mysql命令帮助信息查看版本信息 mysql --help# linux中结合grep命令使 ...

  4. yum源查看mysql_获取MySQL各版本yum源 并安装

    官网获取yum源,点击顺序如下: download→最下面的Community (GPL) Downloads »→MySQL Yum Repository→选择linux6或7 download→右 ...

  5. centos6.8自带mysql_CentOS6.8下MySQL数据库版本信息查看

    方法1:使用mysql -v命令查看: [root@yeebian mysql]# mysql -V mysql Ver 14.14 Distrib 5.1.73, for redhat-linux- ...

  6. 怎么看数据库版本mysql_MySQL数据库之如何查看MySQL的版本?

    本文主要向大家介绍了MySQL数据库之如何查看MySQL的版本? 通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 查看MySQL的版本,主要有以下几个方法: 1. 没有连接到MyS ...

  7. mysql 查询连接数_MySQL如何查看连接数和连接状态

    MySQL 是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性.MySQL 所使用的 SQL 语言是用于访问数据库的最常用标准 ...

  8. 如何查看mysql的版本情况?

    一.命令方式: 1.Linux服务器上查看mysql的版本 方法一: [root@mysql usr]# mysql -V mysql Ver 14.14 Distrib 5.7.30, for li ...

  9. mysql @@version_查看mysql数据库版本方法总结

    当你接手某个mysql数据库管理时,首先你需要查看维护的mysql数据库版本:当开发人员问你mysql数据库版本时,而恰好你又遗忘了,那么此时也需要去查看mysql数据库的版本............ ...

  10. 如何查看mysql的版本

    如果不想麻烦的话,直接win+R键打开命令行代码,然后在命令行输入:mysql --version 查看MySQL的版本,主要有以下几个方法: 1. 没有连接到MySQL服务器,就想查看MySQL的版 ...

最新文章

  1. 基于OpenCV提取特定区域方法汇总
  2. 三巨头对中国人工智能技术的支撑性作用
  3. Android消息处理机制
  4. VS.NET 2005 Beta2的稳定性太差了:(
  5. 全选checkbox只能执行一次的问题
  6. c语言为什么数据写不进文件,求大神看看为什么不能将数据写入文件
  7. 读取和修改caffemodel文件里的参数
  8. IntelliJ IDEA类注释模板设置
  9. JavaScript ES5之Object.create函数详解
  10. NetCore MiddleWare 注意事项
  11. Linux下MySQL数据库的备份与还原
  12. 转录组-蛋白组-代谢组关联分析
  13. Docker mongo:5.0
  14. 科目三-上海松江小昆山
  15. 微信域名监控通知、微信域名检测API接口分享
  16. 新书封面初稿,征集意见ing【人人都是产品经理:9066】
  17. 【hangs】impdp hangs
  18. 号脉数据中心全生命周期,业务永续从细节做起
  19. 应用服务打车应用生死未卜 嘀嘀或傍上腾讯
  20. 图的深度优先遍历实现农夫过河

热门文章

  1. iOS-图片可以自适应屏幕大小吗,应该会失真吧?
  2. [网络] 数字签名和数字证书的原理机制
  3. ManageEngine云ITSM系统助斯德雷特(Sterlite)年处理5万个工单
  4. RK3399 修改android桌面图标默认大小
  5. 如何修复老照片,Bringing-Old-Photos-Back-to-Life机器学习开源项目安装使用 | 机器学习
  6. 狐狸找兔子(java 版)
  7. Filebeat日志采集
  8. 【GNN】首篇NLP领域图神经网络综述:127页,从图构建到实际应用面面观
  9. python中 s是什么意思_python中字符串 s[ : -1]是什么意思?
  10. windows启用Guest用户