> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cgroup Limit Mb • AI Agent SDK

> cgroup_limit_mb: Return the container memory limit in MiB, or ``None`` if unknown.

# cgroup\_limit\_mb

Method

> This is a method of the [**MemoryPressureProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/MemoryPressureProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Return the container memory limit in MiB, or `None` if unknown.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def cgroup_limit_mb() -> Optional[float]
```

### Returns

**Returns** `Optional[float]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L4940)
>
> `praisonaiagents/gateway/protocols.py` at line 4940


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.