> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/2.11/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/fpp/2.11/configuration/resource-configuration.md).

# Configuration

After deploying Fast Path Provider (FPP), you can further configure the resource usage.

## Memory configuration

It is advised to have the following resources allocated for VPPSwitch pods for the most common cases:

```yaml
resources:
  cpu: "10"
  hugepages-2Mi: 9Gi
  memory: 2Gi
```

The FPP 1.0 version is recommended to have the following settings:

```yaml
resources:
  cpu: "10"
  hugepages-2Mi: 6Gi
  memory: 6Gi
```

## CPU pinning

By default, FPP relies on [Kubernetes CPU Manager](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/) running in the `static` mode. In this mode, FPP Manager pods use Guaranteed QoS where requests are the same as the limits. As a result, the cpuset cgroup configuration is used to assign cores to the VPP process through `startup.conf`. You can check the cores assigned to the VPP processes in VPP switch pods using the following command:

```bash
cat /var/run/vppswitch/startup.conf
```

The output shows which CPU cores are pinned for the VPP process:

```
cpu {
  main-core 27
  corelist-workers 28,29,30,31
}
```

The output shows that the VPP main thread is pinned to core 27 (`main-core 27`). If not set, the first available core is used. The line `corelist-workers 28,29,30,31` means VPP automatically assigns those CPU cores to worker threads.

### Max CPU cores

Another approach to VPP CPU allocation is to use `vpp.maxCPUCores` without the `isolcpus` kernel parameter. In this case, as in a regular FPP deployment, the Guaranteed QoS class is used for FPP pods so that Kubernetes CPU Manager provides it with a dedicated cpuset. In this case, the FPP pod needs to be assigned more CPU than used for VPP itself, for example, 14:

```yaml
resources:
  cpu: "14"
  hugepages-2Mi: 9Gi
  memory: 2Gi
vpp:
  maxCPUCores: "5"
```

In this case, the FPP pod has 7 physical cores assigned, but only 5 of them will be used for VPP.

```bash
cat /sys/fs/cgroup/cpuset/cpuset.cpus
```

See the output example:

```
1-7,49-55
```

This output lists the CPU cores assigned to the FPP pod by the Kubernetes CPU Manager. In this case, cores 1–7 and 49–55 are allocated to the pod. From these, 5 cores will be used by VPP, as set by `vpp.maxCPUCores: "5"`.

Resulting `startup.conf`:

```sh
cpu {
  main-core 1
  corelist-workers 2,3,4,5
}
```

Cores 6 and 7 will be used by the Linux scheduler to run other processes than VPP, most importantly, kernel threads that are created to serve TAP interfaces (`vhost-<PID>`).
