in Operating System recategorized by
25,792 views
65 votes
65 votes

A computer system supports $32$-bit virtual addresses as well as $32$-bit physical addresses. Since the virtual address space is of the same size as the physical address space, the operating system designers decide to get rid of the virtual memory entirely. Which one of the following is true?

  1. Efficient implementation of multi-user support is no longer possible
  2. The processor cache organization can be made more efficient now
  3. Hardware support for memory management is no longer needed
  4. CPU scheduling can be made more efficient now
in Operating System recategorized by
25.8k views

4 Comments

@ Swap space on disk can be used without virtual memory.

1
1

Virtual memory isn’t just a combination of swap space and main memory. It is an interface that allows for many more facilities as mentioned in the answers and comments of https://gateoverflow.in/1488/gate-cse-1999-question-2-10https://gateoverflow.in/701/gate-cse-2001-question-1-8 and https://gateoverflow.in/1841/gate-cse-2006-question-63-ugcnet-june2012-iii-45. It’s just that one way of implementing VM is through a conjunction of main memory and swap space, and other hardware and/or software techniques. But, without VM too, we can take advantages of techniques like standard swapping/swapping (moving entire processes to and fro swap space when in paucity of physical memory), swapping with paging/paging (moving process pages instead of entire processes to and fro swap space when in paucity of physical memory), page tables, segmentation, etc. They are like individual dishes that a restaurant (OS) is serving, whereas VM is a combo pack.

Ref. – Operating System Concepts (10th edition, Section 9.5.)

P.S. Paging also refers to ‘a memory-management scheme that permits a process’ physical address space to be non-contiguous’, along with the one mentioned above. So, one should derive the meaning of the word based on the context it’s used in.

1
1
what was the gate answer for this question...
0
0

6 Answers

99 votes
99 votes
Best answer

A is the best answer here.

Virtual memory provides

  1. increased address space for processes
  2. memory protection
  3. relocation 

So, when we don't need more address space, even if we get rid of virtual memory, we need hardware support for the other two. Without hardware support for memory protection and relocation, we can design a system (by either doing them in software or by partitioning the memory for different users) but those are highly inefficient mechanisms. i.e., there we have to divide the physical memory equally among all users and this limits the memory usage per user and also restricts the maximum number of users.

edited by
by

4 Comments

@arjun sir if msq than a c both will be correct right
1
1

@Arjun sir, if these type of questions comes in exam then what should we do?...leave this

0
0
Why leave? Isn't the answer explained here?
1
1
7 votes
7 votes
If there is no Virtual memory ,we cannot increase the degree of multiprogramming. so Option A)
by

4 Comments

We are removing concept of VM not the HDD where all the programs stored So who are claiming that every thing will be in main memory are wrong since suppose if you need to load another process whose program is in HDD How would you loaded without HW support.
0
0

here the question is about Hardware support for memory management. Not to load a program.... Loading a program into memory without hardware support doesn't make any sense...  I.e. to make effective use of available memory using memory management techniques like demand paging... If virtual memory is not available then we don't have the advantage to run multiple programs simultaneously. But we can run programs using basic techniques like contiguous allocation, non contiguous allocation, paging and segmentation... This makes Efficient implementation of multi-user support is no longer possible would be the appropriate choice here....

1
1

vamsi2376 where did u get this?

0
0
2 votes
2 votes
Page 348 Stallings 6th edition

In simple paging, processor uses page number, offset to calculate absolute address.

Hence, A.
0 votes
0 votes
answer c is correct because the hardware support  for virtual memory mapping to physical memory are registers required for page table implementation basically PBTR  register and  TLB for caching the pages, now because the concept of virtual memory is removed hence no hardware components are required.

2 Comments

without virtual addressing we can do sharing of memory???
1
1
But hardware support also required in contiguous memory  allocation as well as paging not only virtual memory right
So A is best answer
0
0
Answer:

Related questions