Help understanding a PM (Performance Monitoring) log data

Hi,

As the wiki page for this topic seems to be slightly outdated (a github’s issue is already pending… https://github.com/ArduPilot/ardupilot_wiki/issues/1061), here’s what I’d like to understand better:

  • MaxT - what is the limit for a scheduler’s loop? The wiki mentions 10ms, however I noticed that the NLon field lists a number whenever MaxT exceeds 3ms. Then, knowing that we did NLoops of 4000 in 10s (400Hz frequency), it seems like the limit should be at 2,5ms!

  • Mem - what exactly is it, RAM usage in bytes?

  • Load - again, what exactly does it show (units?)? What are the acceptable values?

On a sidenote, I’m running ArduCopter software (but the issue seems general enough not to assign it to a specific category).

1 Like
MaxT - what is the limit for a scheduler¢s loop? The wiki mentions 10ms, however I noticed that the NLon field lists a number whenever MaxT exceeds
3ms. Then, knowing that we did NLoops of 4000 in 10s (400Hz frequency), it seems like the limit should be at 2,5ms!

The scheduler loop rate is found in SCHED_LOOP_RATE - the default differs
based on vehicle type, and any fixed number is going to be wrong :slight_smile:

We allow a 20% leeway on long-running loops
(ardupilot/libraries/AP_Scheduler/PerfInfo.cpp at master · ArduPilot/ardupilot · GitHub)

Mem - what exactly is it, RAM usage in bytes?

Available memory, in bytes.

Load - again, what exactly does it show (units?)? What are the acceptable values?

Basically a percentage times 10. The derivations of the number is
complicated FWIR; basically based on free time remaining in the loop

Peter

Thank’s a lot! I’ve corrected the wiki page with outdated data, here’s a PR: https://github.com/ArduPilot/ardupilot_wiki/pull/1570