Skip to content

Conversation

@piotrkoziar
Copy link
Contributor

@piotrkoziar piotrkoziar commented Oct 8, 2024

Increases default size of stack used by work queue RX thread from 1024 to 2048 1280 to avoid memory issues.

After adding the buffer with the default size of 128 that is allocated on the thread's stack (see #77552), there is too little stack left during heavy stress.

I observed the issues on nRF54H. I was stressing the device (doing different 802.15.4 operations in a loop).
I was consistently seeing weird parameter addresses (ending in z_arm_usage_fault) in icmsg_stack ().

Changing the stack size to >1280 solves the issue. I believe that this should be set as default as this scenario applies to a wide range of users who are stressing the device enough.

Edit: The increase to 2048 is problematic due to memory constraints. Let's increase to 1280, which is just enough.

Upstream PR: zephyrproject-rtos/zephyr#79557

@piotrkoziar piotrkoziar force-pushed the fromlist_icmsg_wq_stack_size branch from 1a47712 to efb125a Compare October 8, 2024 13:29
@piotrkoziar piotrkoziar changed the title [nrf-fromlist] ipc: icmsg: increase stack size of RX work queue thread [nrf fromlist] ipc: icmsg: increase stack size of RX work queue thread Oct 8, 2024
@piotrkoziar piotrkoziar force-pushed the fromlist_icmsg_wq_stack_size branch from efb125a to e106846 Compare October 11, 2024 08:33
@piotrkoziar piotrkoziar force-pushed the fromlist_icmsg_wq_stack_size branch from e106846 to 74d0663 Compare October 14, 2024 08:48
Increases default size of stack used by work queue RX thread
from 1024 to 1280 to avoid memory issues.

After adding the buffer with the default size of 128
that is allocated on the thread's stack (see #77552),
there is too little stack left during heavy stress.

Upstream PR: zephyrproject-rtos/zephyr#79557

Signed-off-by: Piotr Koziar <[email protected]>
@piotrkoziar piotrkoziar force-pushed the fromlist_icmsg_wq_stack_size branch from 74d0663 to 8c2813c Compare October 14, 2024 09:53
@piotrkoziar
Copy link
Contributor Author

The commit was integrated outside of this PR. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants