Video Tutorial-Adm de Memoria

Post on 08-Nov-2014

11 views 0 download

Tags:

Transcript of Video Tutorial-Adm de Memoria

Company

LOGO

ADMINISTRACION DE MEMORIAADMINISTRACION DE MEMORIA

SISTEMAS OPERATIVOS

Cipa los Innovadores

Juan Agudelo Díaz

Ernesto Cabrera Piñerez

Harold Torres Bahamon

José Vélez Hernández

UNIVERSIDAD DE CARTAGENACREAD-CARMEN DE BOLIVAR

Emiro Mendoza Romero

CONTENIDOCONTENIDO

¿Qué Es Gestión De Memoria ?1

2

3

4

Objetivos De La Gestion Memoria

Gestion De Memoria Con Particion Fija

Modelo De Memoria De Un Proceso

CONTENIDOCONTENIDO

Intercambio (swapping)6

7 Memoria Virtual

5 Esquema De Memoria Basado En Asignacion Contigua

¿ QUE ES ADMINISTRACION DE MEMORIA ?

¿ QUE ES ADMINISTRACION DE MEMORIA ?

GESTION DE MEMORIAGESTION DE MEMORIA

MONOPROGRAMA

No hay procesos ejecutandose de forma concurrente.

No existe Gestion de Memoria.

El procesador pasa mucho tiempo ocioso.

SISTEMAS

MULTIPROGRAMA Se ejecuta mas de un proceso a

la ves.

Seguridad en coexistencia entre programas con espacios de memoria diferentes.

Procesador: se reparte equitativa o eficiente el tiempo.

La memoria: Se reparte espacios de memoria.

GESTION DE MEMORIA GESTION DE MEMORIA

OBJETIVOSOBJETIVOS

Sea cual sea las politicas de gestion de memoria, se pueden destacar los siguientes objetivos

Ofrecer a cada procesoUn Espacion Logico deMemoria

Proporcionar Proteccion Entre Procesos.

Permitir que los procesos se compartan

la memoriaDar Soporte a las

distintas regiones del proceso

Maximizar rendimiento del Sistema

Proporcionar Espacios de memoria muy

grandes

ESPACIO LOGICO y FISICOESPACIO LOGICO y FISICO

“Se debe crear un proceso de traducción”

Direccion Fisica

Direccion Logica

Traduce(Direccion Logica) Direccion Fisica

Direccion Fisica

Direccion Logica

Direccion de Memoria Principal asignadas a cada

proceso.

Direccion de Memoria que hace

referencia a las instruciones de un

programa.

Crear un espacio unico en memoria,

independiente para cada proceso.

UNIDAD DE ADMINISTRACION DE MEMORIAUNIDAD DE ADMINISTRACION DE MEMORIA

Sus funciones son:

COMPARTIMIENTO DE MEMORIACOMPARTIMIENTO DE MEMORIA

PROTECION ENTRE PROCESOSPROTECION ENTRE PROCESOS

Cada proceso debe protegerse contra interferencias no deseadas de otros procesos, tanto accidentales como intencionadas

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

FASES EN LA GENERACIÓN DE UN EJECUTABLE

FASES DE PROCESAMIENTO

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

Bibliotecas de objetos:

Bibliotecas dinámicas:

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

Este modo de trabajo presenta varias

desventajas:

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

Montaje explícito de bibliotecas dinámicas

Formato del ejecutable

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

MAPA DE MEMORIA DE UN PROCESO

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

PROPIEDADES Y CARACTERÍSTICAS ESPECÍFICAS DE CADA REGIÓN O SEGMENTO:• Soporte de la región. Soporte en archivo.

• Sin soporte

• Tipo de uso compartido:• Privada.• Compartida.

• Protección. Tipo de acceso permitido. Típicamente se distinguen tres tipos:• Lectura.• Ejecución.• Escritura.

• Tamaño fijo o variable.

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

•Código (o texto).

•Datos con valor inicial.

•Datos sin valor inicial.

•Pila.

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

Operaciones sobre regiones

• Crear una región dentro del mapa de un proceso asociándola aun objeto de memoria:

• Eliminar una región del mapa de un proceso:

MODELO DE MEMORIA DE UN PROCESOMODELO DE MEMORIA DE UN PROCESO

• Cambiar el tamaño de una región:

• Duplicar una región del mapa de un proceso en el mapa de otro:

PARTICIONES FIJASPARTICIONES FIJAS

Existen dos tipos de Fragmentaciones:

Fragmentación interna

Fragmentación externa

PARTICIONES FIJASPARTICIONES FIJAS

PARTICIONES FIJASPARTICIONES FIJAS

Utilizar una sola cola:

Técnicas BásicasTécnicas Básicas

PARTICIONES FIJASPARTICIONES FIJAS

Utilizar varias colas:

Técnicas BásicasTécnicas Básicas

PARTICIÓN DINÁMICA      

PARTICIÓN DINÁMICA      

ESQUEMA DE MEMORIA BASADO EN ASIGNACION

CONTIGUA

ESQUEMA DE MEMORIA BASADO EN ASIGNACION

CONTIGUA

ESQUEMA DE MEMORIA BASADO EN ASIGNACION CONTIGUA

ESQUEMA DE MEMORIA BASADO EN ASIGNACION CONTIGUA

Registro limite :

Registro base :

ESQUEMA DE MEMORIA BASADO EN ASIGNACION

CONTIGUA

ESQUEMA DE MEMORIA BASADO EN ASIGNACION

CONTIGUA

TECNICA DE INTERCAMBIO(swapping)

TECNICA DE INTERCAMBIO(swapping)

|TECNICA DE INTERCAMBIO(swapping)|TECNICA DE INTERCAMBIO(swapping)

La utilizamos cuando:

TECNICA DE INTERCAMBIO(swapping)TECNICA DE INTERCAMBIO(swapping)

Dentro del swap tenemos 2 funcionalidades:Swap in :

Swap out :Asignación de espacio utilizando swap:

Pre asignación:

Sin Pre asignación:

MEMORIA VIRTUALMEMORIA VIRTUAL

PAGINACIONPAGINACION

Gestión de Memoria con Particiones Variables.Gestión de Memoria con Particiones Variables.

Características.

Ventajas.

Desventajas

Estrategias para la Asignación de memoria.Estrategias para la Asignación de memoria.

• Primer Ajuste (first fit)

• Mejor Ajuste (best fit)

• Peor Ajuste (worst fit)

Administración de Memoria InsuficienteAdministración de Memoria Insuficiente

• Compactación de memoria

• Swapping

SEGMENTACIONSEGMENTACION

SEGMENTACIONSEGMENTACION

•Segmentación Simple:

SEGMENTACION SIMPLESEGMENTACION SIMPLE

ESTRATEGIASESTRATEGIAS

• Solicitud:

• Ubicación:

• Remplazo:

VALIDACION DEL DIRECCIONAMIENTO

VALIDACION DEL DIRECCIONAMIENTO

SEGMENTACIONSEGMENTACION

CONCLUSIONES DE ADMINISTRACION DE

MEMORIA

CONCLUSIONES DE ADMINISTRACION DE

MEMORIA

Company

LOGO