Repository navigation
rgw/s3vectors: link librgw_lancedb dynamically - #73063
Conversation
yuvalif
left a comment
There was a problem hiding this comment.
we should take a different approach here.
this breaks the way the way that we do both SAL and the frontend handlers.
note that what we need to split is the librgw_lancedb not the s3vectors code.
if this is still not possible, i would take the approach that librgw_lancedb should be dynamically linked instead.
d338dd5 to
5e87576
Compare
Thanks. I've taken the approach that |
|
looks like arm64 build is failing due to link issues: |
5e87576 to
68d2083
Compare
68d2083 to
729e4fb
Compare
rgw_common put the Rust archive on every dependent binary's link line. The jammy and noble deb builds run out of memory when these links run in parallel. Build and package librgw_lancedb as a shared library, then link rgw_common against it. A link against it only reads its dynamic symbol table. Drop the aarch64 lld option, since the C++ links no longer carry the Rust code. Keep the test binary's own provider symbols private so calls from the test environment resolve inside librgw_lancedb.so. Assisted-by: Claude Opus 5.5 Signed-off-by: Matthew N. Heler <[email protected]>
729e4fb to
21621e0
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
|
presenting to rgw weekly for team feedback, https://pad.ceph.com/p/rgw-weekly |
|
This PR has been added to wip-anrao4-testing-2026-10-28-0754-main. |
|
jenkins test api |
|
I'm running an arm64 build of this as well: https://jenkins.ceph.com/job/ceph-dev-pipeline/10515/stages/ - PASSED Package size impactInstalled sizes from the shaman builds (PR head
teuthology runsarm64 package sizesarm64 build of the PR head
Main has no ready arm64 noble or jammy builds on shaman to compare against The aarch64 cdylib link succeeded with the default linker, without the |
|
@mheler @yuvalif : This appears to be causing valgrind errors in teuthology. See: https://qa-proxy.ceph.com/teuthology/anuchaithra-2026-10-29_04:19:23-rgw-wip-anrao4-testing-2026-10-28-0758-main-distro-default-trial/689436/ Specifically, here's the valgrind result: https://qa-proxy.ceph.com/teuthology/anuchaithra-2026-10-29_04:19:23-rgw-wip-anrao4-testing-2026-10-28-0758-main-distro-default-trial/689436/remote/trial097/log/valgrind/ |
Without a jobserver, GCC's -flto=auto can start an LTRANS worker per CPU in each concurrent link. Divide the CPU count by the heavy link pool size and use the result for automatic LTO links in either pool. This also applies to Ninja RPM builds on EL9 and EL10. A 192-thread host with 255 GiB has 29 heavy slots at the existing 4500 MiB budget, giving six workers per link. Replace -flto=auto in the C/C++ compile flags, executable, shared and module linker flags, active configuration flags, and GNU IPO options. GCC 11 remembers auto even after a later -flto=N. Jammy's GCC 11.4 ran make -j32 for -flto=auto -flto=2 and make -j2 after replacement. Keep explicit GCC job counts and use -flto-jobs=N for Clang ThinLTO. After ceph#73063, RGW loads librgw_lancedb.so.1. Peak process-tree PSS in GiB on GCC 14.2, using the same -O2 -g fat LTO objects, 32 CPUs and three heavy slots: target auto N=10 radosgw 6.61 3.99 librgw.so 5.86 4.27 radosgw-admin 5.55 4.18 denc-mod-rgw.so 6.01 4.24 ceph-osd 4.77 2.42 crimson-osd 9.82 6.14 Both radosgw-admin and denc-mod-rgw used a GNU ld archive group in both runs. The optional Crimson build needed fmt::format_to qualified with this host's fmt 10 headers. The capped peaks fit the existing heavy pool allowance of about 9000 MiB per slot. Signed-off-by: Kefu Chai <[email protected]> CEPH-BUILD-JOB: ceph-dev-pipeline DISTROS: jammy noble ARCHS: x86_64 FLAVORS: default CI-CONTAINER: false
Without a jobserver, GCC's -flto=auto can start an LTRANS worker per CPU in each concurrent link. Divide the CPU count by the heavy link pool size and use the result for automatic LTO links in either pool. This also applies to Ninja RPM builds on EL9 and EL10. A 192-thread host with 255 GiB has 29 heavy slots at the existing 4500 MiB budget, giving six workers per link. Replace -flto=auto in the C/C++ compile flags, executable, shared and module linker flags, active configuration flags, and GNU IPO options. GCC 11 remembers auto even after a later -flto=N. Jammy's GCC 11.4 ran make -j32 for -flto=auto -flto=2 and make -j2 after replacement. Keep explicit GCC job counts and use -flto-jobs=N for Clang ThinLTO. After ceph#73063, RGW loads librgw_lancedb.so.1. Peak process-tree PSS in GiB on GCC 14.2, using the same -O2 -g fat LTO objects, 32 CPUs and three heavy slots: target auto N=10 radosgw 6.61 3.99 librgw.so 5.86 4.27 radosgw-admin 5.55 4.18 denc-mod-rgw.so 6.01 4.24 ceph-osd 4.77 2.42 crimson-osd 9.82 6.14 Both radosgw-admin and denc-mod-rgw used a GNU ld archive group in both runs. The optional Crimson build needed fmt::format_to qualified with this host's fmt 10 headers. The capped peaks fit the existing heavy pool allowance of about 9000 MiB per slot. Signed-off-by: Kefu Chai <[email protected]>
Without a jobserver, GCC's -flto=auto can start an LTRANS worker per CPU in each concurrent link. Divide the CPU count by the heavy link pool size and use the result for automatic LTO links in either pool. This also applies to Ninja RPM builds on EL9 and EL10. A 192-thread host with 255 GiB has 29 heavy slots at the existing 4500 MiB budget, giving six workers per link. Replace -flto=auto in the C/C++ compile flags, executable, shared and module linker flags, active configuration flags, and GNU IPO options. GCC 11 remembers auto even after a later -flto=N. Jammy's GCC 11.4 ran make -j32 for -flto=auto -flto=2 and make -j2 after replacement. Keep explicit GCC job counts and use -flto-jobs=N for Clang ThinLTO. After ceph#73063, RGW loads librgw_lancedb.so.1. Peak process-tree PSS in GiB on GCC 14.2, using the same -O2 -g fat LTO objects, 32 CPUs and three heavy slots: target auto N=10 radosgw 6.61 3.99 librgw.so 5.86 4.27 radosgw-admin 5.55 4.18 denc-mod-rgw.so 6.01 4.24 ceph-osd 4.77 2.42 crimson-osd 9.82 6.14 Both radosgw-admin and denc-mod-rgw used a GNU ld archive group in both runs. The capped peaks fit the existing heavy pool allowance of about 9000 MiB per slot. Signed-off-by: Kefu Chai <[email protected]>
Without a jobserver, GCC's -flto=auto can start an LTRANS worker per CPU in each concurrent link. Divide the CPU count by the heavy link pool size and use the result for automatic LTO links in either pool. This also applies to Ninja RPM builds on EL9 and EL10. A 192-thread host with 255 GiB has 29 heavy slots at the existing 4500 MiB budget, giving six workers per link. Replace -flto=auto in the C/C++ compile flags, executable, shared and module linker flags, active configuration flags, and GNU IPO options. GCC 11 remembers auto even after a later -flto=N. Jammy's GCC 11.4 ran make -j32 for -flto=auto -flto=2 and make -j2 after replacement. Keep explicit GCC job counts and use -flto-jobs=N for Clang ThinLTO. After ceph#73063, RGW loads librgw_lancedb.so.1. Peak process-tree PSS in GiB on GCC 14.2, using the same -O2 -g fat LTO objects, 32 CPUs and three heavy slots: target auto N=10 radosgw 6.61 3.99 librgw.so 5.86 4.27 radosgw-admin 5.55 4.18 denc-mod-rgw.so 6.01 4.24 ceph-osd 4.77 2.42 crimson-osd 9.82 6.14 Both radosgw-admin and denc-mod-rgw used a GNU ld archive group in both runs. The capped peaks fit the existing heavy pool allowance of about 9000 MiB per slot. Signed-off-by: Kefu Chai <[email protected]>
Fixes: https://tracker.ceph.com/issues/82052
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.