Skip to content

Commit

Permalink
bump stack size, apparently it's needed even in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Jan 9, 2025
1 parent 37c2e80 commit 61ae7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pageserver/src/task_mgr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl FromStr for TokioRuntimeMode {
static TOKIO_THREAD_STACK_SIZE: Lazy<NonZeroUsize> = Lazy::new(|| {
env::var("NEON_PAGESERVER_TOKIO_THREAD_STACK_SIZE")
// the default 2MiB are insufficent, especially in debug mode
.unwrap_or_else(|| NonZeroUsize::new(4 * 1024 * 1024).unwrap())
.unwrap_or_else(|| NonZeroUsize::new(8 * 1024 * 1024).unwrap())
});

static ONE_RUNTIME: Lazy<Option<tokio::runtime::Runtime>> = Lazy::new(|| {
Expand Down

0 comments on commit 61ae7e4

Please sign in to comment.