* [Xenomai-core] Socket Buffer overflow
@ 2007-03-21 20:13 Robin Walser
2007-03-21 20:44 ` Wolfgang Grandegger
0 siblings, 1 reply; 4+ messages in thread
From: Robin Walser @ 2007-03-21 20:13 UTC (permalink / raw)
To: xenomai
Hello,
I must write on my socket(rt_dev_sendmsg()) verry fast. Often I have
then a memory overflow. Is it possible?
How can I examine whether sufficient memory is available?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] Socket Buffer overflow
2007-03-21 20:13 [Xenomai-core] Socket Buffer overflow Robin Walser
@ 2007-03-21 20:44 ` Wolfgang Grandegger
2007-03-21 21:32 ` Robin Walser
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Grandegger @ 2007-03-21 20:44 UTC (permalink / raw)
To: Robin Walser; +Cc: xenomai
Hello,
Robin Walser wrote:
> Hello,
>
> I must write on my socket(rt_dev_sendmsg()) verry fast. Often I have
> then a memory overflow. Is it possible?
> How can I examine whether sufficient memory is available?
Are you using RT-Socket-CAN? Could you please provide more detailed
information like what is the returned error code and are there kernel
log messages (visible with $ dmsg)?
Wolfgang.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] Socket Buffer overflow
2007-03-21 20:44 ` Wolfgang Grandegger
@ 2007-03-21 21:32 ` Robin Walser
2007-03-21 21:43 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Robin Walser @ 2007-03-21 21:32 UTC (permalink / raw)
To: xenomai
> Are you using RT-Socket-CAN? Could you please provide more detailed
> information like what is the returned error code and are there kernel
> log messages (visible with $ dmsg)?
>
> Wolfgang.
My programm based on frag-ip:
http://www.rts.uni-hannover.de/rtnet/lxr/source//examples/xenomai/native/frag-ip.c
I use RTnet. The returned error code is always -115 and I have no kernel
log messages.
I think, I'm only need a buffer status report. Is this available?
Robin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] Socket Buffer overflow
2007-03-21 21:32 ` Robin Walser
@ 2007-03-21 21:43 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2007-03-21 21:43 UTC (permalink / raw)
To: Robin Walser; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]
Robin Walser wrote:
>
>> Are you using RT-Socket-CAN? Could you please provide more detailed
>> information like what is the returned error code and are there kernel
>> log messages (visible with $ dmsg)?
>>
>> Wolfgang.
> My programm based on frag-ip:
> http://www.rts.uni-hannover.de/rtnet/lxr/source//examples/xenomai/native/frag-ip.c
[Hmm, might be tricky to tell apart, but this is now an example for a
RTnet-specific question => rtnet-user list. If it wasn't, xenomai-help
would have been the preferred place for support requests.]
>
> I use RTnet. The returned error code is always -115 and I have no kernel
> log messages.
> I think, I'm only need a buffer status report. Is this available?
Are you sure it's 115? Anyway, buffer overflows can happen if you sent
out frames at a higher rate than hardware can handle. Throttle your
transmission, at least once that error pops up.
But what is your desired transmission rate after all? Why not set up a
periodic transmission task, either waiting for timer events or on the
RTmac/TDMA cycle (if you use TDMA with RTnet)?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-21 21:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 20:13 [Xenomai-core] Socket Buffer overflow Robin Walser
2007-03-21 20:44 ` Wolfgang Grandegger
2007-03-21 21:32 ` Robin Walser
2007-03-21 21:43 ` Jan Kiszka
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.