Hi !

I was looking at virtual address space of a process inside kernel space. I 
could see heap section and mmap section. Fragmentation and defragmentation 
problem against the memory allocated from heap section is handled by language 
runtime (glibc) and that's where most of memory management algorithms do work. 

I can see following declarations in struct mm_struct:

unsigned long start_brk, brk,

unsigned long mmap_base;

According to these declarations heap segment has start and end pointers but for 
mmap segment only base pointer is present  but no end. Then how one would know 
the total memory consumed by mmap segment. 

Also how fragmentation problem in mmap segment is handled??


Regards,
Aman
============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to