Difference between revisions of "Swap"

From WA2IAC Wiki
Jump to: navigation, search
m (Where should I set this up?)
m
 
Line 4: Line 4:
  
 
Some applications will require swap to run. Other than that, you don't need swap until you need it. If you don't have it when you need it, "bad things will happen" (TM). It will be too late then, and you'll be having a production emergency of some sort. Better to have some swap. One solution that is often favored because performance is seen as an issue is to use a ramdisk or something of the sort. However, if you've got enough memory and are in the "I don't need swap" camp, then what do you care? Set up your emergency stash of swap on disk. Just sayin'.
 
Some applications will require swap to run. Other than that, you don't need swap until you need it. If you don't have it when you need it, "bad things will happen" (TM). It will be too late then, and you'll be having a production emergency of some sort. Better to have some swap. One solution that is often favored because performance is seen as an issue is to use a ramdisk or something of the sort. However, if you've got enough memory and are in the "I don't need swap" camp, then what do you care? Set up your emergency stash of swap on disk. Just sayin'.
 +
 +
If you're in a hurry, a noob, or have a similar problem, you can stop reading after the "swapon" section cookbook recipe. The rest is geared to Amazon AWS EC2.
  
  

Latest revision as of 20:29, 3 March 2015