From: Wolfgang Grandegger <wg@grandegger.com>
To: Richard Andrysek <richard.andrysek@rg-mechatronics.com>,
linux-can@vger.kernel.org
Subject: Re: [PATCH v6] can: sja1000: fix {pre,post}_irq() handling and IRQ handler return value
Date: Thu, 05 Dec 2013 21:26:45 +0100 [thread overview]
Message-ID: <52A0E185.1080402@grandegger.com> (raw)
In-Reply-To: <loom.20131205T202627-307@post.gmane.org>
On 12/05/2013 08:37 PM, Richard Andrysek wrote:
> Wolfgang Grandegger <wg <at> grandegger.com> writes:
>
>> 2) How the data overrun can happen, if the can bus load is ~25%?
>>
>> If a bunch of messages is sent in a short time. The 25% is an average
>> load, I assume.
>>
>>>
>>> $ sudo cat /proc/net/can/stats
>>> [sudo] password for ran:
>>>
>>> 1421819 transmitted frames (TXF)
>>> 2606493 received frames (RXF)
>>> 473873 matched frames (RXMF)
>>>
>>> 18 % total match ratio (RXMR)
>>> 2400 frames/s total tx rate (TXR)
>>> 4400 frames/s total rx rate (RXR)
>>>
>>> 18 % current match ratio (CRXMR)
>>> 2400 frames/s current tx rate (CTXR)
>>> 4400 frames/s current rx rate (CRXR)
>>>
>>> 18 % max match ratio (MRXMR)
>>> 2427 frames/s max tx rate (MTXR)
>>> 4427 frames/s max rx rate (MRXR)
>>>
>>> 4 current receive list entries (CRCV)
>>> 9 maximum receive list entries (MRCV)
>>>
>>> 2 statistic resets (STR)
>>
>> # ip -d -s link show can0
>>
>> will list the CAN statistics.
>>
>> Wolfgang.
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo <at> vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>
> Hi Wolfgang,
>
> thank you for help. I've recognized that these two lines comes from a
> network world:
>
> RX packets:12462166 errors:121380 dropped:0 overruns:0 frame:121380
> TX packets:11604619 errors:678 dropped:0 overruns:0 carrier:0
What do you mean? CAN belongs to the network world. What does the
following command report:
# ip -d -s link show can0
> Then each event "arbitration lost" generates an IRQ.
From a CAN device?
> Is it OK to disable it, just now for tests. With that I want to reduce an
> amount of IRQs. Is it possible to disable it without a new compilation of a
> kernel?
"ifconfig <device> down" should do the job. You may get in trouble if
it's your ethernet device, though.
> We are running quite fast, in few ms. So we test your driver quite well:)
With "-rt" or with vanilla Linux?
Wolfgang.
next prev parent reply other threads:[~2013-12-05 20:26 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-24 23:03 [PATCH v6] can: sja1000: fix {pre,post}_irq() handling and IRQ handler return value Marc Kleine-Budde
2013-11-25 8:54 ` Marc Kleine-Budde
2013-11-25 18:12 ` Oliver Hartkopp
2013-11-25 22:05 ` Austin Schuh
2013-12-09 19:48 ` Austin Schuh
2013-12-09 21:07 ` Marc Kleine-Budde
2013-12-09 23:50 ` Austin Schuh
2013-12-05 15:50 ` Richard Andrysek
2013-12-05 17:50 ` Wolfgang Grandegger
2013-12-05 19:37 ` Richard Andrysek
2013-12-05 20:26 ` Wolfgang Grandegger [this message]
2013-12-06 9:27 ` Richard Andrysek
2013-12-06 9:56 ` Wolfgang Grandegger
2013-12-06 10:32 ` Richard Andrysek
2013-12-06 18:32 ` Wolfgang Grandegger
2013-12-09 9:29 ` Richard Andrysek
2013-12-06 10:12 ` Marc Kleine-Budde
2013-12-06 10:57 ` Richard Andrysek
2013-12-06 11:45 ` arbitration lost error reporting (was: Re: [PATCH v6] can: sja1000: fix {pre,post}_irq() handling and IRQ handler return value) Marc Kleine-Budde
2013-12-06 12:02 ` arbitration lost error reporting Oliver Hartkopp
2013-12-06 12:16 ` Marc Kleine-Budde
2013-12-06 13:21 ` Richard Andrysek
2013-12-06 13:23 ` Marc Kleine-Budde
2013-12-06 17:59 ` Wolfgang Grandegger
2013-12-07 13:13 ` Oliver Hartkopp
2013-12-09 9:01 ` Richard Andrysek
2013-12-09 10:32 ` Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A0E185.1080402@grandegger.com \
--to=wg@grandegger.com \
--cc=linux-can@vger.kernel.org \
--cc=richard.andrysek@rg-mechatronics.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.