# Limit number of cores per client

**URL:** <https://discuss.flower.ai/t/limit-number-of-cores-per-client/1149>\
**Category:** General\
**Created:** [December 3, 2025, 6:11pm UTC](https://discuss.flower.ai/t/limit-number-of-cores-per-client/1149 "2025-12-03T18:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahfalco](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@sarahfalco](https://discuss.flower.ai/u/sarahfalco)\
**Post date:** [December 3, 2025, 6:11pm UTC](https://discuss.flower.ai/t/limit-number-of-cores-per-client/1149/1 "2025-12-03T18:11:40Z")

</div>

Hi guys, when I use the flower-authenitcation example that doesn’t use local-simulation how do I limit the number of cores per client? (Write in English

---

<div class="post-metadata">

**Author:** ![javier](https://dub1.discourse-cdn.com/flex013/user_avatar/discuss.flower.ai/javier/32/116_2.png) [@javier](https://discuss.flower.ai/u/javier)\
**Post date:** [December 8, 2025, 12:28pm UTC](https://discuss.flower.ai/t/limit-number-of-cores-per-client/1149/2 "2025-12-08T12:28:02Z")

</div>

Hello @sarahfalco, there is no built-in way to achieve since the `SuperNodes` and the execution of `ClientApps` happen as standard python processes. Therefore, you can use the same techniques to limit CPU utilization as in any other python program. For example, if your `ClientApp` is using PyTorch and you want to limit how much CPU it can use, you. may set something like:

```python
import torch

torch.set_num_threads(1) # Limit intra-op parallelism
torch.set_num_interop_threads(1) # Limit inter-op parallelism

```

But a more general approach would be to use `cgroups` or running your `SuperNodoes` in Docker and limit the resources of each container. These are some ideas, i hope it helps!
