Some Clarifications for MMDOC.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
If you remember, i started with some linux MM
documentation. Well, i was kinda busy and could not
continue. now iam free and am continuing the work. As
a start i have converted the existing docs into latex
and made them available at
http://mmdoc.sourceforge.net
For the documentation i need some clarification and if
possible please say weather iam correct when i say
these things.
 
1. The memory in linux is maintained as pages of 4k. 
2. The linux memory is split into various zones (link
from riks "zone based allocator" doc). 
3. The buddy allocator is the main memory allocator
that serves memory pages. The buddy system keeps in
mind about the various zones. This means that the
buddy allocator is a zoned buddy allocator.  
4. The slab allocator is used to allocate memory
inside the kernel. kmalloc, kfree. Memory got by this
allocator is physicaly contigoues. 
5. The vmalloc alloctor (ok no such thing as a vmalloc
allocator but it helps to understand) allocates
non-contiguoues kernel memory. 
6. user-space memory is allocated usong the sys_brk()
which in-turn uses the slab allocator.
 
iam a bit confused about the user space memory and
sys_brk. can some one please make me clear? 

If what i say is correct i can write more in detail
about them and add to my documentation. Otherwise it
means i have to do more code reading :) 
 
Cheers,
Mohan S


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux