Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Disable O_DIRECT in cache fuzzer #12154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zacw7
Copy link
Contributor

@zacw7 zacw7 commented Jan 23, 2025

Summary:
O_DIRECT requires I/O size needs to be the same as a disk file block size
which is not handled in SSD cache. Misalignment can lead to EINVAL in some
filesystem and kernel version.

Differential Revision: D68562695

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 23, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68562695

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b5ceef7
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6794066ccbfbf80008375340

Copy link
Contributor

@kagamiori kagamiori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fix!

@zacw7 zacw7 requested review from yuandagits and xiaoxmeng January 23, 2025 18:41
// O_DIRECT requires I/O size needs to be the same as a disk file block size
// which is not handled in SSD cache. Misalignment can lead to EINVAL in some
// filesystem and kernel version.
FLAGS_ssd_odirect = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a "// TODO: add this support if needed later."?

zacw7 added a commit to zacw7/velox that referenced this pull request Jan 23, 2025
Summary:

O_DIRECT requires I/O size needs to be the same as a disk file block size
which is not handled in SSD cache. Misalignment can lead to EINVAL in some
filesystem and kernel version.

Reviewed By: kagamiori, yuandagits

Differential Revision: D68562695
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68562695

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zacw7 thanks % minors.

region_.length,
region.offset - region_.offset,
fileIds().string(fileNum_));
// LOG(ERROR) << "IOERR: Failed SSD loadSync " << entry.toString() << ' '
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this?

zacw7 added a commit to zacw7/velox that referenced this pull request Jan 24, 2025
Summary:

O_DIRECT requires I/O size needs to be the same as a disk file block size
which is not handled in SSD cache. Misalignment can lead to EINVAL in some
filesystem and kernel version.

Reviewed By: xiaoxmeng, kagamiori, yuandagits

Differential Revision: D68562695
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68562695

Summary:

O_DIRECT requires I/O size needs to be the same as a disk file block size
which is not handled in SSD cache. Misalignment can lead to EINVAL in some
filesystem and kernel version.

Reviewed By: xiaoxmeng, kagamiori, yuandagits

Differential Revision: D68562695
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68562695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants