Re: write()-call return values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Am 26.10.2018 um 14:05 schrieb Steffen Rose:
> Hello,
> 
> I want to test the fasted transmit speed of my socketcan.
> 
> Attached my simple test.
> 
> 
> I want to write message by message to socketcan without a break.
> 
> I expect an error return value, if I cannot write, because the queue is
> full.
> 
> I count only correct written values.
> 
> 
> On my system only 9772 messages from 10000 are transmitted. On a
> different customer system only around 2700 messages are transmitted.
> 
> Can you please check, if I have a mistake in my test program?
> 
> Do you have an other idea?
> 
> 
> I test on a classical CAN bus with a bitrate of 250kbit/s.
> 
> The analyzer on a second device and also a test with a local candump
> also connected to can0, show the same values.
> 
> Which information are required?
> 
> Which part of the socketcan software is related to this problem?
> 
> 
> $ uname -a
> Linux **** 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018
> x86_64 x86_64 x86_64 GNU/Linux
> 
> after some test:
> 
> $ ip -details -statistics link show can0
> 4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc fq_codel state UNKNOWN

The problem is with that qdisc! This has been discussed recently:

https://marc.info/?t=152785837700001&r=1&w=2

Wolfgang.




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux