+ All Categories
Home > Documents > MEMORY MANAGEMENT in Linux Kernel

MEMORY MANAGEMENT in Linux Kernel

Date post: 22-Feb-2016
Category:
Upload: ouida
View: 57 times
Download: 0 times
Share this document with a friend
Description:
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 - PowerPoint PPT Presentation
Popular Tags:
8
MEMORY MANAGEMENT in Linux Kernel Kyuseo Park Amy Sha Yuchao Ma
Transcript
Page 1: MEMORY MANAGEMENT in Linux Kernel

MEMORY MANAGEMENTin Linux Kernel

Kyuseo ParkAmy Sha

Yuchao Ma

Page 2: MEMORY MANAGEMENT in Linux Kernel

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

Page 3: MEMORY MANAGEMENT in Linux Kernel

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

Page 4: MEMORY MANAGEMENT in Linux Kernel

process descriptor: a task_struct type structure whose fields contain all the information related to a single process.

Who : The Process

Page 5: MEMORY MANAGEMENT in Linux Kernel

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.

Page 6: MEMORY MANAGEMENT in Linux Kernel

What to dovm_operations_struct data structure stores the methods of the memory region.

Page 7: MEMORY MANAGEMENT in Linux Kernel

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.

Page 8: MEMORY MANAGEMENT in Linux Kernel

The end

Thank you!

11/02/2012


Recommended