Repository navigation
rgw: beast frontend uses 512k mprotected coroutine stacks - #31580
Merged
Merged
Conversation
cbodley
force-pushed
the
wip-rgw-spawn
branch
3 times, most recently
from
December 6, 2019 14:37
7aeae74 to
bb070cd
Compare
Contributor
Author
cbodley
force-pushed
the
wip-rgw-spawn
branch
from
December 11, 2019 19:12
bb070cd to
32cc8d4
Compare
cbodley
force-pushed
the
wip-rgw-spawn
branch
2 times, most recently
from
December 19, 2019 17:50
17a5c5c to
f9b481e
Compare
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Daniel Gryniewicz <[email protected]>
BuildBoost.cmake (used when we're building the submodule) doesn't provide parity with FindBoost.cmake (used with system Boost). Specifically, it doesn't set the _FOUND variables for the various components, making it hard to depend on finding those features. Set Boost_<component>_FOUND for all the components we're building in BuildBoost.cmake to make using these variables possible. Signed-off-by: Daniel Gryniewicz <[email protected]>
Contributor
Author
|
rebased over recent cmake changes |
Contributor
Author
4 of 8 tasks
cbodley
referenced
this pull request
in cbodley/ceph
Nov 27, 2020
Signed-off-by: Casey Bodley <[email protected]>
3 tasks
cbodley
added a commit
to cbodley/ceph
that referenced
this pull request
Apr 23, 2024
a fork of boost::asio::spawn() was introduced in 2020 with spawn::spawn() from ceph#31580. this fork enabled rgw to customize how the coroutine stacks are allocated in order to avoid stack overflows in frontend request coroutines. this customization was based on a StackAllocator concept from the boost::context library in boost 1.80, that same StackAllocator overload was added to boost::asio::spawn(), along with other improvements like per-op cancellation. now that boost has everything we need, switch back and drop the spawn submodule this required switching a lot of async functions from async_completion<> to async_initiate<>. similar changes were necessary to enable the c++20 coroutine token boost::asio::use_awaitable Signed-off-by: Casey Bodley <[email protected]>
cbodley
added a commit
to cbodley/ceph
that referenced
this pull request
Apr 24, 2024
a fork of boost::asio::spawn() was introduced in 2020 with spawn::spawn() from ceph#31580. this fork enabled rgw to customize how the coroutine stacks are allocated in order to avoid stack overflows in frontend request coroutines. this customization was based on a StackAllocator concept from the boost::context library in boost 1.80, that same StackAllocator overload was added to boost::asio::spawn(), along with other improvements like per-op cancellation. now that boost has everything we need, switch back and drop the spawn submodule this required switching a lot of async functions from async_completion<> to async_initiate<>. similar changes were necessary to enable the c++20 coroutine token boost::asio::use_awaitable Signed-off-by: Casey Bodley <[email protected]>
cbodley
added a commit
to cbodley/ceph
that referenced
this pull request
May 13, 2024
a fork of boost::asio::spawn() was introduced in 2020 with spawn::spawn() from ceph#31580. this fork enabled rgw to customize how the coroutine stacks are allocated in order to avoid stack overflows in frontend request coroutines. this customization was based on a StackAllocator concept from the boost::context library in boost 1.80, that same StackAllocator overload was added to boost::asio::spawn(), along with other improvements like per-op cancellation. now that boost has everything we need, switch back and drop the spawn submodule this required switching a lot of async functions from async_completion<> to async_initiate<>. similar changes were necessary to enable the c++20 coroutine token boost::asio::use_awaitable Signed-off-by: Casey Bodley <[email protected]>
liangmingyuanneo
pushed a commit
to liangmingyuanneo/ceph
that referenced
this pull request
Oct 5, 2024
a fork of boost::asio::spawn() was introduced in 2020 with spawn::spawn() from ceph#31580. this fork enabled rgw to customize how the coroutine stacks are allocated in order to avoid stack overflows in frontend request coroutines. this customization was based on a StackAllocator concept from the boost::context library in boost 1.80, that same StackAllocator overload was added to boost::asio::spawn(), along with other improvements like per-op cancellation. now that boost has everything we need, switch back and drop the spawn submodule this required switching a lot of async functions from async_completion<> to async_initiate<>. similar changes were necessary to enable the c++20 coroutine token boost::asio::use_awaitable Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit 9dd892e)
afreen23
pushed a commit
to rhcs-dashboard/ceph
that referenced
this pull request
Jul 29, 2026
a fork of boost::asio::spawn() was introduced in 2020 with spawn::spawn() from ceph#31580. this fork enabled rgw to customize how the coroutine stacks are allocated in order to avoid stack overflows in frontend request coroutines. this customization was based on a StackAllocator concept from the boost::context library in boost 1.80, that same StackAllocator overload was added to boost::asio::spawn(), along with other improvements like per-op cancellation. now that boost has everything we need, switch back and drop the spawn submodule this required switching a lot of async functions from async_completion<> to async_initiate<>. similar changes were necessary to enable the c++20 coroutine token boost::asio::use_awaitable Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit 9dd892e)
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds a submodule for https://github.com/cbodley/spawn, a header-only fork of boost::asio::spawn(). the beast frontend uses this to customize the coroutine stack allocator in order to use mmap/mprotect to detect overflows. the default stack size is raised from 128K to 512K
depends on commits from #31567 so that cls_otp doesn't also need to link against spawn and boost::contextTODO:
fixes: https://tracker.ceph.com/issues/43739