> ## 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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**MemoryPressureProtocol**](../classes/MemoryPressureProtocol) class in the [**protocols**](../modules/protocols) 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

<ResponseField name="Returns" type="Optional[float]">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3514">
  `praisonaiagents/gateway/protocols.py` at line 3514
</Card>
