On 09/04/14 15:21, pier wrote:
On 09/04/14 14:49, Martin Troxler wrote:
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
.
Dear Martin
I have tried this :
>$ NETDEVNAME=eth1
>$ ps -A | awk "/irq\/[0-9]+-${NETDEVNAME}/ { print \$1 }" | xargs
--no-run-if-empty
But the answer in empty.... nothing...
The Operating system is a Ubuntu 12.04
Best Regards
Pier
--
Perlsoft GmbH
Sennereigasse 27
3900 Brig
Switzerland
Tel. +41977022933
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users
Dear Martin
The process that access to ethercat started as root...
Looking at the output of the PS -A I do not see any eth1
but these are the process that use it
21983 ? 00:51:40 EtherCAT-OP
root@Arcade_2:~# chrt -p 21983
pid 21983's current scheduling policy: SCHED_OTHER
pid 21983's current scheduling priority: 0
21982 ? 09:40:51 rtctrl
root@Arcade_2:~# chrt -p 21982
pid 21982's current scheduling policy: SCHED_OTHER
pid 21982's current scheduling priority: 0
Regards
Pier
--
Perlsoft GmbH
Sennereigasse 27
3900 Brig
Switzerland
Tel. +41977022933
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users