> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.14/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.14/kpi.md).

# KPIs

This document presents resource requirements and KPIs measured for SMC deployments.

## Resource requirements

CPU usage of SMC does not directly depend on the number of sessions.
CPU is needed only when processing changes to sessions. If the frequency
of changes is higher, more CPU is required.

* SMC CPU usage to create 100 requests/second (200 TPS): 0.2 CPU
* SMC CPU usage to create 200 requests/second (400 TPS): 0.7 CPU
* SMC CPU usage to create and delete 350 requests/second (700 TPS): 1 CPU
* SMC CPU usage to create and delete 850 requests/second (1700 TPS): 2 CPU

The amount of RAM needed for SMC depends on the number of sessions:

* SMC memory usage for 50k sessions: 1.1 Gb
* SMC memory usage for 100k sessions: 2.0 Gb
* SMC memory usage for 150k sessions: 2.9 Gb
* SMC memory usage for 200k sessions: 3.7 Gb

The following sections contain the characteristics for stability and
the maximum rate for SMC in the PGW and TDF use cases.

## Environment configuration

The next sections use the following environment configuration:

![SCG Setup](https://docs.cennso.com/api/assets/components/smc/3.14/assets/pcg-scg.svg)

Software versions:

- SMC: 3.4.0
- UPG: 2.0.0

SUT (System Under Test Node):

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

Generator Node:

- CPU: Intel Xeon Platinum 8260 CPU, 2.40GHz, 96 threads (2 sockets, 24 cores per socket)
- RAM: 128 GB
- Network Interface: Intel X710-T4, 10Gbps, Intel XL710, IOMMU enabled

The tests include the various number of Create Session Requests (CSR) and Delete Session Requests (DSR)
rates that generate load on SMC and related AAA interfaces.

## Stability

The stability figures were obtained in the following test configuration:

* UDP Sessions: 250000 sessions
* TCP Sessions: 1000 sessions
* CSR-DSR Rate 250
  * PGW use case handles 250 CSR, 250 DSR (GTPv2)
  * TDF use case handles 1000 CCR (Gx/Gy), 500 ACR, 250 AAR, 250 ASR, 250 STR (NASREQ)
* UDP Download Traffic
  * Min Packet Payload Size: 1000 Bytes
  * Max Packet Payload Size: 1250 Bytes
  * Target throughput: 3200 Mbit/s
* UDP Upload Traffic Pattern
  * Min Packet Payload Size: 150 Bytes
  * Max Packet Payload Size: 400 Bytes
  * Target throughput: 800 Mbit/s
* Duration: ~14h

| **Item** | **PGW** | **TDF** |
|---|---:|---:|
| CPU usage | 378.61% | 411.90% |
| RAM usage | 7.84 GiB | 10.38 GiB |

## Maximum capacity

The maximum rate was measured in the following test configuration:

* UDP Sessions: 100000 sessions, 50000 active at the same time
* CSR-DSR Rate from 250 to 2000, increasing
* UDP Download and Upload Traffic Pattern
  * Min Packet Payload Size: 1000 Bytes
  * Max Packet Payload Size: 1250 Bytes
  * Target packet rate: 5kpps
* Duration: ~1h

| **Item** | **PGW** | **TDF** |
|---|---:|---:|
| Maximum rate | 1360 CSR/DSR | 1220 sessions |
| CPU usage at max rate | 1236.66% | 1257.23% |
| RAM usage at max rate | 3.52 GiB | 5.55 GiB |
| First instability rate | 1100 CSR/DSR | 1100 sessions |
| CPU usage at first instability rate | 1152.00% | 1205.05% |
| RAM usage at first instability rate | 3.40 GiB | 2.74 GiB |
| Safe rate | 900 CSR/DSR | 900 sessions |
| CPU usage at safe rate | 940.02% | 1140.21% |
| RAM usage at safe rate | 3.28 GiB | 2.49 GiB |
