-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerutil.ContainerPool
: Add debugging and utilization information.
`ContainerPool` is useful to make sure tests can productively use the CPU by using pre-spun containers in parallel. While the test is running, it is difficult to know which containers are doing what, and how effective the container pool actually is. This change adds state tracking to each container to make this process easier. Each container has a state and a user-assignable label (e.g. the test name) to indicate what it is doing. Then, the pool now has a `String` function to print what each container is doing. This is useful for CUDA tests which are very close to the test runtime limit of one hour, in order to see how they can better spend their time, and to know which container to `exec` into when debugging. PiperOrigin-RevId: 626501528
- Loading branch information
1 parent
74b9037
commit cc8c584
Showing
2 changed files
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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