江南无烟雨
作者江南无烟雨·2017-09-11 16:18
研发工程师·某券商

AIX 6.1开始,OS默认是不会启动aioserver

字数 1149阅读 4157评论 0赞 2

AIX6.1开始,OS默认是不会启动aioserver的,只有当应用确实使用到aio时,才会启动,此时可以通过ioo -a|grep aio_active看到:

ioo -a|grep active

                aio_active = 1  <= aio_active取值为1说明AIO服务已经被激活。
          posix_aio_active = 0
          

在aio_active取值为1的情况下,且aio_minservers不为0的情况下,通常可以观察到aioserver进程,比如(注意kernel进程必须使用-k选项才能查看):

ps -kf|grep aioserver

db2inst1 7340062 1 0 Sep 07 - 0:00 aioserver
db2inst1 10813484 1 0 Sep 07 - 0:00 aioserver
db2inst1 11206780 1 0 Sep 07 - 0:00 aioserver
db2inst1 12189878 1 0 Sep 07 - 0:00 aioserver
db2inst1 12910754 1 0 Sep 07 - 0:00 aioserver
db2inst1 13238484 1 0 Sep 07 - 0:00 aioserver
db2inst1 13959404 1 0 Sep 07 - 0:00 aioserver
db2inst1 15335524 1 0 Sep 07 - 0:00 aioserver

而如果上层应用从未使用到AIO,aio_active为0,则此时系统是不会启动aioserver的:

ioo -a|grep aio_active

                aio_active = 0
          posix_aio_active = 0

ps -kf|grep aios

ps -kf|grep aio

root 4456612       1   0   Aug 30      -  0:00 aioPpool    (管理POSIX aioserver的进程)   
root 4653208       1   0   Aug 30      -  0:00 aioLpool    (管理legacy aioserver的进程)

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

2

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关问题

X社区推广