1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢(xún)
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
      Oracle之AIO(異步io)

      
      Linux 異步 I/O (AIO)是 Linux 內(nèi)核中提供的一個(gè)增強(qiáng)的功能。它是Linux 2.6 版本內(nèi)核的一個(gè)標(biāo)準(zhǔn)特性,AIO 背后的基本思想是允許進(jìn)程發(fā)起很多 I/O 操作,而不用阻塞或等待任何操作完成。稍后或在接收到 I/O 操作完成的通知時(shí),進(jìn)程就可以檢索 I/O 操作的結(jié)果。

      10年積累的網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站建設(shè)經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶(hù)對(duì)網(wǎng)站的新想法和需求。提供各種問(wèn)題對(duì)應(yīng)的解決方案。讓選擇我們的客戶(hù)得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先網(wǎng)站設(shè)計(jì)制作后付款的網(wǎng)站建設(shè)流程,更有漣水免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

      同步IO:線程啟動(dòng)一個(gè)IO操作然后就立即進(jìn)入等待狀態(tài),直到IO操作完成后才醒來(lái)繼續(xù)執(zhí)行。
      異步IO:線程發(fā)送一個(gè)IO請(qǐng)求到內(nèi)核,然后繼續(xù)處理其他的事情,內(nèi)核完成IO請(qǐng)求后,將會(huì)通知線程IO操作完成

      補(bǔ)充:當(dāng)后臺(tái)等待事件排在第一的是 db file async I/O submit,這是一個(gè)異步IO相關(guān)的等待事件,可以考慮開(kāi)啟異步io。

      1、--查看系統(tǒng)是否使用異步IO 。 slab是Linux的內(nèi)存分配器,AIO相關(guān)的內(nèi)存結(jié)構(gòu)已經(jīng)分配。
      more /proc/slabinfo |grep kio
      [root@localhost ~]# grep kio /proc/slabinfo
      kioctx 0 0 384 10 1 : tunables 54 27 0 : slabdata 0 0 0
      kiocb 0 0 256 15 1 : tunables 120 60 0 : slabdata 0 0 0
      看到kiocb行顯示為0,說(shuō)明異步IO沒(méi)有啟動(dòng)。

      2、 查看數(shù)據(jù)庫(kù)是否開(kāi)啟異步io
      (11G)SYS@qixindb> show parameter disk_asynch_io
      NAME TYPE VALUE
      ------------------------------------ ----------- ------------------------------
      disk_asynch_io boolean TRUE

      (11G)SYS@qixindb> show parameter filesystem
      NAME TYPE VALUE
      ------------------------------------ ----------- ------------------------------
      filesystemio_options string none

      filesystemio_options 的四種值:
      ASYNCH: enable asynchronous I/O on file system files, which has no timing requirement for transmission.
      在文件系統(tǒng)文件上啟用異步I/O,在數(shù)據(jù)傳送上沒(méi)有計(jì)時(shí)要求。
      DIRECTIO: enable direct I/O on file system files, which bypasses the buffer cache.
      在文件系統(tǒng)文件上啟用直接I/O,繞過(guò)buffer cache。
      SETALL: enable both asynchronous and direct I/O on file system files.
      在文件系統(tǒng)文件上啟用異步和直接I/O。
      NONE: disable both asynchronous and direct I/O on file system files.
      在文件系統(tǒng)文件上禁用異步和直接I/O。

      3、 oracle已經(jīng)鏈接了aio的包
      [oracle@localhost ~]$ /usr/bin/ldd $ORACLE_HOME/bin/oracle | grep libaio
      libaio.so.1 => /lib64/libaio.so.1 (0x0000003e13000000)
      說(shuō)明:檢查顯示oracle已經(jīng)鏈接了aio的包

      4、 調(diào)整數(shù)據(jù)庫(kù)參數(shù) 開(kāi)啟aio
      數(shù)據(jù)庫(kù)中的filesystemio_options參數(shù)設(shè)置為none,看來(lái)oracle中也沒(méi)有配置異步IO,
      這里可以將數(shù)據(jù)庫(kù)中的filesystemio_options參數(shù)調(diào)整為setall;

      SQL> alter system set filesystemio_options = setall scope=spfile; 
      SQL> alter system set disk_asynch_io = true scope=spfile; 
      SQL> shutdown immediate;
      SQL> startup;

      5、查看aio是否生效
      [oracle@localhost ~]$ more /proc/slabinfo |grep kio
      kioctx 130 160 384 10 1 : tunables 54 27 8 : slabdata 16 16 0
      kiocb 16 30 256 15 1 : tunables 120 60 8 : slabdata 2 2 1

      6、 數(shù)據(jù)庫(kù)層面查看是否開(kāi)啟異步io
      select name, asynch_io
      from v$datafile f, v$iostat_file i
      where f.file# = i.file_no
      and (filetype_name = 'Data File' or filetype_name = 'Temp File');

       



      本文名稱(chēng):Oracle之AIO(異步io)
      文章起源:http://www.ef60e0e.cn/article/jgcdjd.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        徐闻县| 九台市| 梁山县| 海原县| 阳新县| 滕州市| 大足县| 奉贤区| 鄂州市| 石屏县| 北票市| 开封县| 开平市| 邵武市| 洛阳市| 宜川县| 扶沟县| 忻城县| 河源市| 纳雍县| 隆化县| 娄底市| 博湖县| 札达县| 平谷区| 秭归县| 高陵县| 梁河县| 霞浦县| 安化县| 襄城县| 富裕县| 海淀区| 莎车县| 庄浪县| 武清区| 六安市| 建昌县| 蕲春县| 赤壁市| 盐边县|