Skip to content

eliminate read-on-write problem with write buffer padding #329

Description

@tabokie

read-on-write problem refers to when an unaligned write I/O is issued, an additional read is needed to prefetch the data into page cache. In practice we have only observed this phenomenon when log recycling is enabled.

The situation can be improved by:

  • Support Direct I/O #168
  • When write offset is 4K aligned, zero-pad the write buffer into multiple of 4K. This way we can always initialize the page cache without reading.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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