# Allocatable and Capacitiy resources like nvidia.com/gpu are always same

**URL:** <https://discuss.kubernetes.io/t/allocatable-and-capacitiy-resources-like-nvidia-com-gpu-are-always-same/31584>\
**Category:** General Discussions\
**Created:** [February 13, 2025, 10:12am UTC](https://discuss.kubernetes.io/t/allocatable-and-capacitiy-resources-like-nvidia-com-gpu-are-always-same/31584 "2025-02-13T10:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrCR100](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mrcr100/32/16919_2.png) [@mrCR100](https://discuss.kubernetes.io/u/mrCR100)\
**Post date:** [February 13, 2025, 10:12am UTC](https://discuss.kubernetes.io/t/allocatable-and-capacitiy-resources-like-nvidia-com-gpu-are-always-same/31584/1 "2025-02-13T10:12:32Z")

</div>

Cluster information:  
Client Version: v1.32.1  
Kustomize Version: v5.5.0  
Server Version: v1.32.1  
Kubernetes version: v1.32.1  
Cloud being used: bare-metal  
Installation method: kubeadm  
Host OS: Ubuntu 22.04.5 LTS

When I used the command “kubectl describe node ”, I noticed the following output:

```auto
Capacity:
  cpu: 128
  ephemeral-storage: 459850824Ki
  hugepages-1Gi: 0
  hugepages-2Mi: 0
  memory: 528009664Ki
  nvidia.com/gpu: 8
  pods: 110
Allocatable:
  cpu: 128
  ephemeral-storage: 423798518697
  hugepages-1Gi: 0
  hugepages-2Mi: 0
  memory: 527907264Ki
  nvidia.com/gpu: 8
  pods: 110

```

Acually I have used 5 gpus as showed in the end of the decribe node output:

```auto
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource Requests Limits
  -------- -------- ------
  cpu 1850m (1%) 2 (1%)
  memory 368Mi (0%) 1364Mi (0%)
  ephemeral-storage 0 (0%) 0 (0%)
  hugepages-1Gi 0 (0%) 0 (0%)
  hugepages-2Mi 0 (0%) 0 (0%)
  nvidia.com/gpu 6 6

```

My question is why the value of Allocatable [nvidia.com/gpu](http://nvidia.com/gpu) is not calculated like:  
Capacity gpus minus Allocated gpus?  
So in my case the allocable [nvidia.com/gpu](http://nvidia.com/gpu) should be 2(8-6=2)

I have read the doc

[https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/](https://reserve-compute-resources)

But it didn’t help to the question\*-\*

---

<div class="post-metadata">

**Author:** ![mrCR100](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mrcr100/32/16919_2.png) [@mrCR100](https://discuss.kubernetes.io/u/mrCR100)\
**Post date:** [February 17, 2025, 2:31am UTC](https://discuss.kubernetes.io/t/allocatable-and-capacitiy-resources-like-nvidia-com-gpu-are-always-same/31584/2 "2025-02-17T02:31:50Z")

</div>

I have read the doc

[https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/](https://reserve-compute-resources/)

But it didn’t help to the question\*-\*
