Originally Posted by ceantuco
I think what the problem is that he doesn't have a swap space.
... but how can I tell the system to permanently use that space?
If you have a reasonably recent set of hardware with 2-4 GB RAM,
it is entirely possible that you won't use swap space even if you
I have 4 GB of RAM with a 4GB swap partition. In two years, it has never been used that I'm aware of. I'm not running a huge "load average" or 1000 processes so everything stays in RAM.
I think that swap space gets used for suspend and hibernate and similar operations under some circumstances. After all, it is an on disk scratch pad that the kernel controls for its exclusive use.
A hundred and eleven years ago, IBM did research that reported "... virtual memory systems run best with large amounts of physical memory ..." RAM is cheap and fast. Disk is cheap and slow[er]. Add RAM and forget swap.
If anyone can point out a good clear explanation of when and why a linux workstation (not server) needs swap space, I'd love to see the details. Real servers are another matter.