In this section:

NUMA Locality of the CPU Allocated to the Container

[root@vsbc1 ~]# cat /sys/fs/cgroup/cpuset/cpuset.cpus
11-12,63-64
[root@vsbc1 ~]#


Node available CPUs

[root@vsbc1 ~]# lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 48 bits virtual
CPU(s):                          104
On-line CPU(s) list:             0-103
Thread(s) per core:              2
Core(s) per socket:              26
Socket(s):                       2
NUMA node(s):                    2
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           85
Model name:                      Intel(R) Xeon(R) Gold 6230R CPU @ 2.10GHz
Stepping:                        7
CPU MHz:                         3000.000
BogoMIPS:                        4200.00
Virtualization:                  VT-x
L1d cache:                       1.6 MiB
L1i cache:                       1.6 MiB
L2 cache:                        52 MiB
L3 cache:                        71.5 MiB
NUMA node0 CPU(s):               0-25,52-77 <-------------------------------------------- vCPUs from NUMA 0
NUMA node1 CPU(s):               26-51,78-103 <------------------------------------------ vCPUs from NUMA 1
Vulnerability Itlb multihit:     KVM: Mitigation: VMX disabled
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Vulnerable
Vulnerability Retbleed:          Vulnerable
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers
Vulnerability Spectre v2:        Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Vulnerable
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; TSX disabled
Flags:                           

fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority 

ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear flush_l1d arch_capabilities
[root@vsbc1 ~]#

NUMA Locality of Memory Allocated to the Container

[root@vsbc1 ~]# cat /sys/fs/cgroup/memory/memory.numa_stat
total=1036631 N0=1036631 N1=0
file=336510 N0=336510 N1=0
anon=667062 N0=667062 N1=0
unevictable=33059 N0=33059 N1=0
hierarchical_total=1036631 N0=1036631 N1=0
hierarchical_file=336510 N0=336510 N1=0
hierarchical_anon=667062 N0=667062 N1=0
hierarchical_unevictable=33059 N0=33059 N1=0
[root@vsbc1 ~]#
 
N0 - NUMA 0
N1 - NUMA 1


NUMA Locality of the Hugepages Allocated to the Container

[root@vsbc1 ~]# cat /sys/fs/cgroup/hugetlb/hugetlb.1GB.numa_stat
total=3221225472 N0=3221225472 N1=0
hierarchical_total=3221225472 N0=3221225472 N1=0
[root@vsbc1 ~]#
 
N0 - NUMA 0
N1 - NUMA 1


If a single pod is launched on a node that had requested for hugepages, then the following command can also be run to get the info on the hugepage allocation.

[root@vsbc1 ~]# cat /sys/devices/system/node/node*/meminfo | fgrep Huge
Node 0 AnonHugePages:    395264 kB
Node 0 ShmemHugePages:        0 kB
Node 0 FileHugePages:        0 kB
Node 0 HugePages_Total:    64 <-----------
Node 0 HugePages_Free:     50 <-----------
Node 0 HugePages_Surp:      0
 
Node 1 AnonHugePages:     55296 kB
Node 1 ShmemHugePages:        0 kB
Node 1 FileHugePages:        0 kB
Node 1 HugePages_Total:    64 <-------
Node 1 HugePages_Free:     60 <-------
Node 1 HugePages_Surp:      0
[root@vsbc1 ~]#