-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[RFC] Utilize shared memory to deduplicate the network system-wide #6173
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
Open
Sopel97
wants to merge
57
commits into
official-stockfish:master
Choose a base branch
from
Sopel97:shared_memory
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
6e247a1
basics but won't work for multiple reasons. The largest being we'd ne…
Sopel97 03359f5
leaky hacky but working
Sopel97 26eead5
asd
Sopel97 598c97e
LP
Sopel97 3bc2237
aa
Sopel97 c8cc652
proper hash
Sopel97 00562ca
const correct write
Sopel97 8bafc35
minor touches + comments
Sopel97 d01d5df
remove non-const accessor
Sopel97 2b1b765
actually use large pages
Sopel97 2ed8130
update linux
Disservin b179417
update exe
Disservin 3c3630d
update linux
Disservin 89bdf48
add fallback and windows
Disservin e749672
unlink
Disservin 981e62b
add compile flag
Disservin 25a3978
fix name
Disservin ad6bf6a
proper init and cleanup
Disservin 88c9170
fix uninitialized value and stack allocation
Disservin 5300fd5
remove unnecessary destructor call
Disservin 712c35e
fix init
Disservin ce72e28
Fix warning
vondele e13d45c
Move -lrt so it works with debug=no optimize=no builds
vondele 005fc3f
Try to duplicate nets only to HW numa domains
vondele c2cd0aa
Avoid copy on stack, fails on macos
vondele d4ca986
Add some of the used debug/warn flags, including stack-usage
vondele 321d946
Only include shm_linux when not on windows
Sopel97 513e209
Fix windows compilation
Sopel97 ce31ddc
includes
Sopel97 b8c9b34
Disable shared memory on android because it does not exist
Sopel97 2aac07e
no lrt on mac
Sopel97 227d445
dsa
Sopel97 90665e6
macos...
Sopel97 9930437
remove printouts
Sopel97 0ffd1ee
includes again
Sopel97 df58908
win32
Sopel97 b1dc1df
dsa
Sopel97 f6956ab
make format
Sopel97 4102fe7
win32
Sopel97 b9129d6
sda
Sopel97 7c6ddc7
dumb
Sopel97 805e89c
win32 disable
Sopel97 e5f94f8
actually dont disable
Sopel97 8f6055b
dsa
Sopel97 0d4a86e
dsa
Sopel97 2f92e42
macos?!
Sopel97 3f2b2f9
fwd
Sopel97 98a4fa8
Use standard exit codes
vondele 2cf4a89
Wait size
vondele 8f9a337
Update src/misc.h
Sopel97 c961ea3
asdasd
Sopel97 3db0ed8
std::launder exising shm memory on linux
Sopel97 8bfb3ae
magic number
Sopel97 2ad139c
use semaphores again
Disservin bb34fd0
add posix_fallocate to ensure shm tmpfs is large enough for file
Disservin cd5a699
add max sem name length assert
Disservin 8274fc5
fix compilation issues
Disservin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The stack usage warning threshold of 128000 bytes (128KB) is extremely high and may indicate potential stack overflow issues. Consider using a lower threshold like 32KB or 64KB.
Copilot uses AI. Check for mistakes.