Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Measuring CPU Load in an RTOS enviroment?

Status
Not open for further replies.

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,212
How can we measure CPU load in an RTOS enviroment?
 

Actually it can be described in too many ways .....

1. Check your image size and the CPU card's RAM and Flash size
2. Count the ticks taken by each task and compare with the total number of ticks used in a cycle (including the Idle Task)
3. Using VxSim check out how much time your Idle task is there (generally it comes >=70% of your cycle time ---- Depends on Image size and execution time taken by each task with availability of resources)


If the image size is too huge and CPU loading is too high .... then you can go for the SBC's having Higher RAM , Flash and Cache memory(Paging Concept).



:D
 

Download the source code of uCOS-II, and check the source code of the function OS_TASK_STAT.
It calculates the CPU load in an embedded platform and takes care of integer division and load calculation overflow.
--
Amr Ali
www.embedded-tips.blogspot.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top