Skip to content

add WITH_BOOST_VALGRIND to default build flavor#2043

Merged
djgalloway merged 1 commit intoceph:mainfrom
cbodley:wip-boost-valgrind
Aug 17, 2022
Merged

add WITH_BOOST_VALGRIND to default build flavor#2043
djgalloway merged 1 commit intoceph:mainfrom
cbodley:wip-boost-valgrind

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Aug 2, 2022

build boost with valgrind annotations enabled so they run cleanly under valgrind for https://tracker.ceph.com/issues/56500

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Aug 2, 2022

cc @yuvalif @tchaikov @djgalloway

i'm working with @mkogan1 to test whether we can observe any overhead from these builds. DNM pending those results

@idryomov
Copy link
Contributor

in https://tracker.ceph.com/issues/56500, Mark Kogan showed that
WITH_BOOST_VALGRIND has little to no effect on rgw performance. Mark
Nelson did similar testing with rbd trying to rule out a performance
hit there as well - the results had quite a bit of variation, so it
was hard to rule out completely

to narrow the scope of this investigation, i did a grep of the entire
boost project and confirmed that boost::context and boost::coroutine
are the only two libraries that mention this BOOST_USE_VALGRIND flag.
so i think it's safe to assume that these valgrind builds will have no
effect outside of rgw

https://lists.ceph.io/hyperkitty/list/dev@ceph.io/message/ZGP75L3PJYETWKKW62FFPEFD2FY7MXXU/

@djgalloway djgalloway merged commit f55a9b2 into ceph:main Aug 17, 2022
@cbodley
Copy link
Contributor Author

cbodley commented Aug 17, 2022

yay, thanks everybody!

cbodley added a commit to cbodley/ceph-build that referenced this pull request Nov 4, 2025
the corresponding logic from scripts/build_utils.sh, added in
ceph#2043, was not specific to
release builds

the rgw team needs this enabled for all packages tested in ci, because
we rely heavily on valgrind coverage. the rgw suite has been an absolute
mess of valgrind issues lately, and this appears to be the primary cause

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants