1,712 views
1 votes
1 votes
Which of the following is true?

A. If the page size increases page fault rate may also increase.

B. Multi-level paging optimizes program execution time.

C. Dynamic linking increases program execution time.Correct Option

D. TLB is a software data structure.

2 Answers

4 votes
4 votes
Option A) If the page size is increased then we can load more data into RAM at the given time hence page fault will decrease ..

Option B) Multi level paging does not optimizes execution time ... rather program execution time increases .. because we have to resolve page at level 1 then level 2 then level 3 ..like that so for reaching the actual page ..we consume more time so definatley program execution will consume more time.

C)In dynamic linking we will fetch the module at run time itself ..so it will consume more time to find the required data then to load it and to access it .. so it increases our program execution time .. WHICH IS CORRECT option..

D)TLB is not a software ..its a high speed hardware chip which is use to minimize the dealy for finding the FRAME number in very less time ..without TLB we may need 2 access of RAM (one for finding page address and one for actual page) so if RAM access time is M we need 2*M in absence of TLB...but if TLB is there it will have corresponding page number and Frame number ...so we will need one access for finding frame number and other to access actual page ..For TBL access time is very very less say K..

so in TLB we have access time for page is (K+M)..which is very very less than 2*M

 

So correct option is C only..
0 votes
0 votes

Reson for Option –  A 

lets say you have a process with a total memory footprint of (9*1024KB + 100KB) (text, data, stack, heap), And you use 1024KB as page size, there will be 10 page faults on behalf of the process throughout its execution.

Instead of 1024KB you now use page 10240KB (10 times previous size), now throughout the process life time there will be only 1 page fault. Although you save time spent for all those page faults, you are spending more time in swapping this really big page from swap space to main memory, as there will be other processes contending for space on main memory

Related questions

0 votes
0 votes
0 answers
1
2 votes
2 votes
0 answers
2
2 votes
2 votes
1 answer
3
3lurryface asked Jan 9, 2019
1,052 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
1 votes
1 votes
1 answer
4
Na462 asked Sep 29, 2018
685 views