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

does the stat() function call use the inode of the file to generate the information about a file? what is inode mostly used for?

1 Answers   HP,


How to setup display for a remote system?

3 Answers  


what is difference between kernel and shell?

18 Answers   Juniper Networks,


What steps are required to perform a bare-metal recovery?

1 Answers  


What is the difference between a soft link and a hard link?

1 Answers  






How to give root privileges without using SU/sudor ?

1 Answers  


what is the time for incident, problem and change management tickets?

0 Answers   CGI,


Give the command to display space usage on the UNIX file system.

6 Answers  


The UNIX shell is.... a).does not come with the rest of the system b).forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above

2 Answers   IBM,


What are Profilers?

1 Answers   Axis Technologies,


Which is the most commonly used replacement algorithm?

0 Answers   Aditi Placement Service,


What are the events done by the Kernel after a process is being swapped out from the main memory?

0 Answers  


Categories