Linux 上 regular file 有可用的 async i/o 功能嗎?

16 views
Skip to first unread message

DaboD

unread,
Dec 19, 2014, 3:37:55 AM12/19/14
to sh...@googlegroups.com
似乎 linux kernel 中的 aio 實現只能用在 direct i/o, 且必須 page aligned. glibc 中則是配合 thread pool 實現了 aio. Kernel 中有其他更成熟好用的 async i/o 或 overlapped i/o 方案嗎?

Chaos Eternal

unread,
Dec 19, 2014, 3:53:21 AM12/19/14
to sh...@googlegroups.com
据说没有

On Fri, Dec 19, 2014 at 4:37 PM, DaboD <daid...@gmail.com> wrote:
> 似乎 linux kernel 中的 aio 實現只能用在 direct i/o, 且必須 page aligned. glibc 中則是配合
> thread pool 實現了 aio. Kernel 中有其他更成熟好用的 async i/o 或 overlapped i/o 方案嗎?
>
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

Shell Xu

unread,
Dec 20, 2014, 1:58:01 AM12/20/14
to shlug
基本只有内核aio。但是你刚刚也说了。。。

2014-12-19 16:37 GMT+08:00 DaboD <daid...@gmail.com>:
似乎 linux kernel 中的 aio 實現只能用在 direct i/o, 且必須 page aligned. glibc 中則是配合 thread pool 實現了 aio. Kernel 中有其他更成熟好用的 async i/o 或 overlapped i/o 方案嗎?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.org/blog/

DaboD

unread,
Dec 20, 2014, 5:24:39 AM12/20/14
to sh...@googlegroups.com
多謝, 看來在 linux 上只能用 thread 了.

On Saturday, December 20, 2014 2:58:01 PM UTC+8, shell909090 wrote:
基本只有内核aio。但是你刚刚也说了。。。

2014-12-19 16:37 GMT+08:00 DaboD <daid...@gmail.com>:
似乎 linux kernel 中的 aio 實現只能用在 direct i/o, 且必須 page aligned. glibc 中則是配合 thread pool 實現了 aio. Kernel 中有其他更成熟好用的 async i/o 或 overlapped i/o 方案嗎?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages