Memory Leak

Aman aman at mistralsoftware.com
Thu Mar 13 06:50:25 EST 2003


 Hi All
 I am using consistent_alloc () to allocate consistent memory for DMA.  When
I free the buffers using consistent_free(), the /proc/meminfo shows a
memory leak of the buffer size allocated.

 I have attached a  module code to allocate memory when inserted and free
 when removed. The memory leak can be found using the command cat
/proc/meminfo.

 Also the consistent_alloc call gives an error something like "Kernel bug at
cachemap.." if we try to allocate more than 2MB.

Can anyone help me in solving these issues

Thanking you in advance
Regards
Aman



-------------- next part --------------
A non-text attachment was scrubbed...
Name: alloc_test.c
Type: application/octet-stream
Size: 934 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20030313/09951ac3/attachment.obj 


More information about the Linuxppc-embedded mailing list