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 |
does the stat() function call use the inode of the file to generate the information about a file? what is inode mostly used for?
How to setup display for a remote system?
what is difference between kernel and shell?
What steps are required to perform a bare-metal recovery?
What is the difference between a soft link and a hard link?
How to give root privileges without using SU/sudor ?
what is the time for incident, problem and change management tickets?
Give the command to display space usage on the UNIX file system.
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
What are Profilers?
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?