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

set MADV_RANDOM for syzygy mmap #1818

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Conversation

borg323
Copy link
Member

@borg323 borg323 commented Dec 17, 2022

No description provided.

@borg323 borg323 requested a review from Tilps December 17, 2022 22:52
// For context: <https://github.com/official-stockfish/Stockfish/pull/1829>
// and <https://github.com/official-stockfish/Stockfish/pull/3094>.
madvise(base_address, statbuf.st_size, MADV_RANDOM);
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add the random access hint to the windows code path as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean FILE_FLAG_RANDOM_ACCESS ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah

@borg323 borg323 merged commit 0cd7a90 into LeelaChessZero:master Dec 18, 2022
@borg323 borg323 deleted the madvise branch December 18, 2022 00:12
borg323 added a commit to borg323/lc0 that referenced this pull request Feb 20, 2023
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.

2 participants