[etherlab-users] Working counter changed to 0/113
Martin Troxler
martin.troxler at komaxgroup.com
Wed Apr 9 14:49:05 CEST 2014
On 09.04.2014 14:02, pier wrote:
> Dear helper
>
> Sometimes in a couple of hours or more we receive this messages in
>
> the syslog :
>
> Apr 7 07:31:33 (none) kernel: EtherCAT 0: Domain 0: Working counter changed to 0/113.
>
Hi Pier
If your realtime tasks runs as in a usermode thread and access the ethernet device through the generic device, then you
have to make sure that the priorities of the IRQ threads are higher than the priority of the realtime thread.
Show the pids of the IRQ threads of a eth device
>$ NETDEVNAME=eth1
>$ ps -A | awk "/irq\/[0-9]+-${NETDEVNAME}/ { print \$1 }" | xargs --no-run-if-empty
1512 1513 1514
Show the realtime priority of a process
>$ chrt -p 1512
pid 1512's current scheduling policy: SCHED_FIFO
pid 1512's current scheduling priority: 80
The priority must be higher than the priority of your realtime task thread.
In addition, disable interrupt throttling on your eth device.
>$ ethtool --coalesce $NETDEVNAME adaptive-rx off adaptive-tx off rx-usecs 0 rx-frames 0 rx-usecs-irq 0 rx-frames-irq 0
tx-usecs 0 tx-frames 0 tx-usecs-irq 0 tx-frames-irq 0 pkt-rate-low 0 pkt-rate-high 0
Regards
Martin
Note:
This e-mail is for the named person's use only. It may contain confidential and/or privileged information. If you have received this e-mail in error, please notify the sender immediately and delete the material from any system. Any unauthorized copying, disclosure, distribution or other use of this information by persons or entities other than the intended recipient is prohibited.
Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140409/fe300b81/attachment-0003.htm>
More information about the Etherlab-users
mailing list