RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SSD causing lag?

    Scheduled Pinned Locked Moved Help and Support
    ssdlag input
    12 Posts 3 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mituM
      mitu Global Moderator
      last edited by

      USB Devices connected: ssd controller (part of retroflag, as far as I know it’s VIA branded) and usb extension to the case.

      The USB controller(s) on the Pi4 are VIA, the NesPi controller appears to be JMIcron.

      Can you run the following 2 commands and post the output:

      dmesg | grep -i blacklisted
      lsusb -t
      

      Do you get the same issue if you're running without the Nespi4 controller (i.e. disc directly connected to the PI, without the controller).

      S 1 Reply Last reply Reply Quote 0
      • S
        Stuffu @mitu
        last edited by

        @mitu

        Unfortunately, I don't have a way to connect it directly to the Pi. Wouldn't I always need a controller to connect it to the Pi? There is just the sata interface on the ssd itself.

        The SSD is Micron, so I might have misinterpreted that VIA was the controller in nespi case.

        Output:

        [    1.527151] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
        [    1.527272] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
        

        and

        /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
            |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
            |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        

        Nothing odd here, right?

        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by

          Looks like the quirk has been applied - so the configuration should be fine. The SSD part could be a red herring, it's maybe the USB3 causes interference with the BT wireless connection ?

          If your SN30 Pro is connected via Bluetooth, try connecting it via USB and see if the input lag is the same.

          S 1 Reply Last reply Reply Quote 1
          • S
            Stuffu @mitu
            last edited by

            @mitu

            Hmm, tried with a usb only controller and the lag was gone. So I guess it's not the SSD after all.

            Strangely I haven't had any problems with the BT connection before. Also using the same setup of retropie.

            The only difference I notice in general is when launching ES, the "loading config" part takes considerably longer time to load than before. Don't know if it's related but that's something new.

            Is there something to do about the lagging BT connection?

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by mitu

              @Stuffu said in SSD causing lag?:

              Strangely I haven't had any problems with the BT connection before. Also using the same setup of retropie.

              Including the USB3 drive controller ?

              Is there something to do about the lagging BT connection?

              Just to confirm it's the USB3 SSD controller that's causing the issue, try testing with Bluetooth and a SD card only system. If the lag is cause by the USB3 controller, then maybe an external (USB) Bluetooth dongle might help.

              EDIT: if it turns out it's the controller, maybe drop RetroFlag an email and ask them if they know about this kind of issue.

              S 1 Reply Last reply Reply Quote 1
              • S
                Stuffu @mitu
                last edited by

                @mitu

                Just to confirm it's the USB3 SSD controller that's causing the issue, try testing with Bluetooth and a SD card only system. If the lag is cause by the USB3 controller, then maybe an external (USB) Bluetooth dongle might help.

                When disconnecting the USB controller the lag disappeared on the BT controllers, also the config was loading at normal speed when launching ES.

                EDIT: if it turns out it's the controller, maybe drop RetroFlag an email and ask them if they know about this kind of issue.

                Yup, I will do that. Thanks helping out pinpointing the issue

                1 Reply Last reply Reply Quote 0
                • S
                  Stuffu
                  last edited by Stuffu

                  I found a workaround that appears to be working.

                  Since I don't think this is an uncommon combo with nespi 4 case and BT controllers I can maybe help someone else out.

                  The issue with slow performance both with the SSD itself and interference with BT controllers disappeared when moving the USB controller for the SSD to from the USB 3.0 port to the USB 2.0 port instead and the connector for the front USB ports to USB 3.0 from USB 2.0.

                  Even the long ES loading time is gone.

                  Edit: the instructions for the case is to put usb controller to usb 3.

                  mituM 1 Reply Last reply Reply Quote 1
                  • mituM
                    mitu Global Moderator @Stuffu
                    last edited by

                    @Stuffu said in SSD causing lag?:

                    The issue with slow performance both with the SSD itself and interference with BT controllers disappeared when moving the USB controller for the SSD to from the USB 3.0 port to the USB 2.0 port instead and the connector for the front USB ports to USB 3.0 from USB 2.0.

                    Sadly, this negates all performance gains from using an USB3 port for your external disc.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Stuffu @mitu
                      last edited by

                      @mitu true, but it seems that it’s related to improper shielding in the usb controller so I don’t think there will be a fix. I guess it’s better this way than having overall poor performance, so in this case it’s sadly better performance with usb 2...

                      1 Reply Last reply Reply Quote 0
                      • L
                        luedi
                        last edited by

                        I also had issues since using the ssd with the nespi 4. Previously it ran fine with micro sd card alone. So my conclusion was a poor RF design of the SATA controller board.
                        Since USB3.0 is commonly related to RFI in the ISM band (Wifi/Bluetooth) I tried my luck with installing RF shielding around the SATA controller board and unshielded cable end.
                        I used thin aluminium sheet around the PCB from my scrap box and aluminium tape for the cable (used in a/c repairs). I insulated the PCB with some Kapton tape.
                        It seems my troubles of laggy bluetooth are over. (fingers crossed).
                        See pictures below.
                        IMG_7774.jpeg
                        IMG_7784.jpeg
                        IMG_7775.jpeg IMG_7776.jpeg

                        S 1 Reply Last reply Reply Quote 1
                        • S
                          Stuffu @luedi
                          last edited by

                          @luedi thanks for suggesting this, will try it out when there is time... :)

                          1 Reply Last reply Reply Quote 0
                          • LolonoisL Lolonois referenced this topic on
                          • First post
                            Last post

                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.