You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/07/17 19:44:31 UTC

[GitHub] [incubator-nuttx] ALTracer commented on pull request #6631: Added memory health checks.

ALTracer commented on PR #6631:
URL: https://github.com/apache/incubator-nuttx/pull/6631#issuecomment-1186595988

   > I wasn't aware that this check is also present there.
   > 
   > Shall I drop this PR?
   
   The check in `irq_dispatch()` only calls `kmm_checkforcorruption()` on IRQ exits to check heaps for TCBs **marked with TCB_FLAG_MEM_CHECK** (and there are no mentions of the flag whatsoever in the master codebase). 
   It also build-depends on `CONFIG_DEBUG_MM`, as @acassis suggests for this checker as well. 
   
   I see the PR as still useful because it also checks stacks, and it doesn't require setting a tcb flag. Yes, `nsh> ps` can show stack usage in interactive shell, though it requires STACK_COLORATION and provides virtually a very slow sample rate, as does `stackmonitor`. However, it might conflict / do double work with `irq_dispatch`. The good thing is we're decoupling memory checks from IDLE thread which used to cause problems in #5266, and that issue/PR mentioned something about moving checks to LPWORK thread (half a year ago).
   
   @fjpanag How many processes/threads (and pthreads) were running on your STM32F427 board? Did you enable DEBUG_MM as well? Can you somehow verify that there won't be deadlock problems with semaphores of mm? Was there any external (FMC SDRAM) memory attached to system heaps?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org