Files
Arch-R/tools
Douglas Teles 85325f88a3 FASE 0+1+2: Production build audit fixes and infrastructure
Kernel config hardening:
- FRAME_POINTER=n: Saves 3-5% CPU overhead on ARM64 (wastes registers)
- DEBUG_FS=n: Remove debugfs mount (memory + attack surface)
- IKCONFIG=n: Save 100-300KB (kernel config in /proc not needed in production)

Mesa/Panfrost:
- Add persistent shader cache (MESA_SHADER_CACHE_DIR + 128MB max)
  Avoids shader recompilation on every emulator launch

I/O scheduler:
- Enhanced BFQ udev rule: low_latency=1, read_ahead=2048KB, nr_requests=128
  Reduces ROM loading stutter on microSD

Sysctl:
- Add vm.dirty_expire_centisecs=3000 (dirty pages expire after 30s)
- Add vm.page-cluster=0 (single-page swap for ZRAM, instant swap-in)

Infrastructure:
- Create tools/audit-build.sh: comprehensive production build audit script
  Checks kernel debug flags, Mesa env vars, binary stripping, emulator
  build types, system state, active services

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 14:29:06 -03:00
..
2025-02-03 07:04:59 -05:00
2024-07-06 13:09:13 +02:00
2024-07-06 13:09:13 +02:00
2025-02-03 07:04:59 -05:00
2026-03-18 17:32:41 -03:00
2026-03-18 17:32:41 -03:00
2025-02-03 07:04:59 -05:00
2025-02-03 07:04:59 -05:00
2024-07-06 13:09:13 +02:00
2024-07-06 13:09:13 +02:00
2024-07-06 13:09:13 +02:00
2025-05-11 18:04:57 -04:00
2024-07-06 13:09:13 +02:00