Recent questions tagged virtual-memory

451
views
0 answers
0 votes
Virtual memory provides a mechanism for isolating one process from another. What memory management difficulties would be involved in allowing two operating systems to run concurrently? How might these difficulties be addressed?
476
views
1 answers
0 votes
Can you think of any situations where supporting virtual memory would be a bad idea, and what would be gained by not having to support virtual memory? Explain.
547
views
0 answers
0 votes
A computer with an $8-KB$ page, a $256-KB$ main memory, and a $64-GB$ virtual address space uses an inverted page table to implement its virtual memory. How big ... length of less than $1?$ Assume that the hash table size is a power of two.
743
views
2 answers
1 votes
You are given the following data about a virtual memory system:The $TLB$ can hold $1024$ entries and can be accessed in $1$ clock cycle $(1\: nsec).$ A ... only $0.01\%$ lead to a page fault, what is the effective address-translation time?
1.2k
views
2 answers
0 votes
The amount of disk space that must be available for page storage is related to the maximum number of processes$,\: n,$ the number of bytes in the ... an expression for the worst-case disk-space requirements. How realistic is this amount?
395
views
1 answers
0 votes
What kind of hardware support is needed for a paged virtual memory to work?
356
views
0 answers
0 votes
The Intel $8086$ processor did not have an MMU or support virtual memory. Nevertheless, some companies sold systems that contained an unmodified $8086$ CPU and did ... they did it. (Hint: Think about the logical location of the MMU.)
628
views
0 answers
1 votes
Using the page table of Fig. $3-9,$ give the physical address corresponding to each of the following virtual addresses:$20$4100$8300$
378
views
0 answers
0 votes
For each of the following decimal virtual addresses, compute the virtual page number and offset for a $4-KB$ page and for an $8 KB$ page$:20000, 32768, 60000.$
516
views
1 answers
1 votes
What is the difference between a physical address and a virtual address?
1.9k
views
2 answers
0 votes
Consider a computer system that has cache memory, main memory (RAM) and disk, and an operating system that uses virtual memory. It takes $1$ nsec to access a word from ... a cache miss) is $99\%$, what is the average time to access a word?
1.2k
views
1 answers
3 votes
To calculate EMAT in case of page fault we used:EMAT= page fault rate*(page fault service time) + (1-page fault rate)*(memory access time) ... time. Then why not we consider address translation time in questions involving only pagefault?
2.0k
views
1 answers
3 votes
The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined bypage sizephysical size of memorythe instruction set architecturenumber of processes in memory
559
views
1 answers
0 votes
Which part of the process image forms the logical address space that is used in paging?
338
views
0 answers
0 votes
The slab-allocation algorithm uses a separate cache for each different object type. Assuming there is one cache per object type, explain why this scheme doesn ... with multiple CPUs. What could be done to address this scalability issue?
1.4k
views
1 answers
0 votes
Consider the parameter$\triangle$ used to define the working-set window in the working-set model. When $\triangle$ is set to a small value, what is the effect on the ... ? What is the effect when $\triangle$ is set to a very high value ?
1.1k
views
1 answers
1 votes
Is it possible for a process to have two working sets, one representing data and another representing code ? Explain.
5.6k
views
1 answers
0 votes
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 ?
552
views
0 answers
0 votes
Consider a demand-paging system with a paging disk that has an average access and transfer time of $20$ milliseconds. Addresses are translated through a page ... of the total) cause page faults. What is the effective memory access time?
942
views
0 answers
1 votes
A page-replacement algorithm should minimize the number of page faults. We can achieve this minimization by distributing heavily used pages evenly over all of memory, ... strategy for the reference string in part $b$ with four page frames?
1.3k
views
1 answers
0 votes
Suppose that your replacement policy (in a paged system) is to examine each page regularly and to discard that page if it has not been used since the ... would you lose by using this policy rather than LRU or second-chance replacement ?
454
views
0 answers
0 votes
Suppose that a machine provides instructions that can access memory locations using the one-level indirect addressing scheme. What sequence of page faults is ... frame allocation technique and only two pages are allocated to this process ?
244
views
0 answers
0 votes
Consider a demand-paging system with the following time-measured utilizations: $CPU$ ... hard disks.$g$. Add prepaging to the page-fetch algorithms.$h$. Increase the page size.
435
views
0 answers
0 votes
The VAX/VMS system uses a FIFO replacement algorithm for resident pages and a free-frame pool of recently used pages. Assume that the free-frame pool is managed ... degenerate to if the number of pages in the free-frame pool is zero?
1.2k
views
1 answers
0 votes
Discuss situations in which the most frequently used ($MFU$) page replacement algorithm generates fewer page faults than the least recently used ($LRU$) page-replacement algorithm. Also discuss under what circumstances the opposite holds.
552
views
1 answers
0 votes
Discuss situations in which the least frequently used ($LFU$) page replacement algorithm generates fewer page faults than the least recently used ($LRU$) page-replacement algorithm. Also discuss under what circumstances the opposite holds.
399
views
0 answers
0 votes
Assume that you are monitoring the rate at which the pointer in the clock algorithm moves. (The pointer indicates the candidate page for replacement.) What can you say ... behavior:$a$. Pointer is moving fast.$b$. Pointer is moving slow.
5.1k
views
1 answers
0 votes
Consider the following page reference string:$7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0 , 1.$Assuming demand ... following replacement algorithms ?$ $ $LRU$ $replacement$ $ $FIFO$ $replacement$ $ $Optimal$ $replacement$
920
views
0 answers
1 votes
When a page fault occurs, the process requesting the page must block while waiting for the page to be brought from disk into physical memory. Assume that there ... also have to wait for the faulting page to be brought into memory? Explain.
322
views
1 answers
0 votes
Assume that we have a demand-paged memory. The page table is held in registers. It takes $8$ milliseconds to service a page fault if an empty frame is ... page-fault rate for an effective access time of no more than $200$ nanoseconds ?