80 likes | 259 Views
MEMORY MANAGEMENT in Linux Kernel. Kyuseo Park Amy 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
E N D
MEMORY MANAGEMENTin Linux Kernel Kyuseo Park Amy 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 Conquer WHO 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
Who : The Process process descriptor: a task_structtype structure whose fields contain all the information related to a single process.
Which Address Space memory descriptor : A mm_structtype 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 do vm_operations_struct data structure stores the methods of the memory region.
Where : Physical Pages Each physical page in the system has a structpage 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