Skip to content
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

About the L2 filter #2

Open
jpjy opened this issue Apr 25, 2024 · 1 comment
Open

About the L2 filter #2

jpjy opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working VM

Comments

@jpjy
Copy link

jpjy commented Apr 25, 2024

Dear Zirui,

I am a Ph.D. student at the University of South Florida, and your work has greatly impressed me.

I have a specific question regarding the use of the L2 evset to populate the LLC evset, which can significantly reduce the candidates size and is key to implementing Prime+Probe on serverless platforms. I am trying to reproduce your work on a Google Cloud environment (Compute Engine virtual machine with Skylake-SP architecture).

image

The build of the L2 evset works well. However, I encounter issues when using the L2 evset to populate the LLC candidates. Sometimes the filtered candidates size is too small, leading to the error "Not enough candidates due to filtering."

image

At other times, the size of the filtered candidates is normal, but they cannot be used successfully to build the LLC/SF evset.

image

I have tried increasing the cands_scaling and max_tries settings, but this has not resolved the issues.

Without the L2 evset filter, I can build the LLC evset directly based on the initial candidates, but this process is too time-consuming; it takes about 45 minutes to build 896 evsets for a single page offset. Therefore, I believe the L2 evset filter is necessary for the cloud environment.

Could you possibly share some specific details of your implementation or provide guidance on how to resolve these issues? I would genuinely appreciate your time and insights. Thank you in advance.

Best,
Changjia

@zzrcxb
Copy link
Owner

zzrcxb commented Apr 28, 2024

Hi Changjia,

Thank you for reporting this issue.

Indeed, I noticed some instability when running L2 filtering in a virtualized environment, such as Compute Engine. (The paper's experiments were conducted in a Google Cloud Run Gen1 environment, which uses Docker without hardware virtualization.) The symptom I observed was that the L2 hit latency fluctuates significantly, which can confuse the code regarding what constitutes an L2 hit.

A comprehensive exploration of the root cause and improvements to the PoC for VMs are on my radar. However, I currently have limited time and resources to address this. I plan to investigate further in June. Meanwhile, you might try running the code on a local machine or in a Google Cloud Run Gen1 environment.

@zzrcxb zzrcxb self-assigned this Apr 28, 2024
@zzrcxb zzrcxb added bug Something isn't working VM labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VM
Projects
None yet
Development

No branches or pull requests

2 participants