How to check how many lanes are used by the PCIe card?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












23















PCI Express slots on the motherboard can be wider then the number of lanes connected.
For example a motherboard can have x8 slot with only x1 lane connected.



On the other hand, you can insert a card using only for ex. 4 lanes to a x16 slot on the motherboard, and they will negotiate to use only those x4 lanes.



How to check from the running system how many lanes are used by the inserted PCIe cards?










share|improve this question


























    23















    PCI Express slots on the motherboard can be wider then the number of lanes connected.
    For example a motherboard can have x8 slot with only x1 lane connected.



    On the other hand, you can insert a card using only for ex. 4 lanes to a x16 slot on the motherboard, and they will negotiate to use only those x4 lanes.



    How to check from the running system how many lanes are used by the inserted PCIe cards?










    share|improve this question
























      23












      23








      23


      9






      PCI Express slots on the motherboard can be wider then the number of lanes connected.
      For example a motherboard can have x8 slot with only x1 lane connected.



      On the other hand, you can insert a card using only for ex. 4 lanes to a x16 slot on the motherboard, and they will negotiate to use only those x4 lanes.



      How to check from the running system how many lanes are used by the inserted PCIe cards?










      share|improve this question














      PCI Express slots on the motherboard can be wider then the number of lanes connected.
      For example a motherboard can have x8 slot with only x1 lane connected.



      On the other hand, you can insert a card using only for ex. 4 lanes to a x16 slot on the motherboard, and they will negotiate to use only those x4 lanes.



      How to check from the running system how many lanes are used by the inserted PCIe cards?







      pci






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 12 '10 at 11:52









      silksilk

      6122812




      6122812




















          2 Answers
          2






          active

          oldest

          votes


















          28














          Ok, it seems I missed it on first try in lspci manpages.



          Note: Run the command as root/sudo otherwise a lot of detail is ommitted including the Lnk output shown below.



          lspci -vv displays a lot of information, including link width:



          01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2) (prog-if 00 [VGA controller])
          [...]
          LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <1us
          ClockPM- Surprise- LLActRep- BwNot-
          LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
          ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
          LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-





          share|improve this answer




















          • 1





            in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

            – Trevor Boyd Smith
            Nov 21 '14 at 18:26







          • 1





            Yes, that's how I understand it, too.

            – silk
            Nov 24 '14 at 10:47











          • Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

            – hbogert
            Oct 7 '18 at 13:38


















          8














          Sometimes it can be a bit more complicated.



          For example, 4 Port GBit ethernet adapters have a PCIe switch on board. I trapped into an issue where I found the Ethernet Adapter connected to x4, but a bottleneck upstream when the onboard pcie switch was connected at x1 to the motherboard only.



          See this thread for the issue: http://thread.gmane.org/gmane.linux.drivers.e1000.devel/15192/focus=15254



          To get a grasp on tree connectivity, compare the view of



          sudo lspci -tv
          sudo lspci -vv | grep -P "[0-9a-f]2:[0-9a-f]2.[0-9a-f]|LnkSta:"


          The last line will show you the Link Status below every device on the bus without the overwelming detail of vv option.






          share|improve this answer




















          • 10





            Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

            – ʇsәɹoɈ
            Jan 7 '17 at 18:44










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f393%2fhow-to-check-how-many-lanes-are-used-by-the-pcie-card%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          28














          Ok, it seems I missed it on first try in lspci manpages.



          Note: Run the command as root/sudo otherwise a lot of detail is ommitted including the Lnk output shown below.



          lspci -vv displays a lot of information, including link width:



          01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2) (prog-if 00 [VGA controller])
          [...]
          LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <1us
          ClockPM- Surprise- LLActRep- BwNot-
          LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
          ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
          LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-





          share|improve this answer




















          • 1





            in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

            – Trevor Boyd Smith
            Nov 21 '14 at 18:26







          • 1





            Yes, that's how I understand it, too.

            – silk
            Nov 24 '14 at 10:47











          • Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

            – hbogert
            Oct 7 '18 at 13:38















          28














          Ok, it seems I missed it on first try in lspci manpages.



          Note: Run the command as root/sudo otherwise a lot of detail is ommitted including the Lnk output shown below.



          lspci -vv displays a lot of information, including link width:



          01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2) (prog-if 00 [VGA controller])
          [...]
          LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <1us
          ClockPM- Surprise- LLActRep- BwNot-
          LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
          ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
          LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-





          share|improve this answer




















          • 1





            in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

            – Trevor Boyd Smith
            Nov 21 '14 at 18:26







          • 1





            Yes, that's how I understand it, too.

            – silk
            Nov 24 '14 at 10:47











          • Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

            – hbogert
            Oct 7 '18 at 13:38













          28












          28








          28







          Ok, it seems I missed it on first try in lspci manpages.



          Note: Run the command as root/sudo otherwise a lot of detail is ommitted including the Lnk output shown below.



          lspci -vv displays a lot of information, including link width:



          01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2) (prog-if 00 [VGA controller])
          [...]
          LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <1us
          ClockPM- Surprise- LLActRep- BwNot-
          LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
          ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
          LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-





          share|improve this answer















          Ok, it seems I missed it on first try in lspci manpages.



          Note: Run the command as root/sudo otherwise a lot of detail is ommitted including the Lnk output shown below.



          lspci -vv displays a lot of information, including link width:



          01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2) (prog-if 00 [VGA controller])
          [...]
          LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <1us
          ClockPM- Surprise- LLActRep- BwNot-
          LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
          ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
          LnkSta: Speed 2.5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 18 '12 at 8:38









          Tim Sutton

          1032




          1032










          answered Aug 12 '10 at 12:15









          silksilk

          6122812




          6122812







          • 1





            in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

            – Trevor Boyd Smith
            Nov 21 '14 at 18:26







          • 1





            Yes, that's how I understand it, too.

            – silk
            Nov 24 '14 at 10:47











          • Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

            – hbogert
            Oct 7 '18 at 13:38












          • 1





            in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

            – Trevor Boyd Smith
            Nov 21 '14 at 18:26







          • 1





            Yes, that's how I understand it, too.

            – silk
            Nov 24 '14 at 10:47











          • Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

            – hbogert
            Oct 7 '18 at 13:38







          1




          1





          in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

          – Trevor Boyd Smith
          Nov 21 '14 at 18:26






          in your example the output text has both width x16 and width x8. I assume this is interpretted as: the link capacity is width x16 and this device has negotiated width x8?

          – Trevor Boyd Smith
          Nov 21 '14 at 18:26





          1




          1





          Yes, that's how I understand it, too.

          – silk
          Nov 24 '14 at 10:47





          Yes, that's how I understand it, too.

          – silk
          Nov 24 '14 at 10:47













          Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

          – hbogert
          Oct 7 '18 at 13:38





          Same as @ʇsәɹoɈ 's comment at other answer; Use root/sudo

          – hbogert
          Oct 7 '18 at 13:38













          8














          Sometimes it can be a bit more complicated.



          For example, 4 Port GBit ethernet adapters have a PCIe switch on board. I trapped into an issue where I found the Ethernet Adapter connected to x4, but a bottleneck upstream when the onboard pcie switch was connected at x1 to the motherboard only.



          See this thread for the issue: http://thread.gmane.org/gmane.linux.drivers.e1000.devel/15192/focus=15254



          To get a grasp on tree connectivity, compare the view of



          sudo lspci -tv
          sudo lspci -vv | grep -P "[0-9a-f]2:[0-9a-f]2.[0-9a-f]|LnkSta:"


          The last line will show you the Link Status below every device on the bus without the overwelming detail of vv option.






          share|improve this answer




















          • 10





            Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

            – ʇsәɹoɈ
            Jan 7 '17 at 18:44















          8














          Sometimes it can be a bit more complicated.



          For example, 4 Port GBit ethernet adapters have a PCIe switch on board. I trapped into an issue where I found the Ethernet Adapter connected to x4, but a bottleneck upstream when the onboard pcie switch was connected at x1 to the motherboard only.



          See this thread for the issue: http://thread.gmane.org/gmane.linux.drivers.e1000.devel/15192/focus=15254



          To get a grasp on tree connectivity, compare the view of



          sudo lspci -tv
          sudo lspci -vv | grep -P "[0-9a-f]2:[0-9a-f]2.[0-9a-f]|LnkSta:"


          The last line will show you the Link Status below every device on the bus without the overwelming detail of vv option.






          share|improve this answer




















          • 10





            Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

            – ʇsәɹoɈ
            Jan 7 '17 at 18:44













          8












          8








          8







          Sometimes it can be a bit more complicated.



          For example, 4 Port GBit ethernet adapters have a PCIe switch on board. I trapped into an issue where I found the Ethernet Adapter connected to x4, but a bottleneck upstream when the onboard pcie switch was connected at x1 to the motherboard only.



          See this thread for the issue: http://thread.gmane.org/gmane.linux.drivers.e1000.devel/15192/focus=15254



          To get a grasp on tree connectivity, compare the view of



          sudo lspci -tv
          sudo lspci -vv | grep -P "[0-9a-f]2:[0-9a-f]2.[0-9a-f]|LnkSta:"


          The last line will show you the Link Status below every device on the bus without the overwelming detail of vv option.






          share|improve this answer















          Sometimes it can be a bit more complicated.



          For example, 4 Port GBit ethernet adapters have a PCIe switch on board. I trapped into an issue where I found the Ethernet Adapter connected to x4, but a bottleneck upstream when the onboard pcie switch was connected at x1 to the motherboard only.



          See this thread for the issue: http://thread.gmane.org/gmane.linux.drivers.e1000.devel/15192/focus=15254



          To get a grasp on tree connectivity, compare the view of



          sudo lspci -tv
          sudo lspci -vv | grep -P "[0-9a-f]2:[0-9a-f]2.[0-9a-f]|LnkSta:"


          The last line will show you the Link Status below every device on the bus without the overwelming detail of vv option.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 31 '18 at 2:00









          Scott Stensland

          4711413




          4711413










          answered Mar 30 '15 at 9:48









          wjrwjr

          8113




          8113







          • 10





            Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

            – ʇsәɹoɈ
            Jan 7 '17 at 18:44












          • 10





            Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

            – ʇsәɹoɈ
            Jan 7 '17 at 18:44







          10




          10





          Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

          – ʇsәɹoɈ
          Jan 7 '17 at 18:44





          Note: When run as an unprivileged user, lspci doesn't show the LnkCap / LnkSta / Width stats. Run it with sudo to see them.

          – ʇsәɹoɈ
          Jan 7 '17 at 18:44

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f393%2fhow-to-check-how-many-lanes-are-used-by-the-pcie-card%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay