Repository navigation
crimson: simplify vstart crimson-osd reactor pinning - #63137
Conversation
|
jenkins test make check |
|
jenkins test make check arm64 |
perezjosibm
left a comment
There was a problem hiding this comment.
Just a typo, and a couple of minor suggestions please, thanks!
There was a problem hiding this comment.
I no longer have the slack conversation, but iirc the best results by the team in India showed that the number of alien threads needed to be four times that of the total of CPU cores used by the Bluestore backend, I think that is part of the reason why there were two parameters for alienstore (num of threads and num of CPU cores).
For example, here is what I use last in my test driving script:
if [ "$OSD_TYPE" == "blue" ]; then
NUM_ALIEN_THREADS=$(( 4 *NUM_OSD * NUM_REACTORS ))
title="${title} alien_num_threads=${NUM_ALIEN_THREADS}"
cmd="${cmd} --crimson-alien-num-threads $NUM_ALIEN_THREADS"
The code in vstart used the remaining CPUs left once all OSDs reactors have been configured, within the number given by the above option. TBH I haven't worked out the minimal number of CPU cores for Alien threads that gives good performance.
Apologies if I'm wrong/confused.
There was a problem hiding this comment.
Ah, I was sloppy and misunderstood that distinction:
- if [ $crimson_alien_num_threads -gt 0 ]; then
- echo "$CEPH_BIN/ceph -c $conf_fn config set osd crimson_alien_op_num_threads $crimson_alien_num_threads"
- $CEPH_BIN/ceph -c $conf_fn config set osd crimson_alien_op_num_threads "$crimson_alien_num_threads"
- fi
I'll add it back in.
5ab8bc7 to
0ee010e
Compare
… for balance_cpu Improvements: - shorter - has tests - uses lscpu -e --json to get logical<->physical mappings and avoid needing to parse cpu ranges in lscpu --json - supports allocating alienstore threads - supports requiring physical cores only independently for alienstore and seastar reactors Signed-off-by: Samuel Just <[email protected]>
0ee010e to
30fe658
Compare
|
@Matan-B Does this seem reasonable? |
There was a problem hiding this comment.
This seem to address https://tracker.ceph.com/issues/66159, I've updated it so we can backport this easily - can you please add a "fixes"?
edit: discussed offline, the script is useful today for testing/verifying new allocation strategies - and is not yet proven (on a specific machine) to have any meaningful impact. Yet, we want to be able to easily mesaure and test this is this might change.
There was a problem hiding this comment.
wrong description, Number of cores that alien-tp threads will use.
There was a problem hiding this comment.
Might be easier to read if this option is under --crimson-alien-num-threads:
--crimson-alien-num-threads: number of alien-tp threads
--crimson-alien-num-cores: number of cores that alien-tp threads will use
There was a problem hiding this comment.
Good catch, fixed.
|
Even though there's no src change here, we should backport this into T so we can test the script with actual deployments as well in the next tech-preview release. |
There was a problem hiding this comment.
2 comments from previous round might be worth addressing. Other than that lgtm!
It seems that doc/dev/crimson/BalanceCPUCrimson.md might need an update after this PR. We can address this out of scope of this PR.
note: we should verify that seastar's resource.cc doesn't provide similar strategies since it might.
c39e69a to
a804b05
Compare
|
jenkins test make check |
527e6be to
e1894cd
Compare
|
I apparently hadn't actually removed the sequential pinning default from the reactors, only from alienstore. It should actually default to simply setting crimson_seastar_cpu_cores now: |
|
jenkins test api |
This commit simplifies the internal flow in a few ways: - core assignment is entirely handled by prep_balance_cpu and do_balance_cpu. The latter simply does as the cpu_table instructs. - assign_crimson_cores calls lscpu and taskset internally, no need for temp files. It also changes some defaults: - if crimson-balance-cpu is unset or set to none, crimson-osd will not pin cpus at all rather than using the simple sequential allocation scheme, which could be much less efficient on platforms where cpuids 0,1,2,3,... are on socket 0,1,2,3,... "osd" and "socket" options provide numa aware assignments when requested. New features: - Alienstore cores are now assigned with assign_crimson_cores using the same balance strategy using --crimson-alien-num-cores. - --crimson-reactor-physical-only and --crimson-alienstore-physical-only will cause reactor or alienstore cpus respectively to be allocated with one cpu per physical core rather than including smt siblings. Fixes: https://tracker.ceph.com/issues/71096 Signed-off-by: Samuel Just <[email protected]>
Replaced by assign_crimson_cores. Signed-off-by: Samuel Just <[email protected]>
e1894cd to
7eaa56b
Compare
|
Updated the fixes line to reflect bug https://tracker.ceph.com/issues/71096 rather than https://tracker.ceph.com/issues/66159 -- see comment on https://tracker.ceph.com/issues/66159 for rationale. |
|
jenkins test make check |
|
jenkins test make check arm64 |
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition