Re: cansend linux system memoryleak

From
Oliver Hartkopp <socketcan@hartkopp.net>
Date
2017-02-01 18:01:15
On 02/01/2017 08:25 AM, saber mesgary wrote:
I have an imx28 module that have two can bus, can0 and can1.
Ok.
I run your code:
quoted
ip -det link show can0
and this is the output:

2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state
UNKNOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
 bitrate 800000 sample-point 0.800
 tq 83 prop-seg 5 phase-seg1 6 phase-seg2 3 sjw 1
 flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1
 clock 24000000
Hm. The flexcan is a very mature driver - I doubt there is any memory leak.
and for your question:
quoted
Can you send some of the outputs which leads to your assumption?
I run the cansend command in an infinite loop in terminal
How do you run this command? With a shell script? Can you send the command?

Can you check whether you see the same behavior when using cangen instead?
and I watch
the memory in top command. it is like this:

Mem: 31020K used, 92712K free, 216K shrd, 0K buff, 10816K cached

and I see the used memory increase to about 110mb and free memory
decrease to about 7mb
This could be anything userspace related stuff - e.g. loading some shared library.

I don't think it's a CAN related memory leak.
and the system reset.
To be clear: The system resets on its own when you start your cansend command?

Regards,
Oliver
Thread (1 message) 1 message, 1 author, last reply 2017-02-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help