JERARQUÍA DE MEMORIA  MEMORIA VIRTUAL SEMANA NO.15 SEMESTRE 2012-1 PROF. EUGENIO DUQUE PÉREZ PROF. GUSTAVO PATIÑO

Slides:



Advertisements
Presentaciones similares
Control en cascada.
Advertisements

Circuitos Digitales II Jerarquía de memoria Memoria Cache (Parte II) Semana No.14 Semestre Prof. Eugenio Duque Pérez Prof. Felipe.
Dónde vs. Adónde Dónde means WHERE. When dónde is used, it is usually in relation to where someone IS LOCATED RIGHT THEN. Ex: ¿Dónde estás tú? Yo estoy.
Subject Pronouns Los Pronombres Sujetos Diane Brooks FL490.
Impersonal se, Passive voice with se, and Passive voice with ser.
Los verbos regulares – ar What is an infinitive? An infinitive in both Spanish and English is the base form of the verb. In English, the infinitive.
El subjuntivo con verbos y frases de emoción, opinión y recomendación
Las Palabras Interrogativas ¿Quién? ¿Qué? ¿Cuándo?
REQUISITOS PARA LA GRADUATION DE LAS HIGH SCHOOLS DE ALLIANCE Alliance High School Graduation Requirements.
VOCABULARIO #2.4 ¡Aprenda! Forming Questions Señora Sequin.
C. E. I. P. MONTEALBO Montalbán de Córdoba (Spain) El presente proyecto ha sido financiado con el apoyo de la Comisión Europea y dentro del Programa de.
La Hora... Telling Time in Spanish. ¿Que hora es? The verb ser is used to express the time of day. Use es when referring to "one o'clock" and use son.
Telling Time.
1 – 999,999,999.
CPU 8088 vs. Pentium TEEL 4011 Prof. Jaime José Laracuente-Díaz.
Los complementos directos Direct Object Pronouns.
Notes #18 Numbers 31 and higher Standard 1.2
The Present Subjunctive The Subjunctive l Up to now you have been using verbs in the indicative mood, which is used to talk about facts or actual events.
DIRECT OBJECT PRONOUNS. DIRECT OBJECTS The object that directly receives the action of the verb is called the direct object. Mary kicked the ball. "Ball"
Español 3 Sra. Carpinella.  Because each tense is used for very specific things, there are some key words that indicate whether you would use the imperfect.
Los verbos reflexivos Objective:
DIRECT OBJECT PRONOUNS. DIRECT OBJECTS The object that directly receives the action of the verb is called the direct object. Mary kicked the ball. "Ball"
Hace + Time Expressions
Unit 2A: Lesson 2 How to Talk About Your Schedule Gramática- Present tense of –ar verbs.
Hazlo Ahora ● It is Maria’s first day of school, and she needs a shopping list. Help Maria by matching the objects with the classes she needs them for.
ALC 155 miércoles el 25 de mayo. Bienvenida Sientense SS – lado a lado Uno lee las preguntas en voz alta la otra persona contesta.
¿Qué haces en la escuela? Question words, objects, yo-go’s.
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Time in Spanish Nivel 1. Telling time inSpanish  Time is not TOO different in Spanish.  It is formatted the way time used to be told in English.  It.
Tecnología y Estructura de Costos. Technologies u A technology is a process by which inputs are converted to an output. u E.g. labor, a computer, a projector,
El uso de los adjetivos The Use of Adjectives Adjectives describe nouns. In Spanish they must agree with the noun described in two ways…………
Time Telling time is rather easy. You only need to know the numbers up to 59 to be able to tell the time.
Regular –AR verbs.  In Spanish there are three types of regular verbs, those that end in –AR, -ER and –IR  This ending sets up a pattern for how the.
Spanish Sentence Structure How can we make better sentences?
JUEVES, EL 10 DE SEPTIEMBRE LT: I WILL RECOGNIZE SOME NEW VOCABULARY WORDS. Go over tests & retake procedures Interpretive Assessment: numbers & alphabet.
Relative Pronouns Spanish 3 H c.12 MAS 2014.
Las Palabras Interrogativas ¿Qué?¿Qué? 1 Las palabras interrogativas ¿Cómo estás?How are you? ¿De dónde eres?Where are you from? ¿Quién es ella?Who is.
Gramática de 2A. YoINosotros/ Nosotras We TúYou ÉlHeEllosThey EllaSheEllasThey Ud.You (formal)Uds.You all Ellos is used to refer to “they” if there is.
Vámonos (cinco minutos)  Write and solve three math problems of your own in Spanish- remember that you don’t know any numbers higher than 99 or lower.
Spanish I Greetings and Introductions Las Salutaciones y Las Presentaciones How to greet, introduce, and say good-bye!
Double Object Pronouns What happens when we have both direct and indirect object pronouns in the same sentence? What goes where? Information for this lesson.
How would you spell the following word out loud in Spanish? Abuelito.
LOS VERBOS REFLEXIVOS. WRITE: What is a reflexive verb? A reflexive verb describes when a person doing an action is also receiving the action.
Forming Questions ¡Aprenda! Forming Questions By Patricia Carl October 2013.
DAI-C1-UD 2 Introduction To Operating Systems Academic Year DAI. Credit 1 (Single and Multiuser Operating Systems) Ferran Chic PELE-08/11 (Pla Experimental.
Español 2 lunes el 21 de septiembre Daily Warm Up (pick up a new sheet) Test Review Activities: – Pizzaras Blancas (white boards) – SINGO – Toca las estrellas.
Campanada guidelines in your composition notebook ¿Cómo es tu familia? (10 points) Ex. Hoy es Miercoles el 27 de enero First line will start with the date.
UNIVERSIDAD AUTÓNOMA DEL ESTADO DE HIDALGO ESCUELA SUPERIOR DE ZIMAPÁN Licenciatura en Derecho Logros y experiencias. Lengua extranjera. L.E.L.I. Paulina.
Escribir *You can get creative. You can write in the first person which means you are the character, you can use the third person which means you are talking.
Las Palabras Interrogativas
Las Palabras Interrogativas
El Imperfecto Español 2.
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Hoy es miércoles el doce de septiembre
Tengo una pregunta… Carlos está en la biblioteca. s v
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Las Palabras Interrogativas
Tapas Contesten las preguntas: 1. ¿Cómo eres? 2. ¿Cómo estás?
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Transcripción de la presentación:

JERARQUÍA DE MEMORIA  MEMORIA VIRTUAL SEMANA NO.15 SEMESTRE PROF. EUGENIO DUQUE PÉREZ PROF. GUSTAVO PATIÑO 1 Arquitectura de Computadores Departamento de Ingeniería Electrónica Facultad de Ingeniería

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Virtual Memory 2 The main memory can act as a “cache” for the secondary storage, usually implemented with magnetic disks. This technique is called Virtual Memory. There are two major motivations for virtual memory: to allow efficient and safe sharing of memory among multiple programs and to remove the programming burdens of a small, limited amount of main memory.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Virtual Memory (…cont) 3 Main memory needs to contain only the active portions of the many programs, just as a cache contains only the active portion of one program. This allows us to efficiently share the processor as well as the main memory. Virtual memory implements the translation of a program’s address space to physical addresses. This translations enforces protection of a program’s address space from other programs.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Virtual Memory (…cont) 4 Virtual memory manages the two levels of the memory hierarchy represented by main memory (sometimes called physical memory to distinguish it from virtual memory) and secondary storage. Although the concepts at work in virtual memory and in caches are the same, their differing historical roots have led to the use of different terminlogy.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Terminology 5 Page : A block in the virtual memory. Page fault : A virtual memory miss.  A page fault will take millions of cycles to process.  This enormous miss penalty, dominated by the time to get the first word for typical page sizes, leads to several key decisions in designing virtual memory systems. Memory mapping (or address translation) : With virtual memory, the CPU produces a virtual address which is translated by a combination of HW and SW to a physical address, which in turn can be used to access main memory. Analogy : Virtual Address can be seen like book title Physical address like location of that book in the library.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Mapeo de Memoria 6

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Mapeo de Memoria (…cont) 7

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Mapeo de Memoria (…cont) 8 El número de bits en el page offset determina el tamaño de la página. El número de páginas direccionables con la dirección virtual no necesita corresponder con el número de páginas direccionables con la dirección física. Tener un número mayor de páginas virtuales, que el número de páginas físicas, es la base de la ilusión de una cantidad esencialmente ilimitada de memoria virtual.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Decisiones claves para el diseño de memoria virtual 9

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Placing a page and finding it again 10 If we allow a virtual page to be mapped to any physical page (fully associative placement), the operating system can then choose to replace any page it wants when a page faults occurs. Problems : it would be necessary a full search.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Placing a page and finding it again (…cont) 11 In virtual memory, we locate pages by using a full table that indexes the memory. This structure is called a page table. A page table is indexed with the page number from the virtual address and contains the corresponding physical page number.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Placing a page and finding it again (…cont) 12 Each program has its own page table, which maps the virtual address space of that program to main memory. To indicate the location of the page table in memory, the HW includes a register that points to the start of the page table.  Page Table Register.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería The Page Table 13

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería The page table (…cont) 14 Because the page table contains a mapping for every possible virtual page, no tags are required. In cache terminology, the index, which is used to access the page table, consists of the full block address, which is the virtual page number.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería What happen with every program ? 15 The page table, together with the program counter and the registers, specifies the state of a program. If we want to allow another program to use the CPU, we must save this state. Later, after restoring this state, the program can continue execution. This state is often refer as a process. The process is considered active when it is in possesion of the CPU; otherwise, it is considered inactive. Rather than save the entire page table, the operating system symply loads the page table register to point to the page table of the process it wants to make active.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Making Address Translation Fast : The TLB 16 Since the page tables are stored in main memory, every memory access by a program can take at least twice as long: one memory access to obtain the physical address and a second access to get the data. The key to improving access performance is to rely on locality of reference to the page table. When a translation for a virtual page number is used, it will probably be needed again in the near future because the references to the words on that page have both temporal and spatial locality.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería The TLB 17 Accordinly, modern machines include a special cache that keeps track of recently used translations. This special address translation cache is traditionally referred to as a Translation Lookaside Buffer (TLB). The TLB is a cache that holds only page table mappings. Thus each tag entry in the TLB holds a portion of the virtual page number, and each data entry of the TLB holds a physical page number.

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería The TLB (…cont) 18

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Integrating Virtual Memory, TLBs and Caches 19

Departamento de Ing. Electrónica. Arquitectura de Computadores Facultad de Ingeniería Ejemplo del procesamiento de una condición de lectura o escritura en el procesador DECStation