batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.88k stars 492 forks source link

ZRAM support for ARM versions #8901

Open ksokolowski opened 1 year ago

ksokolowski commented 1 year ago

Hello.

I'm playing around with Batocera on my Powkiddy A12 and it works nicely for many older systems. I use it mainly with MAME mostly fine. However, the RAM on Powkiddy and on other ARM SBCs is quite often very limited. There are 4 CPU cores so I hoped that I can somehow configure ZRAM to compress RAM. This would allow to run more games that are currently stutter - most probably swapping to sdcard. Unfortunately, there is not ZRAM support in Batocera at all. Do you think that you could enable it by default for ARM ports?

nadenislamarre commented 1 year ago

can you give me an example of game that currently doesnt work and that would work with zram ? with swap enable, games are well working now i see.

ksokolowski commented 1 year ago

There are problems with Scummvm games e.g. Blade Runner or for Arcade titles e.g. Mortal Kombat 3. Perhaps I could get better sdcard, but there is swapping visible. [root@BATOCERA /userdata/system]# free total used free shared buff/cache available Mem: 234560 183812 11108 7988 39640 34692 Swap: 524284 90228 434056

I would prefer to avoid swapping to sdcard to keep it healthy as long as possible. This is why I was hoping that ZRAM could be enabled on Batocera.

rtissera commented 8 months ago

Needs