CpuStats

CpuStats
CpuStats

Provides the following CPU stats for a given core:

  • Core ID.
  • CPU type.
  • Number of packets sent and received per second on the core for the last 100ms.
  • Number of packets received per second from the crypto module, the KNI interface, the slowpath threads and the other cores within the last 100ms.
  • Statistics of the mega flow cache which holds flow cache key and the corresponding flow cache actions for all the entries. The counts are from the time the edge dataplane is UP and will be reset on edge reboot or edge dataplane restart.
  • Statistics of the micro flow cache which holds a hash of the entire flow cache key and a pointer to the mega flow cache entry. The counts are from the time the edge dataplane is UP and will be reset on edge reboot or edge dataplane restart.
  • Percentage of live CPU utilization of the core sampled within the last 60 seconds.
  • Percentage of CPU utilization of the core for actual packet processing for the last 100ms.
JSON Example
{
    "core": "string",
    "cpu_type": "string",
    "crypto": "string",
    "intercore": "string",
    "kni": "string",
    "mega_flowcachestats": {
        "active": "string",
        "bucket_collisions": "string",
        "dont_cache": "string",
        "hit_rate": "string",
        "hits": "string",
        "insertions": "string",
        "key_collisions": "string",
        "max_seen_percentage": "string",
        "misses": "string",
        "skipped": "string"
    },
    "micro_flowcachestats": {
        "active": "string",
        "bucket_collisions": "string",
        "dont_cache": "string",
        "hit_rate": "string",
        "hits": "string",
        "insertions": "string",
        "key_collisions": "string",
        "max_seen_percentage": "string",
        "misses": "string",
        "skipped": "string"
    },
    "packet_processing_usage": "string",
    "rx": "string",
    "slowpath": "string",
    "tx": "string",
    "usage": "string"
}
string
core
Optional

CPU id

string
cpu_type
Optional
Constraints: default: controlpath_core

cpu type, one of datapath_core, controlpath_core and service_core

Possible values are : datapath_core, controlpath_core, service_core,
string
crypto
Optional

The total number of packets per second (pps) received from the crypto module for the last 100ms.

string
intercore
Optional

The total number of packets per second (pps) received from other cores for the last 100ms.

string
kni
Optional

The total number of packets per second (pps) received from Linux KNI interface for the last 100ms.

mega_flowcachestats
Optional

Provides the following statistics for flow cache since the time the edge dataplane is UP:

  • Number of active entries.
  • Number of cache entry insertions.
  • Number of bucket collisions when the entry insertion happens to a bucket which is full.
  • Number of key collisions when the entry to be inserted has a key colliding with that of an existing entry.
  • Number of cache hits, hit_rate, misses and skips.
  • Number of packets that cannot be cached.
  • Number of maximum entries with respect to size.
micro_flowcachestats
Optional

Provides the following statistics for flow cache since the time the edge dataplane is UP:

  • Number of active entries.
  • Number of cache entry insertions.
  • Number of bucket collisions when the entry insertion happens to a bucket which is full.
  • Number of key collisions when the entry to be inserted has a key colliding with that of an existing entry.
  • Number of cache hits, hit_rate, misses and skips.
  • Number of packets that cannot be cached.
  • Number of maximum entries with respect to size.
string
packet_processing_usage
Optional

Provides the percentage of CPU utilization of the core on actual packet processing for the last 100ms. It is percentage of busy cycles vs. total cycles, where busy cycles are the cycles spent in a poll round where at least one packet was received.

string
rx
Optional

The total number of packets per second (pps) received from NICs for the last 100ms.

string
slowpath
Optional

The total number of packets per second (pps) received from slowpath threads for the last 100ms.

string
tx
Optional

The total number of packets per second (pps) transmitted from NICs for the last 100ms. This also includes the packets dropped due to Tx ring full.

string
usage
Optional

Provides the percentage of live CPU utilisation of the core sampled within the last 60 seconds.