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

Add support for nvme devices #78

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

cgwalters
Copy link
Contributor

This also seems to avoid the disk corruption that we see with virtio-blk; it reportedly has a small performance hit for raw speed, but I think avoiding the double caching (guest and host) is much better from a performance perspective.

Copy link

openshift-ci bot commented Jan 7, 2024

Hi @cgwalters. Thanks for your PR.

I'm waiting for a crc-org member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

cgwalters added a commit to cgwalters/podman that referenced this pull request Jan 9, 2024
This depends on crc-org/vfkit#78
and is an alternative to crc-org/vfkit#76
that I like better for fixing
containers#21160

It looks like at least UTM switched to NVMe for Linux guests by default
for example.

[NO NEW TESTS NEEDED]

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters
Copy link
Contributor Author

Tested this e2e in concert with containers/podman#21208 and I am also not seeing any corruption.

@gbraad
Copy link

gbraad commented Jan 9, 2024

/ok-to-test

@gbraad
Copy link

gbraad commented Jan 9, 2024

the NVME device is only supported on macOS 14, so this would error on 13.

Copy link
Collaborator

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

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

I removed the 2 unused methods, and added a bit of documentation about this to doc/usage.md. I've pushed this to your branch as a fixup, it can be squashed if you are ok with the changes.
Apart from this, looks good to me!


func (dev *NVMExpressController) ToCmdLine() ([]string, error) {
return dev.StorageConfig.ToCmdLine()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

ToCmdLine and FromOptions are not needed as go will reuse the ones from StorageConfig if they are not implemented.

@cgwalters
Copy link
Contributor Author

Your fixup LGTM

@cfergeau cfergeau mentioned this pull request Jan 23, 2024
This also seems to avoid the disk corruption that we see
with virtio-blk; it reportedly has a small performance hit
for raw speed, but I think avoiding the double caching (guest and host)
is much better from a performance perspective.

Signed-off-by: Colin Walters <walters@verbum.org>
@cfergeau
Copy link
Collaborator

/lgtm
/approve
/hold
(holding this to leave time for the tests to run)

Copy link

openshift-ci bot commented Jan 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cfergeau
Copy link
Collaborator

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit bf9afb0 into crc-org:main Jan 24, 2024
5 checks passed
@cfergeau
Copy link
Collaborator

Interestingly, Apple recommends using virtio-blk https://developer.apple.com/videos/play/wwdc2023/10007/?time=630
They describe NVMe as a fallback for linux VM images which don't have the virtio-blk module built-in, and need an alternative way to access the disk data.

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

Successfully merging this pull request may close these issues.

3 participants