OpenMPDK / SMDK

SMDK, Scalable Memory Development Kit, is developed for Samsung CXL(Compute Express Link) Memory Expander to enable full-stack Software-Defined Memory system
280 stars 60 forks source link

How to use SMDK with QEMU #23

Closed Tom-CaoZH closed 1 year ago

Tom-CaoZH commented 1 year ago

Because I do not have the CXL device and I have discovered that QEMU enables CXL 2.0 emulation. Therefore, I am interested in using SMDK with QEMU. Additionally, I came across a previous issue (https://github.com/OpenMPDK/SMDK/issues/15) where errors were encountered while running SMDK on QEMU. I would like to inquire if there is a practical and reliable method to successfully run SMDK on QEMU.

812231487 commented 1 year ago

I also have this problem

KyungsanKim commented 1 year ago

Hi all, sorry for late reply. We are going to provide a patch set to support SMDK v1.5 on QEMU in a couple of weeks. The patch will allow most of SMDK functions - userspace plugins(library, cli, BM, testcases) and OS interfaces(swap and cache). However, among the three grouping functions - group,zone,noop, - group-noop would only be supported on QEMU. This is because we are preparing a migration plan aligning with vanilla linux.

Tom-CaoZH commented 1 year ago

@KyungsanKim Thank you for your reply!

KyungsanKim commented 1 year ago

Hi all, Please find https://github.com/OpenMPDK/SMDK/releases/tag/smdk_v1.5.1

Hope it helps you. Let me know any incoming inquery :)

jhk5361 commented 1 year ago

Dear @KyungsanKim,

I'm delighted to hear about recent developments in QEMU emulation. I have a couple of questions.

Does the emulator incorporate "performance emulation" features for CXL-DRAM and other CXL devices? I'm interested in expecting and estimating the performance of CXL DRAM without the actual hardware.

If not, does this version of QEMU offer additional functionalities such as registration, mailbox support, or other non-device performance emulation features?