Code Monkey home page Code Monkey logo

Comments (9)

christianhaitian avatar christianhaitian commented on June 10, 2024 1

For the emulators supported, no. None of them benefit from anymore than 1GB ram. CPU speed is normally the limitation on performance.

from arkos.

christianhaitian avatar christianhaitian commented on June 10, 2024

How do you do this?

from arkos.

alekolo7 avatar alekolo7 commented on June 10, 2024

Here are some resources on that:
https://linuxreviews.org/Zram https://www.kernel.org/doc/Documentation/blockdev/zram.txt
https://www.reddit.com/r/lowendgaming/comments/13d5brx/enable_zram_on_low_end_linux_machines_for_a_free/

from arkos.

christianhaitian avatar christianhaitian commented on June 10, 2024

Have you tested this yet to see if this would be a benefit to PortMaster? If so, What's you recommended process for making this option available? If you haven't tested this, can you test this and provide the suggested configuration for this?

from arkos.

alekolo7 avatar alekolo7 commented on June 10, 2024

Sure. I just set it up and noticed an mayor improvement in minetest. With normal swap I got 10-12 fps with many stutters, now with zram 15-25fps with less stutters. Without swap and zram it wouldn't even boot.

As for enabling it, it's a matter of editing /usr/bin/init-zram-swapping. I attached my setup that works well for me (init-zram-swapping.txt).

There's one thing to be considered though. Zram generally makes effective ram larger, but it is archieved by compressing and then decompressing data, which is cpu-consuming. So if I reserved 512mb from my 1gb of ram for zram, I should have ~2gb effective total memory, but any usage that exceeds 512mb (the unreserved part) gets compressed and some performance is lost. So I think it should be implemented as a setting rather than being enabled by default. Emulators that use between 512mb and 1gb of ram may underperform a bit for example (haven't tested it, gonna do it tomorrow).

from arkos.

christianhaitian avatar christianhaitian commented on June 10, 2024

You think it should be something that's enabled and disabled on a per game basis?

from arkos.

alekolo7 avatar alekolo7 commented on June 10, 2024

No, I don't think so. Enabling/disabling swap every time you launch/quit a game is too much I think. Also, I tested God of War on PPSSPP and there was no performance difference with zram enabled, so maybe enabling it system-wide (even by default) would be the best option? Requires some more testing though.

from arkos.

christianhaitian avatar christianhaitian commented on June 10, 2024

For emulation, the extra ram won't make a difference unless the unit has less than 1GB total available which none of the devices supported with ArkOS are concerned of. Since it's best for certain limited ports only, I wonder if the portmaster group would consider it for implementation for certain ports that can benefit from it.

from arkos.

WinUser-Generic avatar WinUser-Generic commented on June 10, 2024

For emulation, the extra ram won't make a difference unless the unit has less than 1GB total available which none of the devices supported with ArkOS are concerned of. Since it's best for certain limited ports only, I wonder if the portmaster group would consider it for implementation for certain ports that can benefit from it.

and using for purpose to increase vram and continue getting free memory dont gain any performance? even if are 2 fps in certain systems.

from arkos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.