|

楼主 |
发表于 2004-8-8 05:12:00
|
显示全部楼层
Re: 请问关于AIO(异步IO)和accept()的问题
我靠!刚才搜到一篇讲linux上的aio的文章……里面有这么一段:
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)
靠!闹了半天没法用在网络上…… [em6] [em6] [em6]
看来还是得用poll()了………… [em17] [em17] |
|