Question: how are pcie lanes allocated?
Answer: PCI Express Lanes. When the computer starts up, PCIe determines which devices are plugged into the motherboard. It then identifies the links between the devices, creating a map of where traffic will go and negotiating the width of each link.