MEMORY MANAGEMENTin Linux Kernel
Kyuseo ParkAmy Sha
Yuchao Ma
1.Gerenal Function
What it needs to do?
keeps track of the status of each memory location
determines ways to dynamically allocate space of memory among competing processes
updates and reuses the space no longer needed
2.Divide and ConquerWHO is assigned to an address space, or to make a request for new address space.
WHICH address space is used or just freed
WHAT operations the memory region has
WHERE to store those information
process descriptor: a task_struct type structure whose fields contain all the information related to a single process.
Who : The Process
Which Address Spacememory descriptor : A mm_struct type object contains all information related to the process address space.Memory regions are intervals of linear addresses. Linux implements a memory region by means of an object of type vm_area_struct.
What to dovm_operations_struct data structure stores the methods of the memory region.
Where : Physical PagesEach physical page in the system has a struct page associated with it to keep track of whatever it is we are using the page for at the moment.
All information needed by the filesystem to handle a file is included in a data structure called an inode. Each file has its own inode, which the filesystem uses to identify the file.
The end
Thank you!
11/02/2012