GATE CS Memory Management and Virtual Memory questions
Practise Memory Management and Virtual Memory questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
A system has a Translation Lookaside Buffer (TLB) that has a reach of MB. TLB reach is defined as the total amount of physical memory that can be accessed through the TLB entries. The paging system uses pages of size KB. The virtual address space is GB and physical address space is GB. If each TLB entry stores a -bit process id, …
Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are holes in the memory of sizes , , and KB. Assume that no two holes are adjacent. Two processes of …
Consider a demand paging memory management system with -bit logical address, -bit physical address, and page size of bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?
In optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replacement algorithm is as follows: The OS correctly predicts only up to next page references (including the current page) at the time of allocating a frame to a page. A process accesses the …
A computer system supports a logical address space of bytes. It uses two-level hierarchical paging with a page size of bytes. A logical address is divided into a -bit index to the outer page table, an offset within the page of the inner page table, and an offset within the desired page. Each entry of the inner page table uses eight …
Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2 . The contents of the frames are as follows initially and after each reference (from left to right): …
Consider a memory management system that uses a page size of . Assume that both the physical and virtual addresses start from . Assume that the pages , and are stored in the page frames , and , respectively. The physical address (in decimal format) corresponding to the virtual address (in decimal …
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit in a system with paging-based memory management?
Consider a -bit system with page size and page table entries of size bytes each. Assume bytes. The OS uses a -level page table for memory management, with the page table containing an outer page directory and an inner page table. The allocates a page for the outer page directory upon …
Consider a computer system with -bit virtual addressing using multi-level tree-structured page tables with levels for virtual to physical address translation. The page size is and a page table entry at any of the levels occupies bytes. The value of is …
Consider the following two-dimensional array in the programming language, which is stored in row-major order: int D[128][128]; Demand paging is used for allocating memory and each physical page frame holds elements of the array The Least Recently Used page-replacement policy is used by the …
Which one of the following statements is
Consider a demand paging system with four page frames (initially empty) and page replacement policy. For the following page reference string the page fault rate, defined as the ratio of number of page faults to the number of memory accesses is …
In the context of operating systems, which of the following statements is/are correct with respect to paging?
Consider a three-level page table to translate a bit virtual address to a physical address as shown below: The page size is bytes and page table entry size at every level is bytes. A process is currently using bytes virtual memory which is mapped to …
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statement is TRUE?
Consider a paging system that uses -level page table residing in main memory and a for address translation. Each main memory access takes ns and lookup takes ns. Each page transfer to/from the disk takes ns. Assume that the hit ratio is , page fault rate is . …
Assume that in a certain computer, the virtual addresses are bits long and the physical addresses are bits long. The memory is word addressible. The page size is kB and the word size is bytes. The Translation Look-aside Buffer (TLB) in the address translation path has valid entries. At most how many distinct virtual …
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is units if the corresponding memory page is available in memory, and units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is …
Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements: : Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly. : LRU page replacement algorithm suffers from Belady's anomaly. Which of the …
