aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichael Kelley <[email protected]>2019-04-01 16:10:52 +0000
committerMartin K. Petersen <[email protected]>2019-04-03 23:30:08 -0400
commit382e06d11e075a40b4094b6ef809f8d4bcc7ab2a (patch)
tree2dd19238b6a478ca22b84758c135e35905c62929 /tools/perf/scripts/python/export-to-postgresql.py
parent1cb1d2c64e812928fe0a40b8f7e74523d0283dbe (diff)
scsi: storvsc: Fix calculation of sub-channel count
When the number of sub-channels offered by Hyper-V is >= the number of CPUs in the VM, calculate the correct number of sub-channels. The current code produces one too many. This scenario arises only when the number of CPUs is artificially restricted (for example, with maxcpus=<n> on the kernel boot line), because Hyper-V normally offers a sub-channel count < number of CPUs. While the current code doesn't break, the extra sub-channel is unbalanced across the CPUs (for example, a total of 5 channels on a VM with 4 CPUs). Signed-off-by: Michael Kelley <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Long Li <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions