Hi, a developer on the EC2 team here: the underlying CPU topology, in terms of which logical processors share L3 caches (i.e., which CPUs are part of the same CCX [1]) is provided to the instance's operating system through ACPI tables and CPUID values. The m5a.24xlarge and r5a.24xlarge instances show two sockets, six NUMA nodes, and 12 L3 cache slices.
Can you share more details about this CPU?
The page mentions a custom AMD EPYC, and indeed, your topology suggests this is not a standard 24-core CPU. A standard 24-core EPYC would have 3 enabled cores per CCX and 4 zeppelins (NUMA nodes) per CPU.