I ran into some trouble playing around with OpenCL on Parallella, see viewtopic.php?f=18&t=3405.
The memory leak seems to be in the epiphy driver. While running the OpenCL code i checked the process memory map with pmap and a diff between two checks showed this:
# diff /tmp/a /tmp/c
5a6,28
> 6b500000 32768K rwxs- /dev/epiphany
> 6d500000 32768K rwxs- /dev/epiphany
> 6f500000 32768K rwxs- /dev/epiphany
> 71500000 32768K rwxs- /dev/epiphany
> 73500000 32768K rwxs- /dev/epiphany
> 75500000 32768K rwxs- /dev/epiphany
> 77500000 32768K rwxs- /dev/epiphany
> 79500000 32768K rwxs- /dev/epiphany
> 7b500000 32768K rwxs- /dev/epiphany
> 7d500000 32768K rwxs- /dev/epiphany
> 7f500000 32768K rwxs- /dev/epiphany
> 81500000 32768K rwxs- /dev/epiphany
> 83500000 32768K rwxs- /dev/epiphany
> 85500000 32768K rwxs- /dev/epiphany
> 87500000 32768K rwxs- /dev/epiphany
> 89500000 32768K rwxs- /dev/epiphany
> 8b500000 32768K rwxs- /dev/epiphany
> 8d500000 32768K rwxs- /dev/epiphany
> 8f500000 32768K rwxs- /dev/epiphany
> 91500000 32768K rwxs- /dev/epiphany
> 93500000 32768K rwxs- /dev/epiphany
> 95500000 32768K rwxs- /dev/epiphany
> 97500000 32768K rwxs- /dev/epiphany
159c182
< total 485248K
---
> total 1238912K
Has anyone an idea what's going on in the driver? Why does the driver allocate more and more 32M chunks? And more importantly: who can fix it?
I'm no kernel developer but i really would like to get this issue resolvd because this bug makes parallella more or less useless.
I would contact the original author Ben Chaco from XCube but havent't found any email adress.