Re: 'TIME' task cpuuse

2020-02-03 Thread Sebastian Huber
Hello Matthew, you can use the RTEMS record support to investigate issues like this: https://docs.rtems.org/branches/master/user/tracing/eventrecording.html# You can send the events to the host via TCP and then analyse it with Trace Compass or babeltrace. ___

Re: 'TIME' task cpuuse

2020-01-14 Thread Joel Sherrill
On Tue, Jan 14, 2020, 8:29 AM Matthew J Fletcher wrote: > Free running counter is only 32khz, so ages in cpu time at 200mhz. There > is a nanosecond IEEE 1588 unit on the network interface > > I've identified at least 6 timers going at 10ms, only 1-in-1000 > invocations seem take more than a

Re: 'TIME' task cpuuse

2020-01-14 Thread Matthew J Fletcher
Free running counter is only 32khz, so ages in cpu time at 200mhz. There is a nanosecond IEEE 1588 unit on the network interface I've identified at least 6 timers going at 10ms, only 1-in-1000 invocations seem take more than a tick to run,.. they are all started in the same second but with ra

Re: 'TIME' task cpuuse

2020-01-14 Thread Joel Sherrill
On Tue, Jan 14, 2020 at 7:37 AM Matthew J Fletcher wrote: > Of course without nanoseconds support in the BSP measuring the timer > callback duration is difficult as most calls will be less than a tick. > Yeah, you can't use the clock services from rtems in that case since they don't have a high

Re: 'TIME' task cpuuse

2020-01-14 Thread Matthew J Fletcher
Of course without nanoseconds support in the BSP measuring the timer callback duration is difficult as most calls will be less than a tick. On Tue, 14 Jan 2020 at 08:41, Matthew J Fletcher wrote: > Ok, > > So first step is to create a wrapper that all timers fire through, then an > array to coun

Re: 'TIME' task cpuuse

2020-01-14 Thread Matthew J Fletcher
Ok, So first step is to create a wrapper that all timers fire through, then an array to count the number of invocations per timer_id, after that some per timer_id time accounting. Will let you know if its anything outside my application. On Mon, 13 Jan 2020 at 15:01, Joel Sherrill wrote: > >

Re: 'TIME' task cpuuse

2020-01-13 Thread Joel Sherrill
On Mon, Jan 13, 2020 at 8:53 AM Matthew J Fletcher wrote: > Hi, > > My application seems to be using around 1/3rd of its total cpu usage in > the 'TIME' task,. is this the task created by rtems_timer_initiate_server() > ? > Yes. > > What would be the best way to get more information,. are there

'TIME' task cpuuse

2020-01-13 Thread Matthew J Fletcher
Hi, My application seems to be using around 1/3rd of its total cpu usage in the 'TIME' task,. is this the task created by rtems_timer_initiate_server() ? What would be the best way to get more information,. are there console commands that would emit more data, or do i need to instrument my applic