lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 24 Jan 2014 13:14:09 +0100 From: Michal Sojka <sojkam1@....cvut.cz> To: Marc Kleine-Budde <mkl@...gutronix.de> Cc: linux-can@...r.kernel.org, netdev@...r.kernel.org, David Miller <davem@...emloft.net> Subject: Re: [PATCH v2 1/2] can: Decrease default size of CAN_RAW socket send queue On Thu, Jan 23 2014, Marc Kleine-Budde wrote: > On 01/23/2014 09:41 PM, David Miller wrote: >> From: Michal Sojka <sojkam1@....cvut.cz> >> Date: Wed, 22 Jan 2014 09:27:36 +0100 >> >>> Since the length of the qdisc queue was set by default to 10 >>> packets, this is exactly what was happening. >> >> This is your bug, set the qdisc limit to something more reasonable. >> >> Something large enough to absorb the traffic wrt. the speed at which >> the CAN device can sink the data. > > Hmmm, the problem is on i686 I have to increase the txqueuelen to 366 > before the socket works as expected (writes are blocking). This means if > there are two processes one sending a stream of bulk data and the other > one occasionally more important data there will be a lot of frames in > front of the important ones. This problem can be solved with queuing disciplines. See https://rtime.felk.cvut.cz/can/socketcan-qdisc-final.pdf. This reminds me that I have another patch that makes qdisc work better with CAN raw sockets. I'll send the patch to linux-can. -Michal -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists