Every Operating System(OS) requires memory in order to run itself and the
programs it includes.Every standard machine comes with some amount of RAM,
Unfortunately the RAM is so expensive and it's imposible to depend only on it.
Modern OS's supports 'virtual memory'. In most OS's the virtual memory is
called swap,Linux(kernel) manages physical\virtual memory by itself ,Usually
it's configured at installation time as an individual partition and the recommended
swap size is twice the RAM amount.Linux(kernel) 2.2.x- and earlier has a swap size
limit of 128 MB, Fortunately, There is no 128 MB limit under linux(kernel) 2.2.x+
and later, There is a limit on the swap size but it's about 2 GB on x86 platforms.
It's possible to run linux without swap BUT it's highly recommended NOT to do that.
root AT lolitta (root) # more /proc/swaps Filename Type Size Used Priority /dev/ide/host0/bus0/target0/lun0/part2 partition 1000432 0 -1
Filename Type Size Used Priority /var/tmp/myswap1 file 1048568 0 -2 /var/tmp/myswap2 file 1048568 0 -3swapon(2) for more details about Priority