Comments (14)
Can we cover what rmm
is required for? Is it essentially everything?
from yi-hack-allwinner.
If we want to remove rmm, we have to rewrite video acquisition and encoding.
We would necessarily need an sdk.
from yi-hack-allwinner.
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.
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.
I'll take some time to did through rmm and maybe we can just disable portions of it.
from yi-hack-allwinner.
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.
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.
Furthermore, an SD card is need to flash the firmware.
from yi-hack-allwinner.
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.
Much appreciated. I've ran a quick test and it seems to work:
- Prepared a 1GB swap file on another *nix box (link here, 1MB compressed, just unzip for use)
- 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.
Already done.
7b000f8
from yi-hack-allwinner.
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.
Yes, I released 0.1.6 with this feature.
from yi-hack-allwinner.
Just upgraded and tested: Works like a charm! Much appriciated.
from yi-hack-allwinner.
Related Issues (20)
- Camera unresponsive after firmware update from 0.3.4 to 0.3.6 HOT 8
- Some problems HOT 3
- HA Fetch snapshot image failed. HOT 4
- Disabling "Black and White" mode HOT 2
- del
- Kami Baby Support HOT 41
- Unbrick Cam HOT 3
- 9FUS Y20GA brick. Orange led permanently on. HOT 3
- allwinner v2 rtsp stream HOT 2
- Uploading to the cloud although it's disabled? HOT 1
- v0.37 audio fail HOT 14
- Yi1080 BFUSY31 - restarting after 10 sec of activity - loop
- audio doesn't work HOT 3
- 9FUS with 0.3.7 - No audio. Tried on Zoneminder, IP Cam Viewer and VLC. HOT 2
- Status reports PTZ "no" for Dome y30qa HOT 3
- Impossible to update 0.3.6 -> 0.3.7 HOT 1
- YI X dome (y30qa_0.3.7) - two identical cameras - one not responding HOT 3
- Online FW upgrade not working? HOT 8
- Incorrect time for Motion Events HOT 6
- OSD Visibility during daylight HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yi-hack-allwinner.