02.03.2014 Views

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SO-mod 9-Memoria Virtual - Facultad de Ingeniería - Universidad ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Alocación <strong>de</strong> Cuadros<br />

Cada proceso necesita un número mínimo <strong>de</strong> páginas.<br />

Ejemplo: IBM 370 – 6 páginas para manejar la<br />

instrucción SS MOVE :<br />

la instrucción es <strong>de</strong> 6 bytes, pue<strong>de</strong> expandirse a 2<br />

páginas.<br />

2 páginas para manejar <strong>de</strong>s<strong>de</strong>.<br />

2 páginas para manejar hacia.<br />

Dos esquemas <strong>de</strong> alocación.<br />

alocación fija<br />

alocación con prioridad<br />

JRA © 2010<br />

Sistemas Operativos – <strong>Memoria</strong> <strong>Virtual</strong><br />

Alocación Fija<br />

Alocación igualitaria – p.e., si hay 100 cuadros y 5<br />

procesos, a cada uno se les da 20 páginas.<br />

Alocación Proporcional – Aloca <strong>de</strong> acuerdo al tamaño<br />

<strong>de</strong>l proceso.<br />

s = tamaño <strong>de</strong>l proceso p<br />

i<br />

S =<br />

∑<br />

s<br />

i<br />

m = número total cuadros<br />

i<br />

a<br />

i<br />

= alocación para p<br />

i<br />

= ×m<br />

i<br />

s<br />

S<br />

m = 64<br />

s =10<br />

i<br />

s =127<br />

2<br />

10<br />

a<br />

1<br />

= ×64 ≈ 5<br />

137<br />

127<br />

a<br />

2<br />

= ×64 ≈ 59<br />

137<br />

JRA © 2010<br />

Sistemas Operativos – <strong>Memoria</strong> <strong>Virtual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!