|
From: <Pra...@di...> - 2010-03-11 03:57:54
|
I have written one sample code where I allocate huge memory and then free it. What I observed was whenever allocation was done, VmData is increased. Whenever that memory is accessed (memset or use it), VmRss is increased. When that pointer is freed, both VmData and VmRSS come back to original value. But to test it with valgrind when I check the memory status, the memory is constantly increasing. What my observation is VmRSS is increasing by 4k constantly. When it increases by a few times then only VmData is increases and eventually VmSize. Can anybody explain why VmRSS is increasing and VmData is not increasing. I have verified it on Linux - 2.4 kernel Regards, PrashantDisclaimer : This message is proprietary to Smartlink Network Systems Limited and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Smartlink Network Systems Ltd. accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus. ______________________________________________________________________________ This email has been scrubbed for your protection by SecureMX. For more information visit http://securemx.in ______________________________________________________________________________ |