Skip to content

Lspci: only refresh the pciids database once per node - #4656

Open
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-2-nic-bind-uuidfrom
mcgov/stack-3-lspci-pciids
Open

Lspci: only refresh the pciids database once per node#4656
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-2-nic-bind-uuidfrom
mcgov/stack-3-lspci-pciids

Conversation

@mcgov

Copy link
Copy Markdown
Collaborator

Part 3 of 9 of a stacked series that reworks the DPDK SRIOV hot plug tests. Stacked on #4655, review only the last commit.

get_devices ran update-pciids on every forced refresh, which adds a network download and a noticeable delay to hot plug tests that rescan the pci bus repeatedly. The database is now refreshed once per tool instance.

Key Test Cases:
verify_dpdk_sriov_rescind_failover_send_only|verify_device_reports_correct_pci_slot

Impacted LISA Features:
Sriov, NetworkInterface, Nvme, Gpu

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts latest
  • microsoftcblmariner azure-linux-3 azure-linux-3 latest

get_devices ran update-pciids on every forced refresh, which adds a
network download and a noticeable delay to hot plug tests that rescan
the pci bus repeatedly. Track whether the database was already updated
for this tool instance and skip the refresh afterwards.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5d5f58ad-b9df-4420-ad37-22caee78e925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant