From: Wolfgang Grandegger <wg@domain.hid>
To: rolandtollenaar@domain.hid
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] rtcan bufferoverflow but no evidence
Date: Mon, 13 Aug 2007 17:38:26 +0200 [thread overview]
Message-ID: <46C07AF2.60402@domain.hid> (raw)
In-Reply-To: <46C0719B.1010102@domain.hid>
Roland Tollenaar wrote:
> Hi,
>
> I seem to be getting major buffer overflow. Yet when I check the
> messages with rtcanrecv with relative time stamp I get confirmation of
> the fact that there are only two messages on the bus every ms and the
> EASILY fit withing the 1ms task. I have tried to mask all errors but see
> nothing. Why would i get about one billion messagebuffer overflow errors
> to syslog? How can I make these mysterious messages visible?
>
> Or is there a setting that i may have wrong such that the rtcan rev
> function does not empty the ring buffer?
>
> I hope there is something obvious I am doing wrong because this rtcan is
> really giving me a headache.
When you have bound a RTCAN socket, it will receive messages and put
them into the RX socket queue. If no task reads them via recv* function
calls, the buffer will overflow sooner than later. Do you use a bound
socket just for sending messages? Then you could avoid buffer overflows
by defining an empty receive filter list as show here
http://www.rts.uni-hannover.de/xenomai/lxr/source/src/utils/can/rtcansend.c#251.
Or use rt_dev_sendto() without binding the socket.
You can (or even should) suppress the overflow messages by disabling the
kernel option CONFIG_XENO_DRIVERS_CAN_DEBUG.
Wolfgang.
next prev parent reply other threads:[~2007-08-13 15:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 14:58 [Xenomai-help] rtcan bufferoverflow but no evidence Roland Tollenaar
2007-08-13 15:38 ` Wolfgang Grandegger [this message]
[not found] ` <46C07D73.7070302@domain.hid>
[not found] ` <46C080C8.10906@domain.hid>
[not found] ` <46C0835E.8010105@domain.hid>
[not found] ` <46C0B036.3030306@domain.hid>
[not found] ` <46C0B1DF.6090509@domain.hid>
2007-08-13 19:59 ` Wolfgang Grandegger
2007-08-13 20:20 ` Roland Tollenaar
2007-08-13 20:07 ` Wolfgang Grandegger
2007-08-13 22:09 ` Jan Kiszka
2007-08-14 5:20 ` Roland Tollenaar
2007-08-14 7:24 ` Jan Kiszka
2007-08-14 6:46 ` Wolfgang Grandegger
2007-08-14 7:41 ` Roland Tollenaar
2007-08-14 7:52 ` Jan Kiszka
2007-08-14 10:34 ` Roland Tollenaar
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=46C07AF2.60402@domain.hid \
--to=wg@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=rolandtollenaar@domain.hid \
/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.