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.
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
Various fixes to reproducible benchmarks #1800
Various fixes to reproducible benchmarks #1800
Changes from 117 commits
bd738ec
7473c62
aa10d7c
bed126c
09ea7a7
2917886
49732b1
76cfb40
9b588af
6d6c17d
b89b27d
163a40c
0bb51a3
2b9f649
9728f7e
7b1bf01
1daf2bf
4e0a53e
04893c9
b24fcf7
30f7467
3e35121
f927f69
404cd10
2f19c44
e0586de
0eaa7e0
9896963
4062d6f
7141c21
7c42a78
92a37a8
3982840
d2bfc11
80482fb
31594e7
82f195e
be6eb56
0cf1c6f
f5bf15a
617c60f
3948f0c
74c9a1b
902f9f4
9b82f85
1198e1a
24c1619
3f647c3
354287d
e0dfbab
16e233b
cac89d0
bb3a194
7d8ee13
1720e11
c0ee323
aa608d2
697ab89
8b0c4c2
49fd31d
be3da1a
e92827a
b9e7771
8e5ab5d
f331a94
b9defb7
b569861
cdd8d6b
b9e9ea6
e420593
913dec2
8861fc8
2f52b02
c28326c
521b696
94296ca
0a35608
d11043c
d6757c1
78356aa
9ce6ce0
184c46d
0dc3ce4
5dd7db2
14bcb92
50c9fe2
c6df11a
aaaa182
9ffd68e
c947004
11f353b
858d0a5
d236090
c47a1bf
615807a
feef4f3
fb2140f
998bf48
be85537
abb4f69
076d2de
c6014a9
5a12ce3
d0c150b
03b5e4f
fbdc1fa
954aa87
15b0dc0
d863ce6
c271a4e
0d60c56
0193607
fcc158a
047e941
b7a6d9a
9244674
432fa45
732b923
ef112d0
be6cd5c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this work well with
num_threads > n_queries
? We've had a similar logic in raft host refinement and the performance on small batches was horrible due to overheads of managing many threads compared to the amount of work (n_queries = 1).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.
Good question. This one is challenging because we don't (and shouldn't) know the number of queries when we set this argument. We could set it to something small(ish) like 8 or 16, but that would just lower the saturation point for larger batch queries. In general, I know the queries for online systems are going to be long tailed, with 1 being in the main mass and >= 100 being in the tail.
The problem is that when we run larger batch sizes, we aren't giving hnsw an fair try at all. My thinking was to take the middle ground- setting this to the number of cores. I guess I should measure the impact directly. What kind of perf difference are you seeing for, say, batch size of 10 when the thread pool contains the number of available cores?
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.
Maybe this explicit pool does better job than the openmp machinery that we rely upon in the refine operation. But there, I've got something like ~100x boost for a single-query batch
n_queries = 1
(72 cores). I've done some other refactoring at the same time though.