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

    Something “eats” memory in Retropie installed on RPi 3 B+.

    Scheduled Pinned Locked Moved Help and Support
    retropie 4.4memory cardmemory usage
    12 Posts 3 Posters 2.0k 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.
    • G
      Gregory_M @Sano
      last edited by

      @sano

      Hi.

      Thanks a lot for response. Yes, the issue is with the space on SD card going to zero.
      I'll present the results of sudo du -sm /* asap.

      Regards.
      G

      G 1 Reply Last reply Reply Quote 0
      • G
        Gregory_M @Gregory_M
        last edited by Gregory_M

        I read this thread https://retropie.org.uk/forum/topic/18066/sd-card-full-log-files/
        At the bottom is the possible answer on my problem: USB hub in Nespi case. Xbox receiver is connected now to the right USB socket in my Nespi hub. I'll disconnect it and compare SD card usage then.
        Second possibility: Kernel is having the problems with USB hubs in general.
        As per https://retropie.org.uk/forum/topic/17219/retropie-4-3-16-raspianstretch-and-xbox-360-wireless-dongle-issue-with-nespi-case/9

        G 1 Reply Last reply Reply Quote 0
        • G
          Gregory_M @Gregory_M
          last edited by

          Update.
          Supply voltage measured on USB ports of Nespi case hub: 5,1V
          Memory „consumption”: approx. 1GB in 30min. Xbox 360 USB receiver connected to Nespi case hub”.
          Memory „consumption”: 0GB. Xbox 360 USB receiver disconnected.
          Largest files in folder var/log: messages, kern.log, syslog. 1,2GB each.
          Now I'm sure, that the culprit of my problem is Xbox Receiver connected to the USB socket of Nespi case hub.
          How it can be solved?

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

            @gregory_m said in Something “eats” memory in Retropie installed on RPi 3 B+.:

            How it can be solved?

            1. Update the kernel and the OS packages, they've implemented a message suppression threshold for these kind of messages in a firmware update (see https://github.com/raspberrypi/linux/pull/2520). See if this fixes your issue.

            2. Get a better case.

            3. Add a logrotate job to truncate those log files 1/hour. Just a workaround - won't prevent the SD card being constantly written and used.

            G 1 Reply Last reply Reply Quote 0
            • G
              Gregory_M @mitu
              last edited by

              @mitu

              Thanks for info. I'll try your suggestions. Kernel and OS packages were already updated.
              Flash drive connected in same manner as Xbox receiver, doesn't increase used space on SD card,
              Correction. Both files from var/log are 1,8GB.

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

                @gregory_m said in Something “eats” memory in Retropie installed on RPi 3 B+.:

                Thanks for info. I'll try your suggestions. Kernel and OS packages were already updated.

                What's the message that's spamming the logs and makes it large ?

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gregory_M @mitu
                  last edited by Gregory_M

                  @mitu

                  sudo tail kernel.log

                  Aug 14 18:49:35 retropie kernel: [ 387.221997] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.221997]
                  Aug 14 18:49:35 retropie kernel: [ 387.223022] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.223022]
                  Aug 14 18:49:35 retropie kernel: [ 387.223121] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.223121]
                  Aug 14 18:49:35 retropie kernel: [ 387.355123] usb 1-1.1.2.1: USB disconnect, device number 7
                  Aug 14 18:49:35 retropie kernel: [ 387.356070] xpad 1-1.1.2.1:1.2: xpad_irq_in - usb_submit_urb failed with result -19
                  Aug 14 18:49:35 retropie kernel: [ 387.356084] xpad 1-1.1.2.1:1.6: xpad_irq_in - usb_submit_urb failed with result -19
                  Aug 14 18:49:35 retropie kernel: [ 387.356114] xpad 1-1.1.2.1:1.4: xpad_irq_in - usb_submit_urb failed with result -19

                  sudo tail syslog

                  Aug 14 18:49:35 retropie kernel: [ 387.223121]
                  Aug 14 18:49:35 retropie kernel: [ 387.355123] usb 1-1.1.2.1: USB disconnect, device number 7
                  Aug 14 18:49:35 retropie kernel: [ 387.356070] xpad 1-1.1.2.1:1.2: xpad_irq_in - usb_submit_urb failed with result -19
                  Aug 14 18:49:35 retropie kernel: [ 387.356084] xpad 1-1.1.2.1:1.6: xpad_irq_in - usb_submit_urb failed with result -19
                  Aug 14 18:49:35 retropie kernel: [ 387.356114] xpad 1-1.1.2.1:1.4: xpad_irq_in - usb_submit_urb failed with result -19
                  Aug 14 18:51:02 retropie systemd[1]: Stopping User Manager for UID 1000...
                  Aug 14 18:51:02 retropie systemd[1]: Stopped target Sound Card.
                  Aug 14 18:51:02 retropie systemd[1]: Stopping Save/Restore Sound Card State...
                  Aug 14 18:51:02 retropie systemd[612]: Stopped target Default.
                  Aug 14 18:51:02 retropie systemd[612]: Stopped target Basic System.

                  sudo tail messages

                  Aug 14 18:49:35 retropie kernel: [ 387.220099]
                  Aug 14 18:49:35 retropie kernel: [ 387.220999] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.220999]
                  Aug 14 18:49:35 retropie kernel: [ 387.221997] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.221997]
                  Aug 14 18:49:35 retropie kernel: [ 387.223022] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.223022]
                  Aug 14 18:49:35 retropie kernel: [ 387.223121] WARN::dwc_otg_handle_mode_mismatch_intr:68: Mode Mismatch Interrupt: currently in Host mode
                  Aug 14 18:49:35 retropie kernel: [ 387.223121]
                  Aug 14 18:49:35 retropie kernel: [ 387.355123] usb 1-1.1.2.1: USB disconnect, device number 7

                  I'm not very familiar with Linux so... :-(
                  I think that I have the same problem like in this thread https://retropie.org.uk/forum/topic/18066/sd-card-full-log-files/6 found few minutes ago.
                  I do not want to cut the holes in Nespi case.

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

                    @gregory_m OK, so this does not look like the power related message-log-filling-the-card issue that I posted, but it's quite clear this one. There are at least 4 users with the NesPi cases that report the same problem in that issue. Unfortunately the issue is not yet solved and it seems related to a particular USB chip also used by the NesPi case.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      Gregory_M @mitu
                      last edited by

                      @mitu

                      Thanks for explanation. Xbox receiver, other dongle and flash drives connected to Nespi hub are working fine, so I think that there is only problem of multiplied messages in log files.
                      I'll look for the way to stop logging or restrict the volume of kernel.log, messages and syslog.file.
                      Message to Retroflag will be send too.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Gregory_M @Gregory_M
                        last edited by

                        Hi.

                        Problem solved.
                        Microsoft USB receiver connected to Nespi Case + through external TP-Link USB 3.0 hub, has no effect on used space of SD card.

                        Gregory

                        1 Reply Last reply Reply Quote 2
                        • 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.