Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

NIC detection performance #22

Closed
bendyer opened this issue Jul 25, 2012 · 1 comment
Closed

NIC detection performance #22

bendyer opened this issue Jul 25, 2012 · 1 comment
Assignees

Comments

@bendyer
Copy link
Contributor

bendyer commented Jul 25, 2012

When running in VirtualBox, over 90% of CPU cycles used during boot are spent finding an appropriate NIC/driver pair, specifically in iterating over all PCI devices for each supported vendor/device ID.

If the init_net code iterated over attached PCI devices in the outer loop, then over supported vendors/device IDs in the inner loop, the process would be much faster.

@ghost ghost assigned IanSeyler Jul 26, 2012
ReturnInfinity pushed a commit that referenced this issue Jul 26, 2012
Change init_net to search for an Ethernet device before comparing
against known supported devices.
Removed the os_pci_find_device function as it is no longer needed.
@IanSeyler
Copy link
Member

Should be resolved now. Thanks for pointing this out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants