What we call the swap partition is a partition that is specially prepared for the virtual memory system on the hard disk (external memory), which uses the swap file system, which is the same file system as the EXT2/EXT3/JFFS2 in peace.
physical memory is relatively small compared to virtual memory space. At some point, to access certain areas of virtual memory, the content in those areas must be mapped in physical memory.
sometimes physical memory is already stuffed with data, at this point, you need to access other areas of virtual memory that are not mapped, this time there will be page exchange, that is, the physical memory of the contents of certain pages, first taken out, save to the external memory, here is saved to the swap partition, Space is vacated in such physical memory for mapping.
more knowledge, please also go to the Juliantec website surfing ....
It may be misleading to say that Linux swap partitions are equivalent to virtual memory in Windows. Windows and Linux, as multitasking operating systems, implement virtual memory technology. The key to realizing virtual memory is the support of external memory, Linux takes a full partition of external memory to exchange, and Windows uses virtual memory file to Exchange. The two principles are consistent, but Linux is better, more effective, easier to achieve the disk on different sides of the disk arm concurrency.