# Using Sysctls

Sometimes it is necessary to set specific sysctl settings to improve performance.

There is a mechanism available since kubernetes 1.21 where you can set sysctl values from the pod.securityContext. This can be achieved by setting the `pxc.containerSecurityContext` in the **values-pxc-db.yaml**

```yaml
pxc:
  containerSecurityContext:
    sysctls:
      - name: kernel.msgmax
        value: "65536"
```

> [!WARNING]
>
> It is important that the value is a string.

There are limitations to the sysctls that can be set. See [Kubernetes-Docs](<https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/>)
