Docsity

Operating Systems : Memory Management, Study notes of Computer science

Partial preview of the text

Download Operating Systems : Memory Management and more Study notes Computer science in PDF only on Docsity!

LA umber af Pixod sted ations ton cantalinas Orocthy Ono Proce rs. J ¢ ; So,tne Number of PrOprcama to be. evouled® mu bhi programming) Aepends 6 on_tneniumbher of joa tiki ons. ww: There cure ton ater Wes Por Fixed sized & Memowyy —paxtitioni ng shame, co prot & | ized = none and Lunn Sed Partitions 8 ote Pi aalcy g pit wey 29me ¢ | > 1eme ERB — z., tome —§ ———| 88 ONG T EMS -$ TPES, ome oF syste] ome 4 Fqu alsize Uno ay valSpe ¢ Paytitions : PaxtiHticas, ‘ ; 4 ¥ Dudamic Carats) Memory Pootitionin = q q (. xAtioning tao , tertmiqus uhere, tne OS allocates Memory to ‘ processes Qs they anyive - he Ponk partition in created to match the eock ! memory OL _Orocoss Noods.- § WhIThis method awoide toermal Arag momiation § because oem ty _Alloccteal case fey. ‘ ( “J wtAU Free memory ia iorttally treated as one Contin wony aloe), , Ace We Portion _unect lp \y 0S. d J ee eae a eee 8 Process OmVes a partition 4 tno redtri real \ ‘ . ; A 4 > LPreo | Vi-| When « procos.s Aini Wer oy ia Sudappod out fs | : vt a Eq Consicley the: _folloiving table. with mmcena andl ‘Merncry Spa ces f ] Process Memory Sy Thied)’ memory size = 64 MB PAL Qo Ms ah oe. @2 JAY. MS Total Occupied) by .0s=3 MB , e4 are DMB oo T4tot feos memo =56 M6 Os ame oS | 7 OS Li ( ha SE (Same, p J » Nn Yj a — wu 2 A Allocated : ~ ! OS os] os] PA Conme Pa 2 oome Pa Ooome Pr ohms pa | heme” bors ema P3 43mp 23 asme LAS ZZ awe Suppose P2E blocedPy Placed Saree eet ~ oWealable. 5 = ak xdiioniag Algorithms: | a AlFixst Bt Portioning Alcoithm: TITY allocates Piya Pree memory block that iw a big onniugh Por the mroco,n- 4 ‘ie Cod PL pees 42 \KB! a 4) J OS: : } ©S ‘ Phen 1s. ue PA , 20 KB £ oie 2 | > ri “ 45 KB | i5KB P32 ZS P 30KB - R0KB ; ’ Before Mowing RR alloaa ng). pie | Or |Simple_ _and ean +o Implement sid ‘ t Fastest tO fq. Ply» needs te KB 4 4 { ( { ( : ( Tk allocates \a ; { { ( { 4 20 KB} a QOKB [tos | Poel Pre AS KR ABKe ' Pah oy vom ho B3 30Ke See rer: aE Before allocating Azer alloostiny es ti MPAs ne, + liminimized exe Dragon Miavion- | . \V: : keeps a oe eaees ae REE Dinadvartagen: " Tholbicient Yon. Sater Prmeasen. ~|May Waste mnemony Be = ~ -- Linked Lists, & Tk in a Free. Saeco mcenaigemen* ‘echniqnie-¢ Tn hia ere od\ as. \inkod yap Mee” Loa chain. BP hoad ae Shores tho adaress of Pie “ee Free. block 11 tha lis 7b: The. last, Wack. GA Saget points to oul. e LWhen Ol\incating a ack, tna OS removers ® ner Pirsk. eee Wok. on. Uupdabes Vos end @ ounter +6/+n¢g how One. * Advanta ex. Block alfocation ies simpla No ‘disk Fragmantakon Nappenn: ~ Pointers, cofmsumes cliak apace - sieeee¢eoeseononansieisa'| LO J 2 e @ i AL i ma Sra pping- = saa = 4 Te lSupanptaa ie a memory management technique i ae) : J i! eon _ where thes OS temperecrily moves procender loetrs< . His jnsu PRtct ent - RAM ia tnawtiicrent: «(in swap-ouk eperntion :an inactive paracenA tn RAM is moved to Seconda Stowesge to Free up spac tor. Woy : frrecomscn + in ictaae p=in operation Ena prrocera tak Wad swapped lout ts brovigist. nak fo RBM When reguired- b See Pua neogen Supa co paragrresmn ening. rEMrctoNk cose bj. nemo. we : vit Daaduendagea: Risk oF data lac Stecseltinissiee slp pains I “Freguomt Sua y vai: Pq. Suppose a com puiker has 492: B RAM, out a _aiel browser CiaoMP) and ou. Midon editory(an rit) Nood to ——s erun. The OS loadsa tin, moioser Pixk-Whon the editor ix.’ Opened, tne brouser ix moved + dine Nal dish tp Sree | anémiow (Gite ebeh’ hack moves the gab ior out and . | Hho brouser hack fn ua? bath Programs bo un. OS 5 Se Shen i . = out Tel . i 7 ; AT Poe oP \ a "1 icf ' ot wae - %. : ; é ! 2 Say ¥! ' 7 7 an am s. . Swe 1 , a Process} . (ker Space , ' = i) he occurs when allocated FE acc is scattered th.smalt, nor emo} Us lorgerthan tno process Noodks: - Cond ign aud lolocks . it Wasted momoyu in inside TWasked momo -eyixts betucon |) ‘= Wie: allocated Sook. Mocated plo oka. I leniven some Space TH leaves trial Free Space UnNusa tole Rar now Procenter Linaice a flock Unugert . Ww: IE ia commen in fixed — amic Me Te ty Caxiey i, manage. : LTE ta hoyder to manage and Pay neq saline comma cco. ine cn i a | yi: Eg. AO KB ia Oiwen, £ PYNCoxs Eq. Frep blacks of 9KB, 3k Asn BKB: Flues oye >4kp wanted. L mit fet a akR pres Te . : Corpacticn res} used tp calue. external Fragmentation _ rial nided ov E 4 Te eee we Free Spacek Tnto.ens large —¢ Continuous \plochs - r ene __ yw. Me: Free Spaces toro together on ine onerside, Mom om Sony. Creahng =a singles. eo algla area: Boi a day Para . Po So\bi=> EATER omar 30K6 ‘ ; eP2 Pa { \ioke Compact nn PY ene | ake tif ia ai eee Mom ve wu sagen a High. antag Cast xen System Raontime . a” Segcne nt TA le Pousice!l momory d — ra Limit [Bare Seg-0 | \So0 | 1500 Seq-._ | Gon |. 6300 3006 eS seg. | 4oo |usoo ELL seg-> | 1100 | 2200 Son} SoA? Seg |\200 | 400 TL See * =r -|Divieles ‘Progeams Dube |Divisles — A I fixed-sie. Leda Called Variable <\2e. llorka Calle segments - i i ry - |Closer_ ty OS'c View O}- N Coser to LiBONS Vien Oo] memon4.. y Hodhads on iden k memory Foruaes on Loa tea! Proc Uabape___si 2“ |.shnichire_ ana” waper-v4i ear are main nnomnory. — 7s 4) - i aes paning and segmentation dp mneve [@) Tk altoids Learge—pacgeems ste YUL _2AAn Nn when “Node bebusten RAM and dick as roped. | Te letra 4facograma —bigqgar snan physka) mem re Pay smootaly z Pans, Foot: [BY Fett ts a condition that aca. when a program tyes to ACcons a Momo SE ta Mot “Cuvee, in plays ital enern.coy: Ride banlis happen Wenwint physical ee ‘a : ons: ja ~ Smaller than wittial moray: oe -| Wen a. pags Pantb pcos dine OS Wouses Sevan ey. feamnemje TaD. REM, and preaumes execution : ~ | TE RAM Ss fu ihe OS swaps ele evishing using page replacement een to make. yoom forthe new _po ghee