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

Closed
wants to merge 1 commit into 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 5095b2b
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/679923fbc4de410008050b6f

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

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

zacw7 added a commit to zacw7/velox that referenced this pull request Jan 27, 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

zacw7 added a commit to zacw7/velox that referenced this pull request Jan 27, 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

1 similar comment
@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
zacw7 added a commit to zacw7/velox that referenced this pull request Jan 28, 2025
Summary:
Pull Request resolved: facebookincubator#12154

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
@zacw7 zacw7 force-pushed the export-D68562695 branch 2 times, most recently from 17308e9 to 5095b2b Compare January 28, 2025 18:37
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9999ae0.

@zacw7 zacw7 deleted the export-D68562695 branch January 28, 2025 22:21
Copy link

Conbench analyzed the 1 benchmark run on commit 9999ae02.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants