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.
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to