-
Notifications
You must be signed in to change notification settings - Fork 289
Add nvidia gpu topoloy score registry to node #1018
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
lengrongfu
wants to merge
1
commit into
Project-HAMi:master
Choose a base branch
from
lengrongfu:feat/besteffort_policy
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
# GPU topology scheduling strategy | ||
|
||
## Use Case | ||
|
||
### Node Select | ||
|
||
If multiple nodes meet the requirements, the minimum meeting node should be selected first:: | ||
- `Node1` | ||
```json | ||
[ | ||
{ | ||
"uuid": "gpu0", | ||
"score": { | ||
"gpu1": "100", | ||
"gpu2": "100", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu1", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu2": "200", | ||
"gpu3": "100" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu2", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu1": "200", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu3", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200" | ||
} | ||
} | ||
] | ||
``` | ||
|
||
|
||
- `Node2` | ||
```json | ||
[ | ||
{ | ||
"uuid": "gpu0", | ||
"score": { | ||
"gpu1": "100", | ||
"gpu2": "100", | ||
"gpu3": "200", | ||
"gpu4": "200", | ||
"gpu5": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu1", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu2": "200", | ||
"gpu3": "100", | ||
"gpu4": "200", | ||
"gpu5": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu2", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu1": "200", | ||
"gpu3": "200", | ||
"gpu4": "200", | ||
"gpu5": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu3", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200", | ||
"gpu4": "200", | ||
"gpu5": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu4", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200", | ||
"gpu3": "200", | ||
"gpu5": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu5", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200", | ||
"gpu3": "200", | ||
"gpu4": "200" | ||
} | ||
} | ||
] | ||
``` | ||
|
||
For example, the two nodes above should be given priority `Node1`. | ||
|
||
|
||
### Device Select, One Pod One Device | ||
|
||
1. When a Pod only needs one card, the card with the worst communication with other cards should be given priority if the video memory and computing power are sufficient, such as: | ||
- `Node1` | ||
```json | ||
[ | ||
{ | ||
"uuid": "gpu0", | ||
"score": { | ||
"gpu1": "100", | ||
"gpu2": "100", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu1", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu2": "200", | ||
"gpu3": "100" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu2", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu1": "200", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu3", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200" | ||
} | ||
} | ||
] | ||
``` | ||
There are only four cards on this node, and `gpu0` and `gpu1` have the worst connectivity with other cards, so these two cards are preferred in single-card mode. | ||
|
||
### Device Select, One Pod More Than One Device | ||
1. When a Pod only needs multiple cards, if the video memory and computing power are sufficient, the card with the best communication with other cards should be given priority, such as: | ||
- `Node1` | ||
```json | ||
[ | ||
{ | ||
"uuid": "gpu0", | ||
"score": { | ||
"gpu1": "100", | ||
"gpu2": "100", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu1", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu2": "200", | ||
"gpu3": "100" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu2", | ||
"score": { | ||
"gpu0": "100", | ||
"gpu1": "200", | ||
"gpu3": "200" | ||
} | ||
}, | ||
{ | ||
"uuid": "gpu3", | ||
"score": { | ||
"gpu0": "200", | ||
"gpu1": "100", | ||
"gpu2": "200" | ||
} | ||
} | ||
] | ||
``` | ||
There are only four cards on this node, and `gpu2` and `gpu3` have the best connectivity with other cards, so these two cards are given priority in multi-card mode. |
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.
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.
creating const for
ENABLE_TOPOLOGY_SCORE
will better?