You are on page 1of 13
Logical Vs Plussical Adldvess & pace — Address Gereraied by the CPU is catled a Lepieaf Addo. > Address seen boy the waemory uviat 4 calls Plusical Address. soe > Bim ding at compile time and at lad hme qenevate awe lowrcat > physical addacs. > Binding at vuntime Feuevater di fpevent leqicak > physical addvessn. > fn late, case . leg cak address Called Virtual Address. —? — Set ef all lpicak addressen gemevated by the pospiawm » Called Logi cat Pddatss cjace —> Set of all physical addresses Corresponding ta lepical addy h Called Phesi cak Adder. space - ® R > Resin Time mapping from vivinel t Ploysicw Adder, vo done by Mew org Management Uwt (mv), > A simple mapping is: ' — Cmteut of pelocaten re psten b added te te adders qenevarecd hy cpu. > Logeat addres ppase tov a user porto haa bounds a0 0 and wax. a Phajsi cal addves spose bv a usey prpeome hao bomd Rt & RE Man. RK: Content of Relocation / base Aepiste,. 300040 Base iste, Umit Regste Req: y sepia om Baro > wt mepisters Selime adders spaee 256000 Address protechen With bage kranit Registevs Maun Addressing Addressing “4 thoy Ereov ~ Any illegal acts of address io probs bites. @ A variant °F thin Swapp based Aehedulz i: , be glen Priel, Jw Awabs out .. ab . a lees priaity Ba) a “f Poly piety — Cmtext Suwiteh tme ina Awappind pgs © fairly wagh- Assume @ user process of look. Packing Slove » a plomdard hard disk UNth qwouthey vol of im byte | See. Actual Wwomsbey of Joo taken pavers from ov to wa eae loo K = °° ewe ° Mo Ae = Low milk second. > avinage Vatewny of B wall serovd , total Ausafe tine. wb 108 whee. Sime both fwap in $ swab out ave pafermect total time =: lopx2= 216 m fee. > So Srteerhon time phoulS be farvly late than Swab time fov efficient ubhgatin of cpu. mtg uous Allocakéy, => Main eae Gog % nally vided cub tus partite. . Pe how “Perales Spstenn co One fev Cree Presser. "Per abing Spsteu i> pleted tis lores, Contiquens O Sa Space of wan ahaa Omg % chunks tub bye) Pee oles easy Posting. fac partihan may exactly has Ont poecens. Degiee ot mult: wating & Pewondal ty wo. of Parkbons. A vVasiont of thy Lech wayne fuvthe, rhamns Oqne of “db bprpramaraiig. ® Vartont Paxkbin Allocation > Chole User Space i comsideved an a larye block of avai lable neu ord, called a ole. = Whew a Prous arrivin, we pearch boy a hole loge enough for this process, b atlocal.- > Kul v2 awarlable Aatify fury they we tr - Job Mnwt Example: } vst Come first Sewe. U sed job Acheduling mA ° oO cre soo _[e look Pr Tevuanateg Po —— Qovo! Leook | ps paw WWMM, \Fook Lok Leal @ Pr tevranrnatey. 25t0K > Prtidue wa parketay stance of general Ayramie Storage § allecaton problem which m: "dew to hakirty a Beyucst of fre w frore a Mist of free holes” —> Thrace Stvategitn ane Comment Gly used th Aupp. - ot dpawnic stovaze alrcaton Problen : « Givst ft + Gest ft + Wevel ft Fivst Fit: ° Allocate tire first hole that Pig enough. . Searching tom Start ithe, at th beginning OV Whe the previous fivst ft Aeareh euaes, Best ft: + Allocat the Armallest hole that bia eng, © We wust Atarel dre subi list, of List in mat Gvdeved “4 Ase. + Allocates Smallest lepbouer. Lele. Woevst fit: . Largest possible hole & allocated. + Scone tubre dst wless soviet “ Aize. . swateqy produces larfesk lepton hole. Fragwentahin > Two ty peo of frequentation : + Extevnal frag mentaton - + Trtevnel Frrag mat atom : €xtovnal Fragmentation > When enough. total meu ory gpace enisle but eb & wot Cont quows at Aak sty a read > Storage io fragmented cubs Lange no. of Amal Roles. > Stabksticat amaly sis Alows that given N blocks allocated, anothey os n blvek, will be lat dut te fvatmeéntatin - > That a, One thivd of memory mag be unu- -Aable. > This pospet vo Called 50 peveent vub.. Tutevnal Frag umeutaton = Meuory fragment that iuternal t a partion but io not beurg used. > Oe / hole of lowe byteo —>A pwocss of Fo butt may be allecated to free porkhen, Causing a less of Lo byted. > Internal frag mentaton bo Di ffvenee betwem allecated memory oma. veVusated meunorg. > Que solubon tp te problew et Pregonen- ~takon io Compaction. 2 Tn Courpach.on : qo is t Shuffle the memory content, ts plase all pre waeurng PYethev in One bloek, : Compachon Contd. . Jouolk look. ye] Ison Vy Po | P: |» Ye Zs |e L) oO FooK 400K. 400k jt Iheoje, 1800, Bore Compaskon After Compachen. > Combachion i vot alwags bessible : * Possible, ef- address allecakbn vo stake ao civ Compile/ Yad time binding. Not possible, + binding in at exeechon dime ad Sto apping tan also be Combined with Cousba- —chen - Cohen Caw paekon is possi ble, delevvaned. “Moved Goris Sak Paging Moved otk dak Fragmeutatin problem Can be Sdved ef- lagical addvers Apate of a procs beeevnes yen - Cowdag urn. Plugsicad neurons is bsekim tub fxed- Aiged blscks Called Fram. leqicat ‘wnemnornd to bhetiern tub olyeea of te frame frye caltlesl Pager When a procs is fxetrted, ef2 pajeo are Load- -t2 wb maewong frames. @

You might also like