Monday, June 24, 2013
Explain the page replacement algorithms - FIFO, LRU, and Optimal
Posted by
Sunflower
at
6/24/2013 11:30:00 AM
0
comments
Labels: Algorithms, Disk, Entries, FIFO, Hardware, Implementation, Items, LRU, Memory, Operating System, Optimal, OS, Page Fault, Page Replacement, pages, Paging, Queue, Replacement, Software, Swap
|
| Subscribe by Email |
|
Friday, June 21, 2013
Explain about the Paged Memory and Segmentation techniques?
What is Paging?
- Determining the location of
the requested data from the auxiliary storage.
- Obtaining a page frame in
the main memory that is empty to be used for storing the requested data.
- Loading the data requested
in to the empty page obtained above.
- Making updates to the page
table so that new data is only available.
- Returning the control
interrupting program and retrying to execute the same instruction that
caused the fault.
What is Segmentation?
Posted by
Sunflower
at
6/21/2013 08:51:00 PM
0
comments
Labels: Address, Contiguous, Control, Data, Design, Flags, Memory, Modules, Object, Operating System, Page Fault, Paged, Paging, Primary, Secondary, Segmentation, Segments, System, Techniques, Virtual
|
| Subscribe by Email |
|
Tuesday, May 28, 2013
Concept of page fault in memory management
Classification of Page Faults
Posted by
Sunflower
at
5/28/2013 03:00:00 PM
0
comments
Labels: Address, Fault, Hardware, Invalid, Main Memory, Major, Memory, Memory management, Minor, Operating System, Page Fault, pages, Physical, Processor, program, Software, Types, Virtual Memory
|
| Subscribe by Email |
|
Friday, April 26, 2013
What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?
How can a system handle thrashing?
Posted by
Sunflower
at
4/26/2013 03:32:00 PM
0
comments
Labels: Application, Causes, Communication, CPU, Crash, Data, Detect, Instruction, Memory, OS, Page Fault, pages, Paging, Performance, Physical, program, System, Techniques, Thrashing, Utilization
|
| Subscribe by Email |
|
Friday, April 19, 2013
What is Paging? Why it is used?
Posted by
Sunflower
at
4/19/2013 08:34:00 PM
0
comments
Labels: Address, Application, Data, Devices, Errors, Faults, Frames, Memory, Operating System, Page, Page Fault, Paging, Physical, Primary, Secondary, Storage, System, Techniques, Uses, Virtual
|
| Subscribe by Email |
|
Thursday, January 21, 2010
Page Buffering Algorithm
There are some other procedures that are often used in addition to a specific page replacement algorithm.
- System commonly keep a pool of free frames. When a page fault occurs, a victim frame is chosen as before. However, the desired page is read into a free frame from the pool before the victim is written out. This procedure allows the process to restart as soon as possible, without waiting for the victim page to be written out. When the victim is later written out, its frame is added to the free-frame pool.
- Whenever the paging device is idle, a modified page is selected and is written to the disk. Its modify bit is then reset. This scheme increases the probability that a page will be clean when it is selected for replacement, and will not need to be written out.
- Another modification is to keep a pool of free frames, but to remember which page was in each frame. Since the frame contents are not modified when a frame is written to the disk, the old page can be reused directly from the free-frame pool if it is needed before that frame is reused. No I/O is needed in this case. When a page fault occurs, we first check whether the desired page is in the free-frame pool. If it is not, we must select a free frame and read into it.
This technique is used in VAX/VMS system, with a FIFO replacement algorithm. When the FIFO replacement algorithm mistakenly replaces a page that is still in active use, that page is quickly retrieved from the free-frame buffer, and no I/O is necessary.
Posted by
Sunflower
at
1/21/2010 02:39:00 PM
0
comments
Labels: Algorithms, Operating Systems, Page Buffering Algorithm, Page Fault, Page Replacement, Page replacement Algorithm, pages
|
| Subscribe by Email |
|
Thursday, January 14, 2010
Not Recently Used (NRU) Page Replacement Algorithm
The not recently used (NRU) page replacement algorithm is an algorithm that favors keeping pages in memory that have been recently used. This algorithm works on the following principle: when a page is referenced, a referenced bit is set for that page, marking it as referenced. Similarly, when a page is modified (written to), a modified bit is set. The setting of the bits is usually done by the hardware, although it is possible to do so on the software level as well.
- When a page fault occurs, the operating system inspects all the pages and divides them into four categories based on the current values of their R (referenced; read or written) and M (modified) bits:
* Class 0: not referenced, not modified.
* Class 1: not referenced, modified.
* Class 2: referenced, not modified.
* Class 3: referenced, modified.
- Although class 1 pages seems, at first glance, impossible, they occur when a class 3 page has its R bit cleared by a clock interrupt. Clock interrupts do not clear the M bit because this information is needed to know whether the page has to be rewritten to disk or not. Clearing R but not M leads to a class 1 page.
- The NRU (Not Recently Used) algorithm removes a page at random from the lowest numbered nonempty class.
- It is better to remove a modified page that has not been referenced in at least one clock tick (typically 20 msec) than a clean page that is in heavy use.
- The main attraction of NRU is that it is easy to understand, moderately efficient to implement, and gives a performance that, while certainly not optimal, may be adequate.
Posted by
Sunflower
at
1/14/2010 05:29:00 PM
0
comments
Labels: Algorithms, Not Recently Used, NRU, Page Fault, Page Replacement, pages
|
| Subscribe by Email |
|