Prstat Incorrectly Counts Shared Memory Multiple Times on Solaris 11 (Doc ID 1573317.1)

Last updated on AUGUST 09, 2016

Applies to:

Solaris Operating System - Version 11 to 11.1 [Release 11.0]
Information in this document applies to any platform.
***Checked for relevance on 09-Aug-2016***

Symptoms

When prstat is used with any of -a, -T, -J, -Z, the shared memory is counted multiple times, then accumulated SWAP aand RSS size is wrongly reported.
In the below example, prstat reports 12G memory is used by user 'test' in total, although 6 processes share a 2G shared memory segment and the actual usage is around 2G.

This issue happens with Solaris 11.0 and Solaris 11.1.

Changes

 With Solaris 10 Update 4 and later, prstat counts shared memory only once. But due to another bug fix, the feature was broken with Solaris 11.0.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms