The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+19 votes

Increasing the RAM of a computer typically improves performance because:

  1. Virtual Memory increases

  2. Larger RAMs are faster

  3. Fewer page faults occur

  4. Fewer segmentation faults occur

asked in Operating System by Veteran (52k points) | 9.2k views
A segmentation fault means a program tried to access an invalid or illegal memory address,it is not related to size of memory .It will be not a valid point.

2 Answers

+44 votes
Best answer

So, answer $\rightarrow $ (C).

  1. Virtual Memory increases $\rightarrow $ This option is false. Because Virtual Memory of Computer do not depend on RAM. Virtual Memory concept iteself was introduced so Programs larger than RAM can be executed.

  2. Larger RAMs are faster $\rightarrow $ No This option is false. Size of ram does not determine it's speed, Type of ram does, SRAM is faster, DRAM is slower.

  3. Fewer page faults occur $\rightarrow $ This is true, more pages can be in Main memory .

  4. Fewer segmentation faults occur  $\rightarrow $ "Segementation Fault" $\rightarrow $ A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core . Segfaults are caused by a program trying to read or write an illegal memory location.  It is clear that segmentation fault is not related to size of main memory. This is false.

answered by Boss (41k points)
edited by
Although I accept that (C) is the best choice but I think that (A) is not completely wrong. Because with more RAM we can afford larger virtual memory size without worrying about thrashing and thus could keep more number of processes in the memory which will increase utilization of CPU and hence its performance.
Whenever you get a segfault you know you are doing something wrong with memory – accessing variable that has already been freed, writing to a read-only portion of the memory, etc.

VM in a system can be increased up to maximum free size available on secondary storage.


then if a referred segment is not present in M.M, then what that condition is called..?

Is it segment fault....?
The size of virtual storage is limited by the addressing scheme of the computer system and amount of secondary memory is available not by the actual number of the main storage locations.
it will increase the physical memory not the virtual one actually
0 votes
Option c.
answered by Active (3.3k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,535 questions
54,122 answers
71,039 users