why do you need to have a swap file system?



why do you need to have a swap file system?..

Answer / monu verma

Linux systems run better with a swap file, even when you
have plenty of RAM. The technical reason is that it's
sometimes easier to swap out "dirty" data than it is to
write it to peoperly to the disk.

In general, Linux will fill up as much of your memory as it
can, in the hope that those little bits might be needed. You
might as well use it (RAM). You paid for it. If it's all
filled up, then at some point, you're going to have to free
some of it up.

Data may be sitting around in RAM waiting to be written to
disk in an efficient and orderly process. This is called
"dirty" data. Sometimes, just because of the way it works,
it's faster and easier to leave the "dirty data" in memory,
but transfer it to swap, thereby freeing physical RAM.
Ideally, it would be best to just free it from RAM entirely,
but this gives the kernel another option.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Unix AllOther Interview Questions

What is ant_build.sh? Have u seen that file?

0 Answers   BMC,


What are the processes that are not bothered by the swapper? Give Reason.

1 Answers  


which is the best book for learning unix and linux?

6 Answers  


hi.when will u come to klnce 4 campus interviews??/

0 Answers  


How are devices represented in UNIX?

2 Answers  






What are Profilers?

1 Answers   Axis Technologies,


process id for kernell process?

4 Answers   TCS,


What do you mean by nice value?

4 Answers  


i am prepairing for 2+ yrs exp in oracle/unix production support,can u tell me which type issue comes in server plz help

0 Answers   Crimson Logic,


how can you say that unix operating system provides more security than other operating systems.

1 Answers  


How to set Windows as Default OS when Dual Booting Ubuntu?

1 Answers  


How to recover a system whose root password has lost?

5 Answers   SoftNet,


Categories