This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x memory Leak issue on Matrix application launcher


Hi TI Team,

I am using TI TMDSSK3358 with Linux TI SDK v01.00.00.00, and I found a serious memory leak issue on Matrix Application launcher:

1. If a Qt application ran by the Matrix application launcher : memory leak

2. Only Matrix application launcher : no memory leak

3. Only Qt application : no memory leak

Using "top" to check process memory usage, and the free memory continue to decline.

Do you have any idea about this?

Thanks.

From Will Hsu

  • Hi,

    This observation has already been reported: https://e2e.ti.com/support/arm/sitara_arm/f/791/t/438777 It is under investigation by the Linux team. Both threads will be updated when there are results.

  • Hi Biser,
    Got it, thanks for your reply.

    From Will Hsu
  • Update from the Linux team: "This is being filed as a bug on the SDK and we will look into it for the next release."

  • Hi Will,

    We tried to reproduce the issue, and below please find our observations.

    For PROCESSOR-SDK-LINUX-AM335X 01_00_00_00 (software-dl.ti.com/.../index_FDS.html, we booted the board to Matrix GUI browser, and then started Qt deform application from Matrix.

    Before starting deform, the memory usage for Matrix is 167M:

    167m 17% 0% /usr/bin/matrix_browser http://localho

    In the overnight testing, the memory usage is increased to 182M and stays at 182M after 24 hours.

    182m 18% 19% /usr/bin/matrix_browser http://localho

    For PROCESSOR-SDK-LINUX-AM335X 01_00_00_03 (the latest and greatest, software-dl.ti.com/.../index_FDS.html), we still booted the board to Matrix GUI browser.Then, we run Qt deform (/usr/share/qt5/examples/widgets/painting/deform) from command line. This is because Matrix will be disabled when launching GUI based demos (such as deform) from Matrix. More details can be found from processors.wiki.ti.com/.../Qt_4_to_5_Migration.

    For drop 01_00_00_03, with Matrix running from boot and Qt deform running from command line, we are not observing memory usage increase in our 24-hour testing. Top shows 167m always:

    1766 1756 root R 67628 7% 82% ./deform
    1628 1 root S 167m 17% 0% /usr/bin/matrix_browser http://localho

    Thanks,

    Hongmei

  • Hi Hongmei,

    Thanks for your reply.

    You are right.

    There is no memory leak issue on Matrix_browser.

    if I run "TOP" command, I will see the memory leak issue on the free memory.

    if I use meninfo to check the memory status, I will not see the issue.

    please the log below.

    ------------------------------Beginning----------------------------------------------

    Mem: 127944K used, 121244K free, 0K shrd, 696264K buff, 696308K cached

    CPU:   5% usr   2% sys   0% nic  90% idle   1% io   0% irq   0% sirq

    Load average: 0.49 0.17 0.06 1/59 1618

     PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

    1486     1 root     S     163m  67%   5% /usr/bin/matrix_browser http://localho

    1615  1611 root     R     2160   1%   0% top

      49     2 root     SW       0   0%   0% [kworker/0:1]

     794     2 root     SW       0   0%   0% [mmcqd/0]

       9     2 root     SW       0   0%   0% [kworker/u2:1]

     858     1 root     S     2908   1%   0% /lib/udev/udevd -d

    1229   858 root     S     2904   1%   0% /lib/udev/udevd -d

    1472     1 root     S     2892   1%   0% /usr/sbin/lighttpd -f /etc/lighttpd.co

    1223   858 root     S     2812   1%   0% /lib/udev/udevd -d

    1605     1 root     S     2628   1%   0% /bin/login --

    1611  1605 root     S     2596   1%   0% -sh

    1359     1 messageb S     2356   1%   0% /usr/bin/dbus-daemon --system

    1415     1 nobody   S     2256   1%   0% /usr/sbin/thttpd -d /srv/www -p 8080

    1373     1 root     S     2148   1%   0% /usr/sbin/dropbear -r /etc/dropbear/dr

    1386     1 rpc      S     1936   1%   0% /usr/sbin/rpcbind

    1606     1 root     S     1876   1%   0% /sbin/getty 38400 tty1

    1408     1 root     S     1872   1%   0% /sbin/syslogd -n -O /var/log/messages

    1411     1 root     S     1872   1%   0% /sbin/klogd -n

    1352     1 root     S     1872   1%   0% udhcpc -R -b -p /var/run/udhcpc.eth0.p

    1376     1 root     S     1872   1%   0% /usr/sbin/telnetd

    -------------------------------- After some time-------------------------------------------

    Mem: 169176K used, 80012K free, 0K shrd, 696088K buff, 696132K cached

    CPU:   0% usr   0% sys   0% nic  99% idle   0% io   0% irq   0% sirq

    Load average: 0.00 0.01 0.05 1/54 5028

     PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

    1615  1611 root     R     2160   1%   0% top

    4933     2 root     SW       0   0%   0% [kworker/0:0]

    1486     1 root     S     163m  67%   0% /usr/bin/matrix_browser http://localho

     858     1 root     S     2908   1%   0% /lib/udev/udevd -d

    1229   858 root     S     2904   1%   0% /lib/udev/udevd -d

    1472     1 root     S     2892   1%   0% /usr/sbin/lighttpd -f /etc/lighttpd.co

    1223   858 root     S     2812   1%   0% /lib/udev/udevd -d

    1605     1 root     S     2628   1%   0% /bin/login --

    1611  1605 root     S     2596   1%   0% -sh

    1359     1 messageb S     2356   1%   0% /usr/bin/dbus-daemon --system

    1415     1 nobody   S     2256   1%   0% /usr/sbin/thttpd -d /srv/www -p 8080

    1373     1 root     S     2148   1%   0% /usr/sbin/dropbear -r /etc/dropbear/dr

    1386     1 rpc      S     1936   1%   0% /usr/sbin/rpcbind

    1606     1 root     S     1876   1%   0% /sbin/getty 38400 tty1

    1352     1 root     S     1872   1%   0% udhcpc -R -b -p /var/run/udhcpc.eth0.p

    1408     1 root     S     1872   1%   0% /sbin/syslogd -n -O /var/log/messages

    1411     1 root     S     1872   1%   0% /sbin/klogd -n

    1376     1 root     S     1872   1%   0% /usr/sbin/telnetd

    1399     1 rpcuser  S     1680   1%   0% /usr/sbin/rpc.statd

       1     0 root     S     1324   1%   0% init [5]

    ----------------------------------------------------------------------------------

    Thanks for your confirmation.

    From Will hsu