Project

General

Profile

Actions

Bug #9729

open

kstat not exposing non-global zone stat counters

Added by A L over 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
2018-08-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

For a lot of modules, kstat in the global zone exposes both the gz stats and the ngz stats. For example:

  1. kstat -p tcp:*:tcp:inAckBytes
    tcp:0:tcp:inAckBytes 2034097154
    tcp:1:tcp:inAckBytes 466042423
    tcp:2:tcp:inAckBytes 1964265266
    tcp:18:tcp:inAckBytes 3669

However the udp module only exposes gz stats:

  1. kstat -p udp:*:udp:inDatagrams
    udp:0:udp:inDatagrams 902624

If we zlogin to a zone and run the same command, we do however get the per-zone kstat:

  1. zlogin 00398784-8bb1-414e-b38d-e5a38927c4ce kstat -p udp:*:udp:inDatagrams
    udp:0:udp:inDatagrams 8458274

This is making stats monitoring rather difficult, as we wish to gather all zone stats via the global zone, without the use of zlogin (which intrudes into customer environments).

Modules that appear to be broken in this way:

ip
udp
icmp
ilb
ipf
ipnet
sctp

Actions

Also available in: Atom PDF