|
From: Lloyd <ll...@cd...> - 2007-05-24 05:47:42
|
Hi, I have written a program in Linux. It opens a file and maps it to memory using mmap and unmaps and closes the file. I am using a custom written data structure as well in the program. There is no leak associated with the data structure. But some ware a big leak is present. (I dont know where) I assume it could be with mmap and munmap... Because as I open more and more files, the leak gradually increases to megabytes! but for each mam,p the munmap is called correspondingly. And the range which I give to unmap is correct. Where could be the source of problem? Even after the program exit the memory consumption remains same (not reducted to the program startup state). I see this with the aid of system monitoring tool.. please help me... Thanks and Regards, Lloyd ______________________________________ Scanned and protected by Email scanner |