Skip to content

Commit

Permalink
logging: Increase thread stack size when net backend in use
Browse files Browse the repository at this point in the history
It has been seen that when net backend is enabled stack usage
is around 1080. Setting 1152 as the default.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
  • Loading branch information
nordic-krch authored and nashif committed Apr 26, 2021
1 parent 16c61ca commit 292a15b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions subsys/logging/Kconfig.processing
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ config LOG_PROCESS_THREAD_SLEEP_MS

config LOG_PROCESS_THREAD_STACK_SIZE
int "Stack size for the internal log processing thread"
default 2048 if COVERAGE_GCOV
default 1024 if NO_OPTIMIZATIONS
default 1024 if XTENSA
default 4096 if (X86 && X86_64)
default 4096 if ARM64
default 4096 if SPARC
default 2048 if COVERAGE_GCOV
default 2048 if (RISCV && 64BIT)
default 2048 if LOG_BACKEND_FS
default 1152 if LOG_BACKEND_NET
default 1024 if NO_OPTIMIZATIONS
default 1024 if XTENSA
default 768
help
Set the internal stack size for log processing thread.
Expand Down

0 comments on commit 292a15b

Please sign in to comment.