Impact of memory leak on other process -
i have query related memory leak.
a 32 bit linux based system running multiple active processes a,b,c,d. processes allocating/deallocating memory heap. if process contionusly leaking significant amount of memory, happen after amount of time process b cant find memory allocate heap?
as per understanding, each process provided unque vm of 2gb os. there mappig between vm , physical memory.
linux kernel memory overcommit default. when process request memory segment malloc() memory not automatically allocated. may have 4 processes malloc()ing 2gb each , not having problem. problem arise when process make use (initialize, bzero, copy) of malloc()ed memory. may malloc more memory system may reserve you, without problem, , malloc() doesn't return null!!
Comments
Post a Comment