Something “eats” memory in Retropie installed on RPi 3 B+.
-
Hello.
Hardware.
Raspberry Pi 3 B+ in Nespi case +.
Memory card: 16GB Kingston Class 10.
Dongle for wireless keyboard/mouse and USB receiver for Xbox 360 controller are connected to.Software in current state.
“Nude” Retropie 4.4 installed and updated to the newest kernel.
Emulator, ROM, controller not installed.
Off/reboot script installed.
SSH: On.
WiFi: Configured.
Memory space extended to the full card capacity.
Time zone: set as appropriate.Here is the situation.
Just after installation and basic configuration: 2,9GB of memory used.
Kernel updated: 5,3GB used.
After one hour of the system in idle state: approx. 6GB used.
Eventually, after few hours, memory card is full and Retropie is getting stuck. Main menu without icons, simple list form. Terminal doesn’t work as well as Nespi case off/reboot script. It’s hard to change anything in configs. ☹What’s going on? Am I doing something wrong?
I was unable to find in Raspi and Retropie configs any option like “backup on/off” which might be a possible reason of memory drain.
On last Saturday, I’ve made one significant change in the system since it was installed for the first time two weeks ago. Xbox 360 USB receiver has been connected. Since that time I’m facing described problem, I guess.Any help would be appreciated.
Regards.
Gregory -
Ok so you're obviously talking about disk (sd card) space, not memory.
Could you issue asudo du -sm /*
and drill down to the space-eating folder/file ?I'm thinking about logs growing abnormally. The culprit should then be in /var/logs.
If it's the case, you can then do atail -f
on the growing file to know the error message filling it. -
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 -
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 -
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? -
@gregory_m said in Something “eats” memory in Retropie installed on RPi 3 B+.:
How it can be solved?
-
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.
-
Get a better case.
-
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.
-
-
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. -
@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 ?
-
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 -19sudo 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 7I'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. -
@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.
-
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. -
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
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.