Articles

What is swap Solaris?

What is swap Solaris?

Swap space is used as virtual memory storage areas when the system does not have enough physical memory to handle current processes. The Oracle Solaris OS uses the concept of virtual swap space, a layer between anonymous memory pages and the physical storage (or disk-backed swap space) that actually back these pages.

Where is swap utilization in Solaris?

The /usr/sbin/swap command is used to manage swap areas. Two options, -l and -s, display information about swap resources. Use the swap -s command to monitor swap resources.

How do I free up swap space in Solaris?

If the user no longer needs the extra swap space, you can remove it.

  1. Become superuser.
  2. Use the swap -d command to remove swap space. /usr/sbin/swap -d /path/filename.
  3. Edit the /etc/vfstab file and delete the entry for the swap file.
  4. Recover the disk space so that you can use it for something else. # rm swap-filename.

How do I reduce swap space in Solaris 11?

In Solaris, there are several methods to adjust the swap space addressing two types of file system – ufs and zfs. The following are my compilation of steps. 2….

  1. Become root.
  2. Remove the swap space. # /usr/sbin/swap -d /space/swapfile.
  3. Edit /etc/vfstab and remove the entry of swap file.
  4. Recover the disk space.

How do you remove swap space in Solaris?

If the swap space is a file, remove it. Or, if the swap space is on a separate slice and you are sure you will not need it again, make a new file system and mount the file system. For information on mounting a file system, see Mounting and Unmounting Oracle Solaris File Systems. Verify that the swap file is no longer available. # swap -l

How do you add a disk partition in Solaris?

After displaying the cumulative report of swap with the swap -s command to verify available space, a disk partition is added as a swap slice to the existing swap space with the swap -a command.

How to check swap usage in Solaris Unix nixcraft?

Solaris Unix supports various command to get the information about swap space. You need to login as root and type the following commands: My website is made possible by displaying online advertisements to my visitors. I get it! Ads are annoying but they help keep this website running.

When to use swap space in a file system?

Swap space is used as virtual memory storage areas when the system does not have enough physical memory to handle current processes. In a ZFS root file system, the disk space reserved for swap is a ZFS volume. The virtual memory system maps physical copies of files on disk to virtual addresses in memory.