What is the swap space in the disk used for?
Saving temporary html pages
Saving process data
Storing the super-block
Storing device drivers
Hi @sandeep007734 ji,
How is "low memory" situation handled in Android when swapping is disabled. Cloud you please provide some reference ?
An interesting, though old, read here: https://zerocredibility.wordpress.com/2009/08/24/why-android-swap-doesnt-make-sense/
Main points why SWAP does not make sense in Android:
1. In Desktop environment, swap space is used when the OS is running out of physical memory and it decides to use a small of part of HDD to act as slow memory. In desktop, there are many ideal processes and the eviction policy to swap will move their pages to swap. This results in marginally degraded performance which users hardly notice. However, in Android, most of the processes are active and hence the user will notice the difference.
2. SD card are very very slow (https://blog.hellotech.com/portable-hard-drives-flash-ssd-sd/) compared to HDD and hence the SWAP performance wil be very poor.
So, in Android if the OS runs out of memory it just kills the process. However, it notifies the process that it is about to be killed (using callback methods) and it should save important data to persistent memory.
Swap space is a portion of a hard disk drive (HDD) that is used for virtual memory. Virtual memory is the use of space on a HDD to simulate additional main memory. Memory is used to hold portions of the operating system, programs, and data that are currently in use.
Show answer is B because of process save program, data in virtual memory.
Swapping is now combine with virtual memory technique. In fact some system now use paging and swapping interchangeably.
Virtual memory uses disk space as an extension of main memory. Since disk access is much slower than memory access, using swap space significantly decreases system performance. The main goal of swap space is to provide best throughput for the virtual memory system.
So, A,C,D ruled out
Ans B) better option than other three
Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.
If "Rounded to the nearest integer" is the ...