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 |
What is virtual memory?
How do you log in to a remote Unix box?
What are Profilers?
does the stat() function call use the inode of the file to generate the information about a file? what is inode mostly used for?
What is the difference between windows environment and Unix environment ?
What is a FIFO?
What is the difference between > and >> operators?
how to set request time out value for name resolution on clients (hp-ux) ?
What is mutex?
Give the command to display space usage on the UNIX file system.
How will you run the script in UNIX?
What is FTP?