SlideShare a Scribd company logo
1 of 7
Moses Reuven
                              Yair Wiseman
KashiF-DAYO MSCCN-III   Bar-Ilan University, Israel
 ..............Abstract
 ..............Introdusction
 Bin Packaging
 Bin Packaging Based Paging
 Medium-Term Schedular




                     KashiF-DAYO MSCCN-III
Bin Packaging:
 Either  uyou mst have enough physical
  memory or you have to face paging!!!!!
 But, paging is considerable and suitable way
  to go with in it so many novel techniques are
  used to handle paging for performance.
 Thrashing is a situation in that ratio of paging
  in & out is increased and tharashing is not
  encouraged to be happpen.
 In this paper authors have leesen this
  tharshing to happen by placing several “bins”



                   KashiF-DAYO MSCCN-III
A  set of all processes which are in virtual
  memory are split into several groups, such
  that the total memory size of each group is as
  close as possible to the size of available real
  memory.
 Let Pi be the set of processes each with
  memory allocation and Mi be the maximal
  working set size needed by the process Pi.
  Algorithm has to split Mi‟s into groups as few
  as possible, such that sum of Mis ineach
  group not exceeding the size of the real
  memory.
                  KashiF-DAYO MSCCN-III
 It is NP-hard problem.[Karp,19720
 (A problem is NP-hard if an algorithm     for
  solving it can be translated into one for
  solving any NP-problem.[mathworld.wolfram.com].
 P & NP:- The question is whether, for all
  problems for which a computer can verify a
  given solution quickly (that is, in polynomial
  time), it can also find that solution quickly.
  The former describes the class of problems
  termed NP, whilst the latter describes P.


                  KashiF-DAYO MSCCN-III
 Approximation   algorithm for „bin-
  packaging‟ problem, one is known as
  greedy approach also knowm as First-Fit
  approach.
 Sort the vector X1,X2,....,Xn by allocated
  memory size.
 Open a new bin and put heighest number
  in it.
 While ther are more numbers

                  KashiF-DAYO MSCCN-III
 Loads  the groups into ready queue in a
  round robin fashion.
 The processes in the real memory ll not
  cause the thrashing because of the size of
  each bin.




                KashiF-DAYO MSCCN-III

More Related Content

Viewers also liked

Implementation of page table
Implementation of page tableImplementation of page table
Implementation of page tableguestff64339
 
Page replacement
Page replacementPage replacement
Page replacementsashi799
 
House connection from mains, laying and joints in pipes
House connection from mains, laying and joints in pipesHouse connection from mains, laying and joints in pipes
House connection from mains, laying and joints in pipeskrishnacp
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmsPiyush Rochwani
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System ImplementationWayne Jones Jnr
 
File system.
File system.File system.
File system.elyza12
 
File management ppt
File management pptFile management ppt
File management pptmarotti
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating SystemRaj Mohan
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File ManagementDamian T. Gordon
 

Viewers also liked (15)

Implementation of page table
Implementation of page tableImplementation of page table
Implementation of page table
 
Page replacement
Page replacementPage replacement
Page replacement
 
House connection from mains, laying and joints in pipes
House connection from mains, laying and joints in pipesHouse connection from mains, laying and joints in pipes
House connection from mains, laying and joints in pipes
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
File system.
File system.File system.
File system.
 
Memory management
Memory managementMemory management
Memory management
 
Virtual memory ppt
Virtual memory pptVirtual memory ppt
Virtual memory ppt
 
File management ppt
File management pptFile management ppt
File management ppt
 
File system
File systemFile system
File system
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
 
Memory management
Memory managementMemory management
Memory management
 

More from Kashif Dayo

Selecting cryptographic technique in peer to peer to Systems
Selecting cryptographic technique in peer to peer to SystemsSelecting cryptographic technique in peer to peer to Systems
Selecting cryptographic technique in peer to peer to SystemsKashif Dayo
 
Memory Management In Vmware Esx Server
Memory Management In Vmware Esx ServerMemory Management In Vmware Esx Server
Memory Management In Vmware Esx ServerKashif Dayo
 
Exokernel Operating System (1)
Exokernel Operating System (1)Exokernel Operating System (1)
Exokernel Operating System (1)Kashif Dayo
 
Dynamic Analysis And Profiling Of Multi Threaded Systems
Dynamic Analysis And Profiling Of Multi Threaded SystemsDynamic Analysis And Profiling Of Multi Threaded Systems
Dynamic Analysis And Profiling Of Multi Threaded SystemsKashif Dayo
 

More from Kashif Dayo (6)

Thp 14-ict-ii
Thp 14-ict-iiThp 14-ict-ii
Thp 14-ict-ii
 
Selecting cryptographic technique in peer to peer to Systems
Selecting cryptographic technique in peer to peer to SystemsSelecting cryptographic technique in peer to peer to Systems
Selecting cryptographic technique in peer to peer to Systems
 
Ros Kd
Ros KdRos Kd
Ros Kd
 
Memory Management In Vmware Esx Server
Memory Management In Vmware Esx ServerMemory Management In Vmware Esx Server
Memory Management In Vmware Esx Server
 
Exokernel Operating System (1)
Exokernel Operating System (1)Exokernel Operating System (1)
Exokernel Operating System (1)
 
Dynamic Analysis And Profiling Of Multi Threaded Systems
Dynamic Analysis And Profiling Of Multi Threaded SystemsDynamic Analysis And Profiling Of Multi Threaded Systems
Dynamic Analysis And Profiling Of Multi Threaded Systems
 

Bin Packaging Techniques Reduce Thrashing

  • 1. Moses Reuven Yair Wiseman KashiF-DAYO MSCCN-III Bar-Ilan University, Israel
  • 2.  ..............Abstract  ..............Introdusction  Bin Packaging  Bin Packaging Based Paging  Medium-Term Schedular KashiF-DAYO MSCCN-III
  • 3. Bin Packaging:  Either uyou mst have enough physical memory or you have to face paging!!!!!  But, paging is considerable and suitable way to go with in it so many novel techniques are used to handle paging for performance.  Thrashing is a situation in that ratio of paging in & out is increased and tharashing is not encouraged to be happpen.  In this paper authors have leesen this tharshing to happen by placing several “bins” KashiF-DAYO MSCCN-III
  • 4. A set of all processes which are in virtual memory are split into several groups, such that the total memory size of each group is as close as possible to the size of available real memory.  Let Pi be the set of processes each with memory allocation and Mi be the maximal working set size needed by the process Pi. Algorithm has to split Mi‟s into groups as few as possible, such that sum of Mis ineach group not exceeding the size of the real memory. KashiF-DAYO MSCCN-III
  • 5.  It is NP-hard problem.[Karp,19720  (A problem is NP-hard if an algorithm for solving it can be translated into one for solving any NP-problem.[mathworld.wolfram.com].  P & NP:- The question is whether, for all problems for which a computer can verify a given solution quickly (that is, in polynomial time), it can also find that solution quickly. The former describes the class of problems termed NP, whilst the latter describes P. KashiF-DAYO MSCCN-III
  • 6.  Approximation algorithm for „bin- packaging‟ problem, one is known as greedy approach also knowm as First-Fit approach.  Sort the vector X1,X2,....,Xn by allocated memory size.  Open a new bin and put heighest number in it.  While ther are more numbers KashiF-DAYO MSCCN-III
  • 7.  Loads the groups into ready queue in a round robin fashion.  The processes in the real memory ll not cause the thrashing because of the size of each bin. KashiF-DAYO MSCCN-III

Editor's Notes

  1. An algorithm is said to be of polynomial time if its running time is upper bounded by a polynomial expression in the size of the input for the algorithm, i.e., T(n) = O(nk) for some constant k