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

If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


How do you execute a UNIX command in the background?

2 Answers  


How do you create special files like named pipes and device files?

1 Answers   Wipro,


What is the difference between internal and external commands?

13 Answers   BPL, DOEACC, Engro, Kuvempu University, NIIT, TCS,


What does init do? What does inetd do?

1 Answers  






How to give root privileges without using SU/sudor ?

1 Answers  


Explain about Inodes?

0 Answers   Amazon,


Explain the read, write, and execute permissions on a UNIX directory.

1 Answers  


What is a FIFO?

2 Answers  


How to remove weird filenames?

1 Answers  


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

0 Answers   BMC,


What does the ?route? command do?

2 Answers  


Categories