fix(control-plane): optimize task monitoring and worker stacks

This commit is contained in:
chenjintao
2026-08-21 17:52:10 +08:00
parent cb203a74f4
commit a60f98a4c6
6 changed files with 139 additions and 37 deletions
+31 -4
View File
@@ -211,15 +211,18 @@ menu "Example Configuration"
bool "Enable periodic FreeRTOS task monitor log"
default y
help
Periodically print a compact FreeRTOS task table to the log.
Run a low-impact task monitor with a PSRAM-preferred worker
stack and PSRAM-only snapshots. Periodic summaries report the
lowest stack headroom; a full task table is emitted less often.
config TQ_TASK_MONITOR_INTERVAL_MS
int "Task monitor log interval (ms)"
default 10000
default 30000
range 1000 600000
depends on TQ_TASK_MONITOR_ENABLE
help
Interval for periodic task table logging.
Interval for task summaries. The complete table is emitted on
the first sample and every five samples after that.
config TQ_TASK_MONITOR_MAX_TASKS
int "Task monitor max task entries"
@@ -317,7 +320,7 @@ menu "Example Configuration"
config TQ_SYSTEM_EVENT_TASK_STACK
int "System event task stack size"
default 4096
default 6144
range 2048 8192
depends on TQ_SYSTEM_EVENT_ENABLE
help
@@ -680,6 +683,14 @@ menu "Example Configuration"
Disable when the connected display hardware does not match this
firmware's LCD driver.
config TQ_LCD_RENDER_TASK_STACK_BYTES
int "LCD render task stack (bytes)"
default 10240
range 8192 16384
depends on TQ_SCREEN_ENABLE
help
Stack size in bytes for the control-plane LCD render worker.
config TQ_SCREEN_COLOR_ORDER_BGR
bool "Use BGR color order"
default n
@@ -1154,6 +1165,14 @@ menu "Example Configuration"
help
Master switch for multimodal WebSocket interaction features.
config TQ_MULTIMODAL_WATCHDOG_TASK_STACK_BYTES
int "Multimodal watchdog task stack (bytes)"
default 6144
range 4096 12288
depends on ENABLE_MULTIMODAL_INTERACTION
help
Stack size in bytes for the multimodal session watchdog task.
config MULTIMODAL_USE_STATIC_CREDENTIALS
bool "Use static WebSocket credentials (skip token request)"
default n
@@ -1230,6 +1249,14 @@ menu "Example Configuration"
device identity provisioning, public-key retrieval, and
on-device challenge signing.
config TQ_FACTORY_CLI_TASK_STACK_BYTES
int "Factory CLI task stack (bytes)"
default 10240
range 8192 16384
depends on TQ_FACTORY_CLI_ENABLE
help
Stack size in bytes for the serial factory provisioning worker.
config AUTH_REGISTER_BASE_URL
string "Auth V2 registration base URL"
depends on AUTH_V2_ENABLE