Skip to content

msg/async: SMC on s390x - #64894

Merged
idryomov merged 1 commit into
ceph:mainfrom
ibm-s390-cloud:main-s390x-smcd
Mar 31, 2026
Merged

idryomov merged 1 commit into
ceph:mainfrom
ibm-s390-cloud:main-s390x-smcd

Conversation

@aliakseimakarau

@aliakseimakarau aliakseimakarau commented Aug 7, 2025 •

Copy link
Copy Markdown
Contributor

This change introduces the shared memory communication (SMC) for the Ceph cluster network
smc in IBM Z.
SMC is faster than Ethernet in IBM Z LPARs and/or VMs (zVM or KVM) and offloads CPU.

Fixes: https://tracker.ceph.com/issues/66702

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@github-actions

github-actions Bot commented Aug 7, 2025

Copy link
Copy Markdown

Config Diff Tool Output

! changed: ms_type: old: Transport type used by Async Messenger. Can be ``async+posix``, ``async+dpdk`` or ``async+rdma``. Posix uses standard TCP/IP networking and is default. Other transports may be experimental and support may be limited. (global.yaml.in)
! changed: ms_type: new: Transport type used by Async Messenger. Can be ``async+posix``, ``async+dpdk``, ``async+rdma``, or ``async+smc``. Posix uses standard TCP/IP networking and is default. Other transports may be experimental and support may be limited. (global.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

Hi Ceph team! @rzarzynski @ljflores @idryomov @lxbsz
Could you please have a look?
Thank you very much!

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My single worry at the moment is about adding the extra indirection for PosixWorker::net. Please see the comments.

Comment thread src/msg/async/PosixStack.h Resolved
Comment thread src/msg/async/smc/SMCStack.h Resolved
Comment thread src/msg/async/smc/SMCNetHandler.cc Resolved
Comment thread src/msg/async/smc/SMCNetHandler.cc Resolved
@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

@aliakseimakarau

aliakseimakarau commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor Author

@idryomov
SMCPROTO_SMC & SMCPROTO_SMC6 are the SMC specific macros, hence they are defined in the net/smc/smc.h file & not system wide header file. You can refer to above commit for more details:
torvalds/linux@aaa4d33

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise LGTM! If others like this approach you would need to squash the second commit into the first one.

Comment thread src/msg/async/PosixStack.h Resolved

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I'm happy to merge this assuming it doesn't break x86 nor arm64. Yet, we should discuss how to support the msgr's backend (and s390 in general, I think) in longer term.

@idryomov

Copy link
Copy Markdown
Contributor

@aliakseimakarau Please squash everything into a single commit.

Comment thread src/msg/async/net_handler.cc Resolved
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jan 25, 2026
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions Bot removed the stale label Jan 25, 2026
@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

up!
Work in progress!

@JonBailey1993

Copy link
Copy Markdown
Contributor

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run.

@yuriw

yuriw commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

@aliakseimakarau this PR can be merged at will when fixed and checks passed
ref: https://tracker.ceph.com/issues/75119

@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

Hi @idryomov and @rzarzynski ,
Here the smc socket status is checked and logged.

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please squash "This change fixes the windows build errors." commit.

Comment thread src/msg/async/net_handler.cc Resolved
@idryomov

Copy link
Copy Markdown
Contributor

@aliakseimakarau This is still pending:

Please squash "This change fixes the windows build errors." commit.

@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

@aliakseimakarau This is still pending:

Please squash "This change fixes the windows build errors." commit.

yes, I manage to check again on windows.

@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

jenkins make check

@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

@aliakseimakarau This is still pending:

Please squash "This change fixes the windows build errors." commit.

Done!
There is one timeout:
265 - unittest_posix_bucket_cache (Timeout)

@idryomov

Copy link
Copy Markdown
Contributor

@aliakseimakarau Sorry, another push is required -- please rebase on latest main to fix the "Read the Docs" build.

…e cluster network.

SMC-D is faster than ethernet in IBM Z LPARs and/or VMs (zVM or KVM).

Fixes: https://tracker.ceph.com/issues/66702
Signed-off-by: Aliaksei Makarau <[email protected]>
@aliakseimakarau

Copy link
Copy Markdown
Contributor Author

@aliakseimakarau Sorry, another push is required -- please rebase on latest main to fix the "Read the Docs" build.

@idryomov done!

@idryomov idryomov changed the title SMC on s390x msg/async: SMC on s390x Mar 31, 2026
@idryomov
idryomov merged commit beaff84 into ceph:main Mar 31, 2026
6 of 9 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/23792877422

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.

7 participants