Adding Temporary Swap Space in Linux

While trying to update an OLD PC running Smoothwall to fixes 7, I ran into an out of memory problem.  Apparently it's documented somewhere on smoothwall.org that fixes 7 now requires 64MB of RAM.  The thing is that that is not something someone having to install 9 fixes in a row is going to notice.

Anyway, a few Google searches later I found someone with the same problem and a solution: to create temporary swap space in a swapfile.  Pretty easy once you have done it once!

Source: http://www.groupsrv.com/linux/about65123.html

try adding temporary swapspace if you have enough room viz.

dd if=/dev/zero of=/swapfile bs=1024 count=65536
mkswap /swapfile
swapon -a /swapfile
will add 64MB of swap.
When done just 'swapoff /swapfile' put the system back as if was.

Worked for me until my smoothie died.

HTH
Graham
nedaros (dot) nospam (at) gmail(dot)com

Seems to be working fine for me.

Related Scribbles:
  • Smoothwall Notes
  • Linux Commands


  • ID: 794
    Author:
    leonard
    Date Updated:
    2006-10-18 11:27:12
    Date Created:
    2006-10-18 11:27:12

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Adding Temporary Swap Space in Linux
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.