Hi guys,
yesterday I left Retroarch downloading a Mame database that took all nightlong to download itself and in the morning I found Retroarch consuming all the ram available (6 giga) plus 2 giga of Swap. Closing the application the memory was cleaned up. Please take notice that Retroarch is running alone in a special and extra light Xfce4 session(1) on Debian Stretch AMD64.
(1) no xfdesktop, no thunar as daemon, no xfsettings daemon, no pulseaudio, no special services, no screensaver, no xfwm4 as windows session but openbox. Applications launched for session: Retroarch, xfce4-panel with simple menu, retroarch launcher, tray for nm-applet, volti.