SlugLab / CXLMemSim

A place to store the CXL simulator
123 stars 20 forks source link

docker image #4

Closed Wu0103 closed 1 year ago

Wu0103 commented 1 year ago

Thanks for your great work. Just wondering if it's possible for you to provide a docker image. I tried many times to get it running, but always come into new problems every time. Having a docker image would greatly increase convenience. Thanks!

victoryang00 commented 1 year ago

I think the ebpf is hard to run in the docker without privilege and should map the /sys/ in, and you still need your eBPF of your kernel version. I guess the pitfalls are 1. /sys/fs/kprobe, you can set env LOGV=1 to see whether it's opened or not. 2. you should in the same directory to run the code, since it read relative path to eBPF kernel object. If you really want a docker image to compile or run. please refer to this repo and this image.

Wu0103 commented 1 year ago

Thanks for your help, but I am still experiencing core dumped issue with the image you provided. image I've tried different workloads, but all have the same problem. Do you have any idea about this?

victoryang00 commented 1 year ago

Debug and take a look at this https://linux.die.net/man/2/perf_event_open. Normally it's CPU not -1 or PID has no permission.