-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format/mount CXL devices #6
Comments
I'm trying to do the same thing, but keep on getting error messages from the script.. I couldn't make the qemu start running at all. could you please provide some information about the mkosi version you have used? Or the host OS that you have used? I am trying on Ubuntu 18.04(mkosi version 3+17) which makes alot of errors. Thank you in advance. |
@christian-pinto We're waiting for the Region driver & feature to become available. Once we have regions, we can then create namespaces which we can then format. There are active discussions on the mailing list - CXL Region Driver |
Thanks @sscargal. Also, any chance these CXL devices can be used as "normal" non volatile memory? I see the QEMU device presents capacity only for non-volatile case. Looks like the initial code for QEMU CXL devices was kind of supporting volatile memory but it then disappeared. I'd be interested in using a CXL device as a regular memory, hotplug them, etc. Christian |
Hello, is there any updates on this? I tried playing with this with 5.19rc and Dan's patches for CXL/PMEM. What I am missing is how to actually configure the volatile/pmem partitioning of CXL memory devices. Are we supposed to configure that before booting Qemu? In the "LSA"? Or using cxl command-lines in Linux inside Qemu? |
@bgoglin the 'set-partition' command of cxl-cli is nominally used to configure persistent capacity vs. volatile. However I don't think the current qemu implementation actually supports that. It (qemu) provides both persistent and volatile capacities on all the memdevs. Are you asking about the command line bits to actually create a region using Dan's create-region patches? I have an equivalent patchset for cxl-cli that will add a |
Yes, I'd like the command-line bits to make a CXL pmem region appear as pmem in Linux with Dan's patches (and unrelated to this issue, bits to make a CXL volatile mem region appear as a NUMA node in Linux). IIRC CXL mem is pmem by default, I indeed tried set-partition inside qemu and it failed as you said. Is your |
@bgoglin currently |
Using run_qemu.sh, cxl-for-6.0 and latest qemu + two minor patches related to get_lsa and set_lsa, I created an region using sysfs with configuration of interleave ways = 2, and then create namespace with fsdax mod. After this, I tried dd command and also mkfs.ext4. It seems that dd command works fine without data corruption. But formating the namespace using mkfs.ext4 and mount it will fail. This is very strange. Could anyone provide some advice on what could be wrong? Thanks. |
@stellarhopper Now,I see the newest cxl-cli in ndctl can create-region -t ram. My question is How can I use this ram region?ndctl is only work for PMEM. |
Once it's created, Linux will create a DAX device on top of it (will appear in |
@bgoglin Thank,I fixed this problem . Thanks for your help, I found out that it was because the DAX support was not turned on in the Kernel before. I have solved it by myself and 2 NUMA nodes appeared successfully. Your explanation gave me a clearer understanding of CXL's region management, thanks! |
@bgoglin Sorry for bother you again. When I run numactl --cpubind=0 --membind=1 memcached -m 30000 -p 11212 -t 8 -c 1024, membind=1 is the CXL Memory,but I got Illegal instruction. How can I do? |
No idea, I never actually used CXL memory, even in Qemu. I only played with configuration things. |
Thanks @bgoglin |
Hi,
I have managed to run QEMU using this script in combination with:
QEMU runs fine, I can see the cxl devices in
/dev/cxl/
.ndctl reports the below
After that I have not been able to format (e.g., with xfs) and mount/use the devices. Any suggestions on how to make actual use of those devices?
Thanks
The text was updated successfully, but these errors were encountered: