<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 09/04/14 15:21, pier wrote:<br>
</div>
<blockquote cite="mid:53454952.7030502@bluewin.ch" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 09/04/14 14:49, Martin Troxler
wrote:<br>
</div>
<blockquote cite="mid:534541C1.9070906@komaxgroup.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 09.04.2014 14:02, pier wrote:<br>
</div>
<blockquote cite="mid:534536C9.7010001@bluewin.ch" type="cite">Dear
helper<br>
<br>
Sometimes in a couple of hours or more we receive this
messages in<br>
<br>
the syslog :<br>
<br>
<p style="margin-bottom: 0cm" lang="it-IT"><font size="3">Apr
7 07:31:33 (none) kernel: EtherCAT 0: Domain 0: Working
counter changed to 0/113.<br>
<br>
</font> </p>
</blockquote>
Hi Pier<br>
<br>
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.<br>
<br>
Show the pids of the IRQ threads of a eth device<br>
>$ NETDEVNAME=eth1<br>
>$ ps -A | awk "/irq\/[0-9]+-${NETDEVNAME}/ { print \$1 }" |
xargs --no-run-if-empty<br>
1512 1513 1514<br>
Show the realtime priority of a process<br>
>$ chrt -p 1512<br>
pid 1512's current scheduling policy: SCHED_FIFO<br>
pid 1512's current scheduling priority: 80<br>
<br>
The priority must be higher than the priority of your realtime
task thread.<br>
<br>
In addition, disable interrupt throttling on your eth device.<br>
<br>
>$ 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<br>
<br>
Regards<br>
Martin<br>
<br>
<br>
<span style="font-family: arial;"><span style="font-size:
10.5px;">Note:<br>
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.<br>
Thank You</span></span></blockquote>
<br>
<blockquote cite="mid:534541C1.9070906@komaxgroup.com" type="cite"><span
style="font-family: arial;"><span style="font-size: 10.5px;">.</span></span>
</blockquote>
Dear Martin<br>
<br>
I have tried this :<br>
<br>
>$ NETDEVNAME=eth1<br>
>$ ps -A | awk "/irq\/[0-9]+-${NETDEVNAME}/ { print \$1 }" |
xargs --no-run-if-empty<br>
<br>
But the answer in empty.... nothing...<br>
<br>
The Operating system is a Ubuntu 12.04<br>
<br>
Best Regards<br>
<br>
Pier<br>
<pre class="moz-signature" cols="72">--
Perlsoft GmbH
Sennereigasse 27
3900 Brig
Switzerland
Tel. +41977022933
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
etherlab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</pre>
</blockquote>
<br>
Dear Martin <br>
<br>
The process that access to ethercat started as root...<br>
<br>
Looking at the output of the PS -A I do not see any eth1<br>
but these are the process that use it<br>
<br>
21983 ? 00:51:40 EtherCAT-OP<br>
<br>
root@Arcade_2:~# chrt -p 21983<br>
pid 21983's current scheduling policy: SCHED_OTHER<br>
pid 21983's current scheduling priority: 0<br>
<br>
<br>
21982 ? 09:40:51 rtctrl<br>
<br>
root@Arcade_2:~# chrt -p 21982<br>
pid 21982's current scheduling policy: SCHED_OTHER<br>
pid 21982's current scheduling priority: 0<br>
<br>
<br>
Regards<br>
<br>
Pier<br>
<br>
<pre class="moz-signature" cols="72">--
Perlsoft GmbH
Sennereigasse 27
3900 Brig
Switzerland
Tel. +41977022933
</pre>
</body>
</html>