# CXLMemSim **Repository Path**: eydelu/CXLMemSim ## Basic Information - **Project Name**: CXLMemSim - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-03 - **Last Updated**: 2025-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CXL.mem Simulator The CXL.mem simulator uses the target latency for simulating the CPU perspective taking ROB and different cacheline states into penalty from the application level. ## Prerequisite ```bash root@victoryang00-ASUS-Zenbook-S-14-UX5406SA-UX5406SA:/home/victoryang00/CLionProjects/CXLMemSim-dev/build# uname -a Linux victoryang00-ASUS-Zenbook-S-14-UX5406SA-UX5406SA 6.13.0-rc4+ #12 SMP PREEMPT_DYNAMIC Fri Jan 24 07:08:46 CST 2025 x86_64 x86_64 x86_64 GNU/Linux ``` ## User input ```bash SPDLOG_LEVEL=debug ./CXLMemSim -t ./microbench/ld -i 5 -c 0,2 -d 85 -c 100,100 -w 85.5,86.5,87.5,85.5,86.5,87.5,88. -o "(1,(2,3))" ``` 1. -t Target: The path to the executable 2. -i Interval: The epoch of the simulator, the parameter is in milisecond 3. -c CPUSet: The core id to run the executable and the rest will be `setaffinity` to one other core 4. -d Dram Latency: The current platform's DRAM latency, default is 85ns # mark that bw in the remote 5. -b, -l Bandwidth, Latency: Both use 2 input in the vector, first for read, second for write 6. -c Capacity: The capacity of the memory with first be local, remaining accordingly to the input vector. 7. -w Weight: Use the heuristic to calculate the bandwidth 8. -o Topology: Construct the topology using newick tree syntax (1,(2,3)) stands for ```bash 1 / 0 - local \ 2 switch / \ 3 ``` 9. env SPDLOG_LEVEL stands for logs level that you can see. ## Cite ```bash @article{yangyarch23, title={CXLMemSim: A pure software simulated CXL.mem for performance characterization}, author={Yiwei Yang, Pooneh Safayenikoo, Jiacheng Ma, Tanvir Ahmed Khan, Andrew Quinn}, journal={arXiv preprint arXiv:2303.06153}, booktitle={The fifth Young Architect Workshop (YArch'23)}, year={2023} } ```