GithubHelp home page GithubHelp logo

Comments (14)

preeefix avatar preeefix commented on June 30, 2024

Can we cover what rmm is required for? Is it essentially everything?

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

If we want to remove rmm, we have to rewrite video acquisition and encoding.
We would necessarily need an sdk.

from yi-hack-allwinner.

gauthier12 avatar gauthier12 commented on June 30, 2024

Sorry if it is a stupid question but isn't it possible to activate swap ? It maybe very slow may at least it won't be out of memory

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

Yes, it is possible to activate the swap (even if swapping to SD is not a smart idea) but this means that in order for the hack to work it is necessary to have an sd.
I do not really like, but...

from yi-hack-allwinner.

preeefix avatar preeefix commented on June 30, 2024

I'll take some time to did through rmm and maybe we can just disable portions of it.

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

I tested the system by disabling the cloud (and therefore several programs that don't start) and it seems to work much better.
Taking a sequence of snapshot does not restart.

from yi-hack-allwinner.

Xandrios avatar Xandrios commented on June 30, 2024

With the cloud disabled (as well as all other services except HTTP and SSH) it does restart for me. The first snapshot succeeds, the second causes a restart.

What I do wonder though, is why a subsequent run of the snapshot causes such issue. When the first run has completed all memory used for that request should have been free'ed right? Meaning that all memory used should have been returned and available for a second snapshot run. If a subsequent run causes an out-of-memory, does that not mean that we have a memory leak in that service somehow?

In any case I'd very much like to be able to use SWAP when an SD-card is available. Maybe we can make it conditional? If SD is available enable SWAP, if no card, leave it disabled. That way we can at least prevent crashes while executing short-lived memory-intensive tasks.

Personally I'd always be using an SD card anyway, and since these things cost next to nothing there should not really be a reason to not have one right? An 8 or 16GB card should be only a few bucks.

from yi-hack-allwinner.

gauthier12 avatar gauthier12 commented on June 30, 2024

Furthermore, an SD card is need to flash the firmware.

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

What I do wonder though, is why a subsequent run of the snapshot causes such issue. When the first run has completed all memory used for that request should have been free'ed right? Meaning that all memory used should have been returned and available for a second snapshot run. If a subsequent run causes an out-of-memory, does that not mean that we have a memory leak in that service somehow?

The snapshot feature is based on a program that executes and terminates. It's not a daemon.

In any case I'd very much like to be able to use SWAP when an SD-card is available.

Ok, added.

from yi-hack-allwinner.

Xandrios avatar Xandrios commented on June 30, 2024

Much appreciated. I've ran a quick test and it seems to work:

  1. Prepared a 1GB swap file on another *nix box (link here, 1MB compressed, just unzip for use)
  2. Issue command to activate swap: swapon /tmp/sd/swapfile

We don't have many tools to check swap usage, but this seems to work:

root@Testcam1:~# cat /proc/swaps
Filename Type Size Used Priority
/tmp/sd/swapfile file 1048572 4888 -1

Now we only have to make that swapon command be executed at startup IF there is a swapfile available on the SD card. What's the 'best practice' to execute scripts at startup?

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

Already done.
7b000f8

from yi-hack-allwinner.

Xandrios avatar Xandrios commented on June 30, 2024

Wow, you are very fast! Awesome.

I didn't have the mkswap available hence I created the swapfile on another platform. But CONFIG_MKSWAP will take care of that likely. Thanks!

from yi-hack-allwinner.

roleoroleo avatar roleoroleo commented on June 30, 2024

Yes, I released 0.1.6 with this feature.

from yi-hack-allwinner.

Xandrios avatar Xandrios commented on June 30, 2024

Just upgraded and tested: Works like a charm! Much appriciated.

from yi-hack-allwinner.

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.