FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2013 Threads] vTaskGetRunTimeStats: 1 task > 100% CPU?Posted by Thomas Johansen on May 31, 2013 Hi
I'm using the vTaskGetRunTimeStats to get runtime information of the tasks. But 1 task starts out with CPU usage to more than 100 % (A huge number ex: 152354223%) The value is decreasing over time and ends up where it should be.
The task is straight forward, it waits on a queue with a timeout of 5 sec. The priority is just like the other task
Any idea what could cause this? Event if the task was badly written it should just ending up using 100 % !!
Thomas
RE: vTaskGetRunTimeStats: 1 task > 100% CPU?Posted by Richard on May 31, 2013 I actually noticed something like this myself - while giving a live demonstration of all times for it to happen. I'm not sure what caused it but suspect it will be either an initialisation timing problem (whereby the first reading is taken before the timer used for the stats is initialised properly), or some kind of calculation rounding or underflow problem. Please report back if you find the answer - and in the mean time please also add a "bug report" in the FreeRTOS SourceForge bug tracker to ensure the problem is investigated properly.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|