Skip to content

test/crimson: disable stall-detector on aarch64 to fix asan failures - #60276

Merged
cyx1231st merged 1 commit into
mainfrom
bypass_sr
Oct 24, 2024
Merged

cyx1231st merged 1 commit into
mainfrom
bypass_sr

Conversation

@Svelar

@Svelar Svelar commented Oct 12, 2024 •

Copy link
Copy Markdown
Member

Ceph crimson uses seastar on debug mode which would enable ASAN, while stall-detector uses glibc backtrace function which would cause ASAN failures on aarch64.
Reason see scylladb/scylladb#15090 (comment)

Because arm ci servers in lab are "elderly", causing stall happened often, this PR is to disable stall-detector until seastar upstream migrated to libunwind, see scylladb/seastar#1878

Seastar does not provide a function to disable stall-detector, at present, increase stall-detector time to avoid stall-detector timeout on arm platform.

fixes: https://tracker.ceph.com/issues/65635

After dozen times of triggering arm make check, all crimson/seastar related tests passed.

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@Svelar Svelar changed the title src/seastar: fix asan error on ARM. [WIP]src/seastar: fix asan error on ARM. Oct 12, 2024
@tchaikov

tchaikov commented Oct 16, 2024 •

Copy link
Copy Markdown
Contributor

the title of this commit reads:

src/seastar: fix asan error on ARM.

but the body of the commit message is empty. after following the change to seastar submodule, i found ceph/seastar@7d4ae90...303ec37#diff-5e5dfd46a396d71e0d68f183d6eb0f3bb5aad37be914323b8e4fea134dafec0c . which still misses the explanation why / how it addresses the ASan error.

@Svelar

Svelar commented Oct 16, 2024 •

Copy link
Copy Markdown
Member Author

the title of this commit reads:

src/seastar: fix asan error on ARM.

but the body of the commit message is empty. after following the change to seastar submodule, i found ceph/[email protected]#diff-5e5dfd46a396d71e0d68f183d6eb0f3bb5aad37be914323b8e4fea134dafec0c . which still misses the explanation why / how it addresses the ASan error.

Thanks for reminding, still WIP, for running arm make check only. I will fix it once this PR is ready to review.

@Svelar Svelar changed the title [WIP]src/seastar: fix asan error on ARM. [WIP][DNM]src/seastar: fix asan error on ARM. Oct 16, 2024
@Svelar
Svelar force-pushed the bypass_sr branch 2 times, most recently from e72328c to 9985c4f Compare October 17, 2024 03:40
@Svelar Svelar changed the title [WIP][DNM]src/seastar: fix asan error on ARM. seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures Oct 17, 2024
@Svelar
Svelar force-pushed the bypass_sr branch 2 times, most recently from edca8d5 to 99c7509 Compare October 17, 2024 03:56
@Svelar
Svelar requested a review from a team October 17, 2024 03:57
@tchaikov

tchaikov commented Oct 17, 2024 •

Copy link
Copy Markdown
Contributor

@Svelar before gets scylladb/seastar#1878 fixed, is it possible to apply a similar change like scylladb/scylladb#15720 to crimson instead of maintaining the patch disabling stall detector in ceph/seastar? IMHO, it's not a joy to maintain another patch in downstream.

@cyx1231st

Copy link
Copy Markdown
Member

The root cause looks clear! Should be better to introduce the change inside crimson code instead of the seastar private module, as kefu suggested.

Also include @Matan-B.

@arm7star

Copy link
Copy Markdown
Contributor

For crimson-related test cases, the SEGV problem may be solved by using --blocked-reactor-notify-ms to specify the stall time without modifying the code.

@tchaikov

Copy link
Copy Markdown
Contributor

For crimson-related test cases, the SEGV problem may be solved by using --blocked-reactor-notify-ms to specify the stall time without modifying the code.

While using --blocked-reactor-notify-ms can indeed help mitigate SEGV issues in crimson-related test cases, it's important to note that this approach is a workaround rather than a permanent solution. It's akin to putting a band-aid on a broken leg.

@Svelar

Svelar commented Oct 17, 2024

Copy link
Copy Markdown
Member Author

While using --blocked-reactor-notify-ms can indeed help mitigate SEGV issues in crimson-related test cases, it's important to note that this approach is a workaround rather than a permanent solution. It's akin to putting a band-aid on a broken leg.

Yes, you are right. Permanent solution should be migration to libunwind, once upstream fixed, this issue could be "cured".

Comment thread src/test/crimson/seastar_runner.h Resolved

@tchaikov tchaikov 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.

i am not sure if this compiles.

@Svelar Svelar changed the title seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures [WIP][DNM]seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures Oct 18, 2024
@tchaikov

Copy link
Copy Markdown
Contributor

would you please reconsider the suggestion of "also this deserves a comment explaining why update the notify timeout and why 10000h."?

@Svelar

Svelar commented Oct 21, 2024

Copy link
Copy Markdown
Member Author

would you please reconsider the suggestion of "also this deserves a comment explaining why update the notify timeout and why 10000h."?

Updated the commit message, and more likely follow the way that upstream fixed the issue, gusev-p/scylla@f75e949

@Svelar Svelar changed the title [WIP][DNM]seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures Oct 21, 2024
@cyx1231st

Copy link
Copy Markdown
Member

Updated the commit message, and more likely follow the way that upstream fixed the issue

The commit message looks great, adding a short comment can make the code (expecially as a work-around) much easier to follow without checking the history.

A comment also helps to minimize the risk to drop the work-around unexpectedly.

@Svelar

Svelar commented Oct 21, 2024

Copy link
Copy Markdown
Member Author

The commit message looks great, adding a short comment can make the code (expecially as a work-around) much easier to follow without checking the history.

A comment also helps to minimize the risk to drop the work-around unexpectedly.

Sounds reasonable, will do ASAP.

@tchaikov

Copy link
Copy Markdown
Contributor

would you please reconsider the suggestion of "also this deserves a comment explaining why update the notify timeout and why 10000h."?

Updated the commit message, and more likely follow the way that upstream fixed the issue, gusev-p/scylla@f75e949

IMHO, scylla's is by no means an upstream project of crimson. it's more of a sister project. i don't understand why we should "follow" it by avoiding a comment in the source code. would that improve the readability or maintainability?

@Svelar

Svelar commented Oct 21, 2024 •

Copy link
Copy Markdown
Member Author

IMHO, scylla's is by no means an upstream project of crimson. it's more of a sister project. i don't understand why we should "follow" it by avoiding a comment in the source code. would that improve the readability or maintainability?

My bad, make it clear that "follow" just explains why 10000h, which is irrelevant to comment, BTW "upstream" means relation between scylladb and seastar. Anyway, as I said, comment would be added and thanks for your suggestion~

@Svelar Svelar changed the title seastar/reactor: disable stall-detector of seastar submodule on aarch64 to fix asan failures seastar/reactor: disable stall-detector on aarch64 to fix asan failures Oct 21, 2024
@Svelar

Svelar commented Oct 22, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Svelar
Svelar requested a review from tchaikov October 22, 2024 08:49

@Matan-B Matan-B 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! few comments

Comment thread src/test/crimson/seastar_runner.h Resolved
Comment thread src/test/crimson/seastar_runner.h Resolved
Comment thread src/test/crimson/seastar_runner.h Resolved
@Matan-B Matan-B changed the title seastar/reactor: disable stall-detector on aarch64 to fix asan failures test/crimson: disable stall-detector on aarch64 to fix asan failures Oct 22, 2024
Ceph crimson uses seastar on debug mode which would enable ASAN, while stall-detector uses glibc backtrace function which would cause ASAN failures on aarch64.
Reason see scylladb/scylladb#15090 (comment)

Because arm ci servers in lab are "elderly", causing stall happened often, this PR is to disable stall-detector until seastar upstream migrated to libunwind, see scylladb/seastar#1878
Seastar does not provide a function to disable stall-detector, at present, increase stall-detector time to avoid stall-detector timeout on arm platform.

fixes: https://tracker.ceph.com/issues/65635

Signed-off-by: cailianchun <[email protected]>
@Svelar
Svelar requested a review from Matan-B October 23, 2024 03:02
@ceph ceph deleted a comment from arm7star Oct 23, 2024
@Svelar

Svelar commented Oct 23, 2024

Copy link
Copy Markdown
Member Author

jenkins test api

@Svelar

Svelar commented Oct 23, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@Matan-B

Matan-B commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

I think that both make checks passing is enough to merge this

@Svelar

Svelar commented Oct 23, 2024

Copy link
Copy Markdown
Member Author

I think that both make checks passing is enough to merge this

@Matan-B All passed, could you help merge?

@cyx1231st
cyx1231st merged commit 20f7d47 into main Oct 24, 2024
@cyx1231st
cyx1231st deleted the bypass_sr branch October 24, 2024 01:29
@Svelar

Svelar commented Oct 24, 2024

Copy link
Copy Markdown
Member Author

Because it affects ARM CI, IMHO this should be backported, any thought? @cyx1231st @Matan-B

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.

6 participants