OK let's see....

On Thu, May 6, 2010 at 12:27, ravikumar <[email protected]> wrote:
> ravikumar wrote:
>>
>> The *top* command did not showing any increase of process memory usage.
>> But the *free* command output showing memory usage increasing for every 2
>> hours.
>>
>> As *top* command is not showing any increase memory statistics , Can I
>> assume that my process is not taking any memory which is allocated using
>> *malloc* like API?
>> one more question , the memory allocated through malloc/new in a process
>> should definitely released back right?

Only if the process is terminated (either cleanly or not...IIRC), or
better, if you free() or munmap() them.

>> But the memory reserved by kernel for buffering while a particular process
>> is running might not be released back upon that process termination ?
>>
>> Do please somebody clarify the above questions

Memory allocated for page cache is released if the free RAM is low or
you send certain number to drop_cache /proc entry.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to