Friday, December 13, 2013

Process Creation on Solaris 10 and Solaris 11 Systems With Certain Kernel Patches Installed May Fail When Using a ZFS Volume as a Swap Device

Description
When a ZFS volume is used as a swap device on a system running Solaris 10 or Solaris 11 with certain kernel patches installed (as identified below), and the system is running out of physical memory, access to swapped out pages may be very slow. In addition, some applications and daemons may fail because they are unable to create new sub processes.

Occurrence
This issue can occur in the following releases:

SPARC Platform:

•Solaris 10 with patch 147440-04 or later OR patch 147147-26
•Solaris 11 through 11.1.12.5.0
x86 Platform:


•Solaris 10 with patch 147441-04 or later OR patch 147148-26
•Solaris 11 through 11.1.12.5.0
Notes:

1.  Solaris 8 and Solaris 9 are not impacted by this issue.

2. Systems are only impacted by this issue if they have a ZFS volume configured as a swap device. To determine if a system is using this configuration, execute the following command:

    # swap -l
    swapfile             dev  swaplo blocks   free
    /dev/dsk/c0d0s1     102,1       8 1076344 1076344
    /dev/zvol/dsk/tank/swap 181,1   8 2097144 2097144
If any line of the output has "/dev/zvol/dsk/" as the prefix, the system may be impacted by this issue.

Symptoms
If the described issue occurs, some memory or process management system calls may fail. Error messages such as "Resource temporarily unavailable" or "Unable to fork" may be seen:

    bash: fork: Resource temporarily unavailable
OR:
   dmake: Fatal error: Could not fork child process for dmake job: Resource temporarily unavailableThis list is not exhaustive and other error messages may be seen.

Workaround
To avoid this issue, configure the system to use a raw swap partition instead of swapping to a ZFS volume.

If this issue has already occurred, it will be necessary to reduce the system load. Once the load is reduced, it is possible to remove the ZFS swap volume and configure a raw swap partition instead.

Binary relief for this issue is available via the normal support channels.



This issue is addressed in the following releases:

SPARC Platform:

•Solaris 11.1.13.6.0 or later
x86 Platform:


•Solaris 11.1.13.6.0 or later
Note: The resolution to the issue described in this document for bug 15808754 introduces a new issue which is described in Sun Alert 1605130.1

No comments:

Post a Comment