Contents
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….
- Become root.
- Remove the swap space. # /usr/sbin/swap -d /space/swapfile.
- Edit /etc/vfstab and remove the entry of swap file.
- Recover the disk space.
What is swap memory in Solaris?
Oracle Solaris OS software and application software can use some disk space for temporary storage rather than for file systems. The reserved area of the disk is called swap space. Swap space is used as virtual memory storage areas when the system does not have enough physical memory to handle current processes.
How do I check swap utilization?
The procedure to check swap space usage and size in Linux is as follows:
- Open a terminal application.
- To see swap size in Linux, type the command: swapon -s .
- You can also refer to the /proc/swaps file to see swap areas in use on Linux.
- Type free -m to see both your ram and your swap space usage in Linux.
How does Solaris manage virtual memory?
The Solaris 10 OS virtual memory management system maps the files on disk to virtual addresses in virtual memory. The virtual memory management system then translates the virtual addresses into real, physical addresses in physical memory, because programs require instructions or data in these files.
How do I turn swap off?
In simple ways or the other step:
- Run swapoff -a: this will immediately disable the swap.
- Remove any swap entry from /etc/fstab.
- Get the system rebooted. Ok, if the swap is gone.
- Repeat steps 1 and 2 and, after that, use fdisk or parted to delete the (now unused) swap partition.
Why do we need swap space in Solaris?
The need for large amounts of physical swap space is reduced because virtual swap space does not necessarily correspond to physical (disk) storage. A pseudo file system called SWAPFS provides addresses for anonymous memory pages.
How to remove a swap device in Oracle Solaris?
For information on removing a swap device on an active system, see How to Add Swap Space in an Oracle Solaris ZFS Root Environment in Oracle Solaris Administration: Devices and File Systems. If you need more swap space on a system that is already installed and the swap device is busy, just add another swap volume. For example:
How is swap and as / TMP calculated in Solaris?
Solaris uses the memory as /tmp and swap will be calculated along with physical memory. We need to use the right commands to figure out the utilization of both. “top” is one if the best monitoring tool but it’s not inbuilt in Solaris 10.
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.