Socket Buffer overflow
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.
Hello,
Quoted 4 lines · Robin Walser
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.
Quoted 4 lines
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
Quoted 8 lines · Robin Walser
Quoted 6 lines
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.]
Quoted 4 lines
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