afzal

Sunday, January 23, 2011

Clear Swap Space in Linux

There have been times where it has been necessary for UNIX Admins to clear out the swap space on a Linux system. In order to do this, you must first make sure that you have enough free memory to hold what is being used by swap.


First we want to see what is currently being used.

free

Then I run the actual commands that empty the swap:

swapoff -a

free

swapon -a

Then I check what is being used after doing this.

free
Posted by Afzal at 6:24 AM
Newer Post Older Post Home

Blog Archive

  • ▼  2011 (28)
    • ►  September (5)
    • ►  August (1)
    • ►  May (1)
    • ►  February (1)
    • ▼  January (20)
      • Recreate the OraInventory
      • SQL*Plus command line history completion
      • Redhat Package Management (RPM)
      • IPTables in Linux
      • Server Status & Health Check in Linux
      • Linux Booting Process Sequence
      • Disable SSH root login
      • Delete old log files in Linux
      • Reinstall Grub in Linux
      • Changing hostname without rebooting Linux server
      • Backup and Recovery in Linux using dd command
      • Enable cron for a locked account in Linux
      • Finding BIOS version in Linux Servers
      • NOHUP : Run command continiously even if session c...
      • Moving volume group to another Server in Linux
      • CLEANING UP THE LINUX BUFFER CACHE
      • Clear Swap Space in Linux
      • Find RPM packages installed on particular date
      • Configuring Network Bonding in Linux
      • Yahooooooo! in Outlook
  • ►  2010 (7)
    • ►  September (1)
    • ►  July (4)
    • ►  June (2)
  • ►  2009 (1)
    • ►  October (1)

About Me

My photo
Afzal
View my complete profile
Watermark theme. Powered by Blogger.