All of lore.kernel.org
 help / color / mirror / Atom feed
* How to connect a CXL memory device to a NUMA node ?
@ 2024-04-05 10:36 Parthasarathy, Mohan (In-Memory Compute Platforms)
  2024-04-05 13:29 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Parthasarathy, Mohan (In-Memory Compute Platforms) @ 2024-04-05 10:36 UTC (permalink / raw)
  To: linux-cxl@vger.kernel.org

Hi all,

I want to create a VM with 2 CXL memory devices - one attached to NUMA node 0 and one attached to NUMA node 1. Is this possible in QEMU ? Currently when I create a CXL memory device in QEMU, it shows equal distances from each numa node in numactl output. I want it such that it should show closer distance to the NUMA node (or socket) it is attached to. Something like this :

[fedora@localhost ~]$ numactl -H
available: 3 nodes (0-2)
node 0 cpus: 0 1
node 0 size: 1894 MB
node 0 free: 1627 MB
node 1 cpus: 2 3
node 1 size: 2012 MB
node 1 free: 1696 MB
node 2 cpus:
node 2 size: 4096 MB
node 2 free: 4096 MB
node distances:
node   0   1   2
  0:  10  20  20
  1:  20  10  30
  2:  20  20  10

As you can see the distance for numa node 1 to the cxl device should be 30, not 20, assuming the CXL device is attached to node 0. Any thoughts on how to make this work ?

Regards,
Mohan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-05 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 10:36 How to connect a CXL memory device to a NUMA node ? Parthasarathy, Mohan (In-Memory Compute Platforms)
2024-04-05 13:29 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.