perf(daemon): add restart backoff, process priority, and map eviction

Supervisor had zero-delay restart on crash loops, pins CPU core at
100% if daemon keeps dying. Add exponential backoff (500ms to 30s cap,
resets after 30s stable). Set nice=10 on daemon child to yield CPU
to foreground apps. Evict stale entries from fileLocks and rate limiter
ConcurrentHashMaps that grew unbounded. Upload pre-built flashable zips
in CI instead of unpacking and re-compressing loose files.
This commit is contained in:
Enginex0
2026-03-11 12:41:57 +01:00
parent 3e47a3a9b3
commit ff7539f158
4 changed files with 30 additions and 3 deletions
+4 -2
View File
@@ -92,8 +92,8 @@ jobs:
cp "$RELEASE_FILE" "out/TEESimulator-${VER}-Release.zip"
cp "$DEBUG_FILE" "out/TEESimulator-${VER}-Debug.zip"
echo "Release: $(basename "$RELEASE_FILE") -> TEESimulator-${VER}-Release.zip"
echo "Debug: $(basename "$DEBUG_FILE") -> TEESimulator-${VER}-Debug.zip"
echo "Release: $(basename "$RELEASE_FILE") -> TEESimulator-${VER}-Release.zip ($(du -h "$RELEASE_FILE" | cut -f1))"
echo "Debug: $(basename "$DEBUG_FILE") -> TEESimulator-${VER}-Debug.zip ($(du -h "$DEBUG_FILE" | cut -f1))"
env:
VER: ${{ steps.ver.outputs.version }}
@@ -102,12 +102,14 @@ jobs:
name: TEESimulator-release-zip
path: out/TEESimulator-*-Release.zip
retention-days: 30
compression-level: 0
- uses: actions/upload-artifact@v4
with:
name: TEESimulator-debug-zip
path: out/TEESimulator-*-Debug.zip
retention-days: 7
compression-level: 0
- uses: actions/upload-artifact@v4
with: