RE: [uClinux-dev] memory free

2009-04-29 Thread Gavin Lambert
Quoth Prasad: I am running uclinux 2.4.31 in microblaze. Whenever an application gets killed (by running killall or kill -9), does all the dynamic memory (allocated through malloc by that application) gets freed ? Is there any limitation to that. I am chasing a possible memory leak in some of

Re: [uClinux-dev] memory free

2009-04-29 Thread Prasad
Interesting..Just for understanding, in the test code in the loop i malloc-ed to the size of the current loop count (and didn't free it). After it allocates close to 75% of the available memory i killed the task and observed whether the free memory decreases. It didn't. Till now i was under

Re: [uClinux-dev] memory free

2009-04-29 Thread Prasad
Doing some more experiments, i figure out as soon as it hits the full memory (show by free), it the kernel goes and does some cleaning stuff on the already freed memory for any new memory requirement. So essentially free (or /proc/meminfo) doesn't tell me that the memory is being used by some