Conceptos bsicos de procesamiento en procecesadores Intel Multi
Conceptos básicos de procesamiento en procecesadores Intel® Multi Core
Trabajos Tasa de Trabajos • Cuántos trabajos se pueden ejecutar en un tiempo Ejemplo Una Nueve señoras pueden tener un niño 9 niños en 9 meses Tasa de trabajos = 1 9 niños/ /99 meses Tasa de trabajos = 0. 111 1 niños por mes 2 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos Tiempo de retorno • Cuánto tiempo tarda un trabajo en terminarse • Incluye el tiempo de espera Ejemplo: Tiempo de retorno para cruzar una calle Un auto espera 180 segundos en el semáforo para cruzar la avenida Toma 5 segundos en cruzar la calle Tiempo de retorno para cruzar la calle = 185 segundos 3 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Plataformas para computación en paralelo Diferentes arquitecturas • SMP • Hyper threading • Multi core 4 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Multi Core Vs Hyper Threading Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Single Core Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Multiprocesador (SMP) 5 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Multi Core Vs Hyper Threading Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Tecnología Hyper Threading Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Multi Core 6 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Multi Core Vs Hyper Threading Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Multi Core con caché compartida Estado del CPU Lógica de Interrupciones Unidades de Ejecución Cache Multi Core con tecnología Hyper Threading 7 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
¿Para que sirve tener dos o más núcleo en un CPU? Aumentar tasa de trabajos ¿Qué tipo de trabajos? • Trabajos que hacen uso intensivo del CPU • Trabajos que requieren E/S • Trabajos mixtos 8 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Un trabajo en un nucleo 10 segundos Tiempo de retorno =10 segs En el CPU 1 trabajo en 10 segundos Tasa = 1 / 10 = 0. 1 9 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Dos trabajos en un nucleo 10 segundos Tiempo de retorno P 0 =20 segs Tiempo de retorno P 1 =20 segs En el CPU 2 trabajos en 20 segundos Tasa = 2 / 20 = 0. 1 10 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Con un CPU • El tiempo de retorno aumenta • La tasa de trabajos se mantiene 11 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Dos trabajos en un nucleo 10 segundos El tiempo de retorno de los procesos puede variar • Prioridades • Politicas de platinificación 10 segundos En el CPU Tiempo de retorno P 0 =15 segs P 1=19 segs 2 trabajos en 20 segundos Tasa = 2 / 20 = 0. 1 La tasa de trabajos se mantiene igual 12 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Un trabajo en dos nucleos 10 segundos No hay mejora en el tiempo de retorno ni la tasa de trabajos Tiempo de retorno =10 segs Nucleo 0 Nucleo 1 1 trabajo en 10 segundos Tasa = 1 / 10 = 0. 1 13 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Desde el administrador de tareas 14 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Dos trabajos en dos núcleos 10 segundos El tiempo de retorno se mantiene igual que cuando ejecutamos un trabajo Tiempo de retorno =10 segs Nucleo 0 Nucleo 1 La tasa de trabajos aumenta al doble 2 trabajos en 10 segundos Tasa = 2 / 10 = 0. 2 15 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Multi core Encontramos mejora en la tasa de trabajos y tiempo de retorno cuando ejecutamos dos procesos concurrentes. Hasta ahora un solo proceso no es capaz de obtener beneficio de las arquitecturas Multi. Core 16 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Trabajos que hacen uso intensivo del CPU Un trabajo optimizado en dos nucleos 5 segundos 10 segundos Hilo 0 Hilo 1 Tiempo de retorno =5 segs Nucleo 0 Nucleo 1 1 trabajo en 5 segundos Tasa = 1 / 5 = 0. 2 17 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Definiendo los Hilos Un hilo es una secuencia de instrucciones relacionadas que se ejecuta de forma independiente a otras secuencias Todos los programas tienen al menos un hilo principal • Inicializa el programa y comienza la ejecución de las instrucciones iniciales • Puede crear otros hilos que ejecuten varias tareas o puede hacer todo el trabajo el solo 18 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Dividiendo una aplicación en hilos Un proceso puede dividirse en múltiples hilos • Mejor uso de los recursos de hardware Es necesario entender • Diseño y estructura de la aplicación • La interfase de programación con hilos • El compilador y el ambiente de ejecución de la aplicación • Las plataformas destino donde la aplicación se va a ejecutar 19 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Hilos en plataformas single core Instrucción Instrucción Instrucción Instrucción Estado del CPU Lógica de Interrupciones Cache Single Core Unidades de ejecución 20 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Hilos en plataformas single core Concurrencia • Dos o más hilos se ejecutan en el mismo procesador • El tiempo del procesador se divide dando turnos a los dos hilos de manera que pueden avanzar 21 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Hilos en plataformas Hyper Threading Instrucción Instrucción Instrucción Instrucción Tecnología Hyper Threading Estado del CPU Lógica de Interrupciones Ambas instrucciones requieren una diferentes misma unidades unidad funcionales Cache Unidades de ejecución 22 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Multi-hilos en plataformas multi core Instrucción Instrucción Instrucción Instrucción Estado del CPU Lógica de Interrupciones Cache Multi Core Unidades de ejecución Cache Unidades de ejecución 23 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
Hilos en plataformas multi core Paralelismo • Dos o más hilos se ejecutan simultáneamente en dos o más procesadores • Cada hilo tiene el tiempo de un procesador 24 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
25 Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States or other countries. *Other brands and names are the property of their respective owners.
- Slides: 25