Skip to content

Speed up read performance with AIO #248

@tabokie

Description

@tabokie
  1. Expanding FileSystem interface to provide async tasking capability:
trait AsyncContext {
  fn wait() -> Result<()>;
}

trait FileSystem {
  pub type AsyncIoContext: AsyncContext;
  fn new_async_context() -> AsyncContext;
  fn read(ctx: &mut AsyncIoContext, offset: u64, size: usize) -> IoResult<usize>;
}
  1. Modify read_entry implementation to generate read requests of all file blocks, then wait for completion.

For best kernel compatibility, use AIO to implement the first version. Reference: https://docs.rs/nix/latest/nix/sys/aio/fn.aio_suspend.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions