Changeset 400


Ignore:
Timestamp:
10/29/16 17:48:10 (8 years ago)
Author:
nanardon
Message:

more line about computers and clusters

Location:
trunk/clusters-calcul
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/clusters-calcul/presentation.tex

    r399 r400  
    66\usepackage{moreverb} 
    77\usepackage{graphicx} 
     8 
     9\newlength{\textlarg} 
     10\newcommand{\barre}[1]{% 
     11    \settowidth{\textlarg}{#1} 
     12    #1\hspace{-\textlarg}\rule[0.5ex]{\textlarg}{0.5pt}} 
    813 
    914\mode<presentation> 
     
    119124\end{frame} 
    120125 
     126\section{Inside the computers} 
     127 
     128\begin{frame}[fragile] 
     129\frametitle{The Motherboard} 
     130\begin{columns}[c] 
     131\column{2in} 
     132\begin{exampleblock}{ASUS AV7333} 
     133\centering 
     134\includegraphics[height=40mm]{asus_mb} 
     135\end{exampleblock} 
     136\column{2.5in} 
     137\begin{block}{} 
     138\begin{itemize} 
     139\item Main components (PC) 
     140\begin{itemize} 
     141\item \textcolor{red}{CPU} 
     142\item \textcolor{green}{Memory} 
     143\item \textcolor{blue}{Bus} 
     144\item keyboard 
     145\item graphic card 
     146\end{itemize} 
     147\pause 
     148\item optionals components 
     149\begin{itemize} 
     150\item mouse and others rodents 
     151\item hard drive 
     152\item sound card 
     153\item \ldots 
     154\end{itemize} 
     155\end{itemize} 
     156\end{block} 
     157\end{columns} 
     158\end{frame} 
     159 
     160\begin{frame}[fragile] 
     161\frametitle{The processor} 
     162\begin{columns}[c] 
     163\column{3in} 
     164\begin{block}{CPU} 
     165    \begin{itemize} 
     166        \item perform computation 
     167        \item one process at a time per processing unit 
     168        \onslide<2->{ 
     169        \item \og{}CPU\fg{} is the physical component 
     170        \item \og{}core\fg{} refer to processing unit 
     171        } 
     172        \onslide<3->{ 
     173        \item since around 2010 most CPU have multiple cores 
     174        } 
     175        \onslide<4->{ 
     176        \item some computers can handle multiple CPU 
     177        } 
     178    \end{itemize} 
     179\end{block} 
     180\column{1in} 
     181\begin{exampleblock}{Intel Core 2} 
     182\centering 
     183\includegraphics[height=20mm]{cpu} 
     184\end{exampleblock} 
     185\end{columns} 
     186\end{frame} 
     187 
     188\begin{frame}[fragile] 
     189    \frametitle{The Random Access Memory (RAM)} 
     190\begin{columns}[c] 
     191\column{3in} 
     192\begin{block}{Data used by CPUs} 
     193    \begin{itemize} 
     194        \item the programs themself (system and applications) 
     195        \item the program's data 
     196        \item hard drive cache 
     197    \end{itemize} 
     198\end{block} 
     199 
     200\begin{block}{Properties} 
     201    \onslide<2->{ 
     202    \begin{itemize} 
     203        \item is very fast 
     204        \item is very small compared to storage 
     205    \end{itemize} 
     206    } 
     207\end{block} 
     208\column{1in} 
     209\begin{exampleblock}{RAM} 
     210\centering 
     211\includegraphics[height=20mm]{ram} 
     212\end{exampleblock} 
     213\end{columns} 
     214\end{frame} 
     215 
     216\begin{frame}[fragile] 
     217    \frametitle{Multitasking (long time ago)} 
     218\begin{block}{Mono task: one thing at time} 
     219Does not exists anymore on standard computers 
     220\end{block} 
     221\pause 
     222 
     223\begin{block}{Cooperative multi taskting} 
     224\begin{itemize} 
     225\item More than one appplication are launch 
     226\item Up to the running application to give back CPU 
     227\end{itemize} 
     228Concern: 
     229\begin{itemize} 
     230    \item MacOS 1 to 9 (before MacOS X) 
     231    \item Windows 3.x, Windows 9x and Me 
     232\end{itemize} 
     233\end{block} 
     234\end{frame} 
     235 
     236\begin{frame}[fragile] 
     237\frametitle{Preemptive Multitasking} 
     238\begin{block}{The system has the hand} 
     239    \begin{itemize} 
     240        \item the system dispatch CPU to apllication 
     241        \item the handle user's defined priority 
     242            \pause 
     243        \item process can be kill: 
     244            \begin{itemize} 
     245                \item not enough memory 
     246                \item memory corruption attempt 
     247            \end{itemize} 
     248    \end{itemize} 
     249\end{block} 
     250\pause 
     251 
     252\begin{block}{The scheduler} 
     253    It manage the order of application to run according 
     254    \pause 
     255    \begin{itemize} 
     256        \item CPU resquested by applications 
     257            \pause 
     258        \item the number of process unit 
     259            \pause 
     260        \item hardware response time (hard drive) 
     261            \pause 
     262        \item process priority 
     263    \end{itemize} 
     264\end{block} 
     265\end{frame} 
     266 
    121267\section{Models} 
    122268 
     
    135281\pause 
    136282 
    137 \begin{block}{Examples} 
    138 \begin{itemize} 
    139 \item Cube: ozone level / $m^3$ for 1km3: $1000 * 1000 * 1000 = 10^9 \simeq 1GB$ 
    140 \pause 
    141 \item loop: 1 second step for 1 hour: 3600 steps. 
    142 \end{itemize} 
    143 Data to store: around 3TB. 
     283\begin{exampleblock}{Examples} 
     284\begin{itemize} 
     285\item Cube: $O_3$ level / $m^3$ for 1km3: $1000 * 1000 * 1000 = 10^9 \simeq 1GB$ 
     286\pause 
     287\item loop: 1 second step for 1 hour (3600 steps) 3TB of data 
     288\end{itemize} 
     289\end{exampleblock} 
     290\pause 
     291 
     292\begin{alertblock}{Issues} 
     293\begin{itemize} 
     294\item Take a lot of time 
     295\item Need a lot of memory 
     296\end{itemize} 
     297\end{alertblock} 
     298\end{frame} 
     299 
     300\begin{frame}[fragile] 
     301\frametitle{The memory issue} 
     302\begin{block}{Solutions:} 
     303\begin{itemize} 
     304\item Buy more memory 
     305    \pause\\ 
     306    Necessary in some case but RAM is expensive 
     307\pause 
     308\item Write intermediate data / results on hard drive 
     309    \pause\\ 
     310    Will slowdown the process, less with a proper database format 
     311\end{itemize} 
     312\end{block} 
     313\end{frame} 
     314 
     315\begin{frame}[fragile] 
     316\frametitle{Run the code faster} 
     317\begin{block}{Solutions:} 
     318\begin{itemize} 
     319\item Buy a faster CPU 
     320    \pause\\ 
     321    Maybe, but the CPU speed is reaching a limit\\ 
     322    Now the processor number increase, not the speed 
     323\pause 
     324\item Optimize the code 
     325    \pause\\ 
     326    Of course, not enough sometimes 
     327\pause 
     328\item Make the code parallel 
     329    \pause\\ 
     330    Yes ! Will split the work on all availlable cores\\ 
     331    Need some work, sometimes very complex 
     332\end{itemize} 
    144333\end{block} 
    145334\end{frame} 
    146335 
    147336\section{Clusters} 
     337 
     338\begin{frame} 
     339    \frametitle{About clusters} 
     340    \begin{block}{Definition (Wikipedia)} 
     341        A computer cluster consists of [\ldots] connected 
     342        computers that work together so [\ldots] they can be 
     343        viewed as a single system. 
     344    \end{block} 
     345    \pause 
     346 
     347    \hfill 
     348    \begin{block}{Pratice} 
     349        \begin{itemize} 
     350            \item a computer is call "node" 
     351            \item all computers share the same storages 
     352            \item computers are independant 
     353            \item a scheduler dispatch job on free node 
     354        \end{itemize} 
     355    \end{block} 
     356    \pause 
     357 
     358\end{frame} 
    148359 
    149360\begin{frame} 
Note: See TracChangeset for help on using the changeset viewer.