laixintao / laixintao/problems

aio

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

aio

Linux 只对以 O_DIRECT 打开的文件支持异步IO。对于不带 O_DIRECT flag 打开的普通文件,要支持异步IO的话,只能采取某种变通的方式。这种方式毕竟不是 Kernel 原生的支持,所以只能类似于异步IO,而不是真正的异步IO。

问题:

  1. 什么文件不能用 O_DIRECT 打开?而需要自己实现异步IO呢?
  2. epoll 可以block 普通文件的io吗?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are identified. Start by reading the Linux documentation for O_DIRECT, asynchronous I/O, and epoll, then determine which regular files require an alternative approach and whether epoll can block on them. Done means providing clear, referenced answers to both questions.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.