The Gateway to Computer Science Excellence
+25 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

in Operating System by Veteran (52.2k points) | 10.1k 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

+51 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.

by Boss (41.9k 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
segmented fault and segmented paging are different๐Ÿ˜‚
0 votes
Option c.
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
50,737 questions
57,315 answers
105,087 users