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

support important advice #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

awkay
Copy link

@awkay awkay commented Oct 7, 2023

The madvise system call is actually kind of important in more scenarios that you've covered, and the POSIX values are the same in OSX and linux (I checked .h files in both). The sequential advice, in particular, can have a dramatic effect on the overall VM system (without it you can accidentally kick a lot of stuff out of RAM that is important, unnecessarily).

I added a big docstring to the new method to explain.

The instructions for building didn't work for me...perhaps missing a call to gen the .h file? So, I wasn't able to build it to test, but the change is very small.

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

Successfully merging this pull request may close these issues.

None yet

1 participant