Tests: the stream device tests of the old runtime's queue plan run at most four at a time
What: .config/nextest.toml's default profile puts the validation crate's
runtime_lane::replay_streams tests, and the three runtime_lane::rt_replay tests that play
on the old runtime too (a_private_shown_texture_is_checked_through_a_copy,
a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use,
the_address_census_is_the_same_on_both_runtimes), in a test group, queue-plan, of
max-threads 4. These are the tests of the GPU legs' filter (DEVICE_TEST_FILTER in
scripts/matrix/matrix) that open a lane device of the old runtime's queue plan (at_plan).
docs/VALIDATION.md's paragraph on a GPU of few channels says so. The few-channels profile
stays: the lane's other at_plan tests lie outside the group, so a whole lane run on such a
GPU still takes it.
Why: the RTX 2080's GPU leg (NVIDIA 620.70.06) failed 3 runs of 3 at b4058db961
(m3-max-58129, m3-max-58168, m3-max-58241), each at the same test:
tests::translate::on_device::every_device_removes_a_blob_it_cannot_take, "NVIDIA GeForce
RTX 2080: vkCreateDevice failed: Initialization of an object has failed". In the seconds of
the failure the kernel logged NVRM "kchannelAllocMem_GM107: Could not create Channel" (31
times in 58241), "kchannelAllocMem_GM107: Instance block allocation ... failed" and
"heapAlloc_IMPL: no free blocks" (39). 58241 sampled the card and the test processes every
0.3 s: at the first error 17 test processes were alive, 15 of them replay_streams tests,
whose devices take the queue plan's 18 VkQueues, each a channel on NVIDIA's driver (the 2080
holds 10 such devices). The card had 242 to 257 MiB of its 8,192 in use then, 1,458 MiB at
most over the leg, 393 MiB reserved: not its memory. The test alone passed (m3-max-58193,
0 NVRM lines), and so did it 18 runs of 18 beside the host-import timing test alone
(m3-max-58237). The lane's devices wait for room (runtime_lane/device_room.rs); the new
runtime's device tests take the driver's refusal as it is. Four devices of the plan are 72
VkQueues, which leaves room for six more: the leg's other 12 processes, whose new runtime
devices take at most 2 VkQueues each, and other programs' devices on the GPU.
Verified (archive m3-max-58111 at b4058db961; the nextest config of a commit whose tree is
this commit's, read from the workspace):
- m3-max-58271, exclusive on homelab-um790-xtx-1: the 2080's leg 506 of 506 passed, exit 0,
0 NVRM lines, 0 refused channels, at most 4 of the group's tests alive at once; the replay
tests' wall time 33.4 s; the leg 167.4 s (175.1 to 185.4 s in the three failed runs).
- The same job, the RX 7900 XTX's leg in turn before, after, after, before: 21.62 and
21.44 s before, 21.57 and 22.09 s after (1.4% longer on the means); the replay tests' wall
time 3.1 and 2.9 s before, 2.9 and 3.7 s after; at most 8 and 11 of the group's tests alive
at once before, 4 after; every run 506 of 506, exit 0.
- m3-max-58260: the 2080's leg under --profile few-channels (3 test threads), 506 of 506,
exit 0, 0 NVRM lines, 166.4 s, the replay tests' 22 runs 54.9 s in all (434.2 s in 58129).
This commit is contained in:
1 parent
c39f6e8350
commit
1de18aa609
2 files changed
+33
-6
No files matched your search
+26
-3
@@ -157,10 +157,33 @@ threads-required = 'num-test-threads'
|
||||
filter = 'package(metal2vulkan-rt) & test(/::an_access_up_to_2_gib_lands_at_its_own_word$/)'
|
||||
threads-required = 'num-test-threads'
|
||||
|
||||
# The stream device tests that open a lane device of the old runtime's queue plan run at most four
|
||||
# at a time, in every profile: the `runtime_lane::replay_streams` tests and the three
|
||||
# `runtime_lane::rt_replay` tests that play on the old runtime too. The GPU legs run both modules
|
||||
# beside the new runtime's device tests (`DEVICE_TEST_FILTER` in `scripts/matrix/matrix`). A device
|
||||
# of the plan takes 18 `VkQueue`s, each a channel on NVIDIA's driver, and an RTX 2080 holds 10 such
|
||||
# devices at once (the measurement is below). In the 2080's leg at the default parallelism (16
|
||||
# processes, NVIDIA 620.70.06) 15 of these tests were alive at once; the kernel logged
|
||||
# `kchannelAllocMem_GM107: Could not create Channel` 31 times in 2 s, and a new runtime device
|
||||
# test's `vkCreateDevice` failed (`VK_ERROR_INITIALIZATION_FAILED`) while the card had 242 to
|
||||
# 257 MiB of its 8,192 in use (3 runs of 3: m3-max-58129, m3-max-58168, m3-max-58241). The lane's
|
||||
# devices wait for room (`runtime_lane/device_room.rs`); the new runtime's tests take the driver's
|
||||
# refusal as it is. Four devices of the plan, 72 `VkQueue`s, leave room for six more: the leg's
|
||||
# other 12 processes, whose new runtime devices take at most 2 `VkQueue`s each, and other
|
||||
# programs' devices on the same GPU.
|
||||
[test-groups]
|
||||
queue-plan = { max-threads = 4 }
|
||||
|
||||
[[profile.default.overrides]]
|
||||
filter = 'package(metal2vulkan-validation) & (test(/^runtime_lane::replay_streams::/) | test(/^runtime_lane::rt_replay::(a_private_shown_texture_is_checked_through_a_copy|a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use|the_address_census_is_the_same_on_both_runtimes)$/))'
|
||||
test-group = 'queue-plan'
|
||||
|
||||
# A GPU whose driver has few channels runs its device tests three at a time
|
||||
# (`cargo nextest run --profile few-channels`). On NVIDIA's driver each `VkQueue` is a channel,
|
||||
# and a device of the runtime's queue plan takes 18 (14 for the round robin, 2 presenting, the
|
||||
# staging and fill queues). With no other process's devices, an RTX 2080 (NVIDIA 620.70.06) held
|
||||
# (`cargo nextest run --profile few-channels`): the lane's other tests open devices of the plan
|
||||
# too (`at_plan`), outside the group above, so a whole lane run on such a GPU takes this profile.
|
||||
# On NVIDIA's driver each `VkQueue` is a channel, and a device of the runtime's queue plan takes 18
|
||||
# (14 for the round robin, 2 presenting, the staging and fill queues). With no other process's
|
||||
# devices, an RTX 2080 (NVIDIA 620.70.06) held
|
||||
# 10 such devices at once and refused the 11th, and held 68 of the least plan's 3 `VkQueue`s;
|
||||
# an RTX 3090 (620.70.06) and an RTX 5080 Laptop GPU (615.71.09) held 61 of the plan's
|
||||
# (`crates/metal2vulkan-runtime/examples/queue_plan_cost.rs`). At the default parallelism a
|
||||
|
||||
+7
-3
@@ -127,9 +127,13 @@ with 16 CPU threads to itself, and 0.1 to 0.3 s on an RX 7900 XTX and a Radeon 7
|
||||
(`runtime_lane/device_room.rs`), each pause a `LANE-DEVICE-ROOM` line on stderr. The runtime
|
||||
crate's own device tests make theirs the same way (`src/tests/plan_room.rs`, `PLAN-DEVICE-ROOM`
|
||||
lines), and one still of its least plan past the bound fails its test; the tests of the least
|
||||
plan itself stand the driver's refusal in (`refuse_next_devices`). `cargo nextest run --profile
|
||||
few-channels` runs three device tests at a time (`.config/nextest.toml` has the measurement),
|
||||
leaving room for other programs' devices on the same GPU.
|
||||
plan itself stand the driver's refusal in (`refuse_next_devices`). The new runtime's device tests
|
||||
wait for no room: a refused device fails its test. So in every profile the stream device tests
|
||||
that open a device of the plan, which the GPU legs run beside the new runtime's
|
||||
(`runtime_lane::replay_streams` and three of `runtime_lane::rt_replay`), run at most four at a
|
||||
time (nextest's `queue-plan` test group). `cargo nextest run --profile few-channels` runs three
|
||||
device tests at a time (`.config/nextest.toml` has the measurement), leaving room for other
|
||||
programs' devices on the same GPU: a whole lane run on such a GPU takes it.
|
||||
- **A busy window the host outlasted is asked again.** The `did_modify_range` oracle's steps
|
||||
(`runtime_lane/device_copies.rs`) and the host copies of new `Shared` and `Managed` textures
|
||||
(`runtime_lane/first_use.rs`) need the GPU busy past their calls, about 2 s of busy work
|
||||
|
||||
Reference in new issue
Block a user