-
Notifications
You must be signed in to change notification settings - Fork 292
Switch to epoll #5911
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
Merged
edwintorok
merged 7 commits into
xapi-project:feature/perf
from
edwintorok:private/edvint/epoll4-sim
Sep 10, 2024
Merged
Switch to epoll #5911
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
026403e
CP-32622: Replace: Unix.select and Thread.wait_timed_* with Unixext e…
edwintorok 8332161
CP-32622: Replace select in buf_io
snwoods 7372ce8
epoll: increase default fd open limit
edwintorok 95e431c
Test for absence of select: enable open_1024 in tests
edwintorok 8fbcb00
test: add a script that checks that we do not call unix_select from X…
edwintorok 526d439
quicktest: disable open 1024 fds on startup for now
edwintorok 4cda3f4
Revert "quicktest: disable open 1024 fds on startup for now"
edwintorok 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
(re_export xenstore) | ||
(re_export xenstore_transport) | ||
threads.posix | ||
xapi-stdext-unix | ||
(re_export xenstore.unix)) | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
BEGIN { n = 0; } | ||
# A function definition and its address | ||
# Remember its address and update current symbol | ||
# 0000000000850330 <unix_select>: | ||
match($0, /^0*([0-9a-fA-F]+) <([^>]+)>/, symdef) { | ||
SYMBOL = symdef[2]; | ||
ADDR = symdef[1]; | ||
|
||
SYMADDR[ADDR] = SYMBOL; | ||
|
||
if (ADDR in LOADED) { | ||
for (idx in LOADED[ADDR]) { | ||
caller = LOADED[ADDR][idx] | ||
CALLS[symdef[2]][n++] = caller | ||
} | ||
} | ||
} | ||
|
||
# Indirect calls (mostly used for C stubs) | ||
# mov $0x850330,%rax | ||
# call 872834 <caml_c_call> | ||
match($0, /mov.*0x([0-9a-fA-F]*),/, addr) { | ||
# this will have gaps, but the indexes will be unique | ||
LOADED[addr[1]][n++] = SYMBOL | ||
} | ||
|
||
match($0, /call.*<([^>]+)>/, call) { | ||
CALLS[call[1]][n++] = SYMBOL | ||
} | ||
|
||
END { | ||
SYM = "unix_select" | ||
had_calls = 0 | ||
if (SYM in CALLS) { | ||
for (idx in CALLS[SYM]) { | ||
caller = CALLS[SYM][idx]; | ||
print "--" | ||
if (caller ~ /caml(Thread|Unix__fun_).*/) { | ||
# direct calls from these functions to unix_select are expected | ||
print caller "[expected]" | ||
} else { | ||
print caller "[bad]" | ||
had_calls++ | ||
} | ||
if (caller in CALLS) { | ||
for (idx2 in CALLS[caller]) { | ||
caller2 = CALLS[caller][idx2]; | ||
if (caller2 ~ /caml(Thread).*/) { | ||
print caller2 "[expected]" | ||
} else { | ||
print caller2 "[bad]" | ||
had_calls++ | ||
} | ||
if (caller2 in CALLS) { | ||
for (idx3 in CALLS[caller2]) { | ||
caller3 = CALLS[caller2][idx3]; | ||
# but we don't expect anyone calling these functions from OCaml code, | ||
# reject that | ||
had_calls++ | ||
print caller3 "[bad]" | ||
if (caller3 in CALLS) { | ||
for (idx4 in CALLS[caller3]) { | ||
caller4 = CALLS[caller3][idx4]; | ||
print caller4 "[bad]" | ||
for (idx5 in CALLS[caller4]) { | ||
caller5 = CALLS[caller4][idx5]; | ||
print caller5 "[bad]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
if (had_calls > 0) { | ||
exit 2 | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
safe-resources | ||
xapi-consts | ||
xapi-log | ||
xapi-stdext-unix | ||
) | ||
) | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.