10 Replies Latest reply on Apr 4, 2018 1:34 PM by ranchu

    reduce boot till ping

    ranchu Green Belt

      Hello,

       

      We need to boot system fast till ethernet functions correctly with ping.

      We made a lot of effort, and got a little improvment, yet it still takes a lot of time till ping success

      I would like to ask for Intel's suggestion as to what steps should be taken to get a further reduction and the timings.

      A short description of what we did :

       

      1. our configuration is based on kontron board, with pci i210 ethernet adapter:

       

      # lspci

      00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 11)

      00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 11)

      00:13.0 IDE interface: Intel Corporation Atom Processor E3800 Series SATA IDE Controller (rev 11)

      00:16.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series OTG USB Device (rev 11)

      00:17.0 SD Host controller: Intel Corporation Atom Processor E3800 Series eMMC 4.5 Controller (rev 11)

      00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 11)

      00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 11)

      00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 (rev 11)

      00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 11)

      00:1d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB EHCI (rev 11)

      00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 11)

      00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev 11)

      01:00.0 PCI bridge: PLX Technology, Inc. PEX 8505 5-lane, 5-port PCI Express Switch (rev aa)

      03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)

       

      2. The initial system takes ~11 seconds from boot till ping ack response :

         2.1 interval of  3 seconds till kernel starts

         2.2  interval of 1.8 seconds till init.d scripts starts

         2.3  interval of 3 seconds from igb init till link is up

          2.4 interval of 3 seconds from link up till we get ping ack response

       

      4. we made various trials and modifications:

         4.1. changed igb kernel to force disable of autonegotiation - improvement of 2 seconds, in intervbal 2.4 (from link up till ping),

       

         4.2. We start igb in bootargs (ip=...) , so that it will starts earlier in kernel.

       

          4.3. We use static arp.

       

      I have the following questions:

       

      1. Why  disabling auto-negotiation improved the interval from link up till ping (interval 2.4) ? I mean, I expected it to reduce 2.3 interval (the time till link is up) instead. Does it make sense ?

      2. we probably can't use 100M, because our application shall need 1G, yet trying to disable auto-negotiation and force 1G, did not work, and the time inter

      3. What steps should I take now ?

      4. Should I change NVM ? if yes - Why NVM should give better results than directly modify driver as needed ?

       

      Thank you for any suggestion on this issue,

       

      ranran

        • Re: reduce boot till ping
          AdolfoS Brown Belt

          Hello ranchu

           

          Please provide the following information?

           

          1) What operating system are you using? Please also indicate if you are performing any modification to the kernel

          2) What firmware are you using? UEFI, Coreboot, other? It is designed by you or by a third party vendor?

          3) Is your I210 embedded in your board or it is a third party PCI board?

          4) If your I210 is embedded, can you check if the issue occurs with a third party I210 device?

          5) What version of the driver are you using?

           

          Best regards,

          Adolfo Sanchez

            • Re: reduce boot till ping
              ranchu Green Belt

              Hi,

               

              1) What operating system are you using? Please also indicate if you are performing any modification to the kernel

                 buildroot, kernel 4.10.

                 The only modifications are related to trying to reduce the time till ping, in igb driver for example.

               

              2) What firmware are you using? UEFI, Coreboot, other? It is designed by you or by a third party vendor?

                  kontron come-mbt10 , with atom processor. Firmware: BIOS (customized by kontron for shorter boot time) , syslinux and kernel linux.

               

              3) Is your I210 embedded in your board or it is a third party PCI board?

                       It's embedded in board (not external pci board), but seen with lspci as a pci connected adapter.

               

              4) If your I210 is embedded, can you check if the issue occurs with a third party I210 device?

                       I don't have one. Can you give example for i210 third party device ? Is it that the timing seems to be too long from your experience ?

               

              5) What version of the driver are you using?

                       igb 5.4.0-k , full dmesg of log from powerup till ping success is attached in file.

               

              Thank you for any idea,

              Ran

              • Re: reduce boot till ping
                ranchu Green Belt

                Hello Adolfo,

                 

                I've added start/stop log in main igb functions.

                I can now see things more clearly.

                please see the attached log,

                it seems that igb_watchdog is responsible somehow for waking up and checking things, before deciding that link is up.

                Maybe there is a way to call it higher rate ?

                 

                Thank you,

                ranran