Results 1 to 2 of 2
Thread: How to enable the swap
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2005
How to enable the swap
I created a swap partition of 512MB .My machine has 1 GB RAM. The swap entry is present in the /etc/fstab file. But when I give mount command the swap partition is not getting mounted. When I give free command or swapon -s command
Filename Type Size Used Priority
/dev/sda2 partition 522104 0 0
How can I enable the swap ?
Does the swap comes into effect only when the system goes out of memory.
to enable swap use:Code:
Swap is used to store multiples of things usually, e.g. if you have 5 emacs open, their will be multible uses of the memory for the same thing, so lets say four of these processes are put in the swap, while the other that's lot is used for all the sessions of emacs. Though when you fill up your RAM, usually the swap space then gets used for a wider range of things.