一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Kernel Asynchronous I/O (AIO) Support for Linux

 fort 2009-02-12

Kernel Asynchronous I/O (AIO) Support for Linux

Overview

AIO enables even a single application thread to overlap I/O operations with other processing, by providing an interface for submitting one or more I/O requests in one system call (io_submit()) without waiting for completion, and a separate interface (io_getevents()) to reap completed I/O operations associated with a given completion group.

Support for kernel AIO has been included in the 2.6 Linux kernel.

What Works?

  • AIO read and write on raw (and O_DIRECT on blockdev)
  • AIO read and write on files opened with O_DIRECT on ext2, ext3, jfs, xfs

What Does Not Work?

  • AIO read and write on files opened without O_DIRECT (i.e. normal buffered filesystem AIO). On ext2, ext3, jfs, xfs and nfs, these do not return an explicit error, but quietly default to synchronous or rather non-AIO behaviour (i.e io_submit waits for I/O to complete in these cases). For most other filesystems, -EINVAL is reported.
  • AIO fsync (not supported for any filesystem)
  • AIO read and write on sockets (doesn't return an explicit error, but quietly defaults to synchronous or rather non-AIO behavior)
  • AIO read and write on pipes (reports -EINVAL)
  • Not all devices (including TTY) support AIO (typically return -EINVAL)

Additional functionality is available HERE

  • Buffered filesystem AIO, i.e. AIO read and write on files opened without O_DIRECT, on ext2, ext3, jfs, xfs, reiserfs.
  • Does not include AIO fsync
  • AIO read and write on pipes (from Chris Mason)

Q. Where can I find AIO libraries that utilize kernel AIO on Linux ?

A. You need to install the libaio package if you are writing AIO applications which use the native AIO interfaces (libaio-0.3.99)

Q. Is AIO functionality available for 2.4 kernels?

A. Patches for 2.4 can be found HERE . Also check out the original Linux-AIO home page.


Reading About the Linux Kernel AIO Design

  • Asynchronous I/O Support Linux 2.5, Ottawa Linux Symposium 2003
    Covers the AIO design for 2.6, including the filesystem AIO implementation that's currently in the -mm tree, and some performance results for O_DIRECT AIO using rawiobench.
  • AIO Design Notes written at the time of the 2.4 AIO implementation, These are a little out-of-date, but provide some idea and background on various issues, alternative design approaches and considerations involved in an AIO implementation and describes the design of the 2.4 AIO implementation.
  • Round 3: aio vs /dev/epoll compares epoll, AIO poll and AIO read behaviour. The full paper is included in the OLS 2002 Proceedings.

Future Work

  • Performance Tuning
  • Vector AIO

Benchmarks and Testing

Performance testing/microbenchmarking
  • Chris Mason's aio-stress benchmark issues a stream of AIO requests to one or more files, where one can vary several parameters like I/O unit size, total I/O size, depth of iocbs submitted at a time, number of concurrent threads, type and pattern of I/O operations, etc. It reports the overall throughput attained and average io submission latency.
  • rawiobench is another microbenchmark which can issue sequential or random disk I/O. It supports both synchronous and asynchronous I/O for O_DIRECT and buffered filesystem AIO and reports throughput and CPU utilization results.
Other tests AIO tests:
  • Daniel McNiel's (OSDL) aiocp test.
  • fsx-linux is now enabled for AIO. Just compile it with -DAIO.

Performance Results

  • Filesystem AIO aiostress results with and without fsaio patches 

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類(lèi)似文章 更多

    国产91麻豆精品成人区| 亚洲一区二区三区日韩91| 日韩精品小视频在线观看| 久草热视频这里只有精品| 女同伦理国产精品久久久| 欧美区一区二区在线观看| 沐浴偷拍一区二区视频| 成人免费视频免费观看| 欧美国产日韩变态另类在线看| 少妇特黄av一区二区三区| 午夜福利精品视频视频 | 亚洲另类欧美综合日韩精品| 色播五月激情五月婷婷| 日本一二三区不卡免费| 在线观看视频成人午夜| 国产不卡免费高清视频| 日韩av亚洲一区二区三区| 精品午夜福利无人区乱码| 五月激情综合在线视频| 欧洲一级片一区二区三区| 老司机激情五月天在线不卡| 热情的邻居在线中文字幕| 国产不卡在线免费观看视频| 老司机精品视频在线免费| 欧美自拍系列精品在线| 国产精品一区二区日韩新区| 久久精品国产亚洲熟女| 少妇视频一区二区三区| 国产又长又粗又爽免费视频| 欧美中文日韩一区久久| 久久国产亚洲精品赲碰热| 中文人妻精品一区二区三区四区 | 国产精欧美一区二区三区久久| 国产精品免费精品一区二区| 日本不卡片一区二区三区| 亚洲国产成人一区二区在线观看 | 91人妻人人澡人人人人精品| 日本本亚洲三级在线播放| 日本高清视频在线观看不卡| 成人欧美精品一区二区三区| 日本91在线观看视频|