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

Question about AUTO path? #42

Open
Yemaoxin opened this issue May 21, 2024 · 1 comment
Open

Question about AUTO path? #42

Yemaoxin opened this issue May 21, 2024 · 1 comment
Assignees

Comments

@Yemaoxin
Copy link

When a Page Fault is encountered, will Auto perform all memcpy operations by the CPU, or will the CPU just touch the address corresponding to the page fault as in the DSA example code to deal with the missing page, while the hardware DSA does the memcpy.

I have 1MB of data that needs to be migrated between two addresses, and even though I do this by TOUCHING the first few bytes of each page in the 1MB, in actual execution, I keep running into Page Fault, and what do I need to do to avoid Page Fault in the HW path.

@abdelrahim-hentabli
Copy link
Contributor

Hey @Yemaoxin

For your first question, when encountering a Page Fault, the CPU will just "take over" and complete the rest of the operation.

For the second part, I don't see how you keep encountering a page fault even after TOUCHING all the pages.

@abdelrahim-hentabli abdelrahim-hentabli self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants