My Oracle Support Banner

Solaris 11.3 with kernel zones reporting wrong memory usage in prstat/zonestat command output (Doc ID 2374512.1)

Last updated on MARCH 09, 2021

Applies to:

Solaris Operating System - Version 11.3 to 11.3 [Release 11.0]
Information in this document applies to any platform.

Symptoms

When running zonestat/prstat in the global zones, kernel zones with capped memory setting show's incorrect PhysMem output

# zonestat -z zone1 3 1
Collecting data for first interval...
Interval: 1, Duration: 0:00:03
SUMMARY                      Cpus/Online: 512/51               PhysMem: 1280G     VirtMem: 1791G
                           ----------CPU----------            --PhysMem--         VirtMem--       --PhysNet--
                       ZONE USED %PART  STLN %STLN            USED   %USED        USED %USED       PBYTE %PUSE
                    [total] 25.20 4.92% 0.25  0.04%           1128G   88.1%       1153G 64.3%      7229K 0.03%
                   [system] 0.57  0.11%    -     -            15.9E   100%        1119G 62.4%          -     -
                   zone1    1.48  6.20% 0.00  0.01%           2464G   100%        50.8M 0.00%      583K  0.00%

Notice that the USED is 2464G and the %USED is 100%.
The zone is capped at 154GB.

capped-memory:
physical: 154G <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pagesize-policy: largest-available

If zonestat is collected from within the kernel zone, the values are correct.

# zonestat 3 1
Collecting data for first interval...
Interval: 1, Duration: 0:00:03
SUMMARY                  Cpus/Online: 24/24                      PhysMem: 154G     VirtMem: 307G
                        ----------CPU----------                 --PhysMem--         --VirtMem--    --PhysNet--
                  ZONE  USED  %PART STLN %STLN                  USED %USED          USED %USED      PBYTE %PUSE
               [total]  1.38  5.76% 0.00 0.02%                  49.1G 31.9%         75.6G 24.5%     172K   0.00%
              [system]  0.18  0.79% 0.00 0.02%                  13.9G 9.06%         37.4G 12.1%        -       -
                global  1.19  4.97%    -     -                  35.1G 22.8%         38.2G 12.4%     172K   0.00%

prstat from the global zone showing RSS of 240 G ,when the configured capped memory is only 20 G for the zone2

ZONEID NPROC SWAP  RSS  MEMORY TIME     CPU ZONE
5      2     240G  240G 94%    56:17:35 1.0% zone2 <<<<<<<<<<<<<<<<<<<<<<
0     192    1307M 944M 0.4%   6:35:51  0.1% global

capped-memory:
physical: 20G <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pagesize-policy: largest-available

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.