MEMORY MANAGEMENT in Linux Kernel

clippersdogheartedSoftware and s/w Development

Dec 14, 2013 (3 years and 7 months ago)

66 views

MEMORY MANAGEMENT

in Linux Kernel

Kyuseo

Park

Amy
Sha

Yuchao

Ma

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

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

process descriptor
: a
task_struct

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

memory 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
.

vm_operations_struct

data structure stores the
methods of the memory region.

Each 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