All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] AceDelta: OTA delta for EROFS images, 30-40% smaller than AOSP 17 delta_generator
@ 2026-10-07 14:58 peacherwu
  2026-10-07 15:25 ` Gao Xiang
  0 siblings, 1 reply; 5+ messages in thread
From: peacherwu @ 2026-10-07 14:58 UTC (permalink / raw)
  To: linux-erofs; +Cc: hsiangkao, chao

[-- Attachment #1: Type: text/plain, Size: 1613 bytes --]

Hi,

I'd like to share results of an alternative OTA delta generator/applier
for EROFS partition images.

AceDelta diffs whole EROFS partitions (system, vendor, odm, my_* etc.) at
file level, recompressing lz4 clusters on apply. Compared with AOSP 17
delta_generator (minor_version 10, -enable_lz4diff)
on seven real consecutive-build pairs from five phones:

  Device / builds                    AOSP MB  AceDelta MB  Reduction
  OnePlus 15      A.22 -> A.27        1152.6      683.7      40.7%
  OPPO Find X8 Pro C.76 -> C.79       1059.1      733.1      30.8%
  Xiaomi 15 Pro   2.0.105 -> 2.0.214  1038.6      655.6      36.9%
  Xiaomi 15 Pro   3.0.3 -> 3.0.7       833.4      490.4      41.2%
  Xiaomi 15 Pro   2.0.214 -> 3.0.3    2657.9     1685.8      36.6%
  Nubia Z80 Ultra 16.0.12 -> 16.0.16   767.9      514.7      33.0%
  Realme GT8 Pro  A.68 -> A.71        1268.9      878.1      30.8%

Generation is ~2.5x faster than delta_generator; apply time (on PC) is
about the same (single-thread 8% slower, multi-thread 20% faster using more
RAM). Hash tree and FEC are
regenerated at apply time by my own implementations. Detailed info, plus
Linux evaluation binaries:

  https://github.com/peacherwu969/acedelta

A question for EROFS people. Both AOSP (lz4diff) and AceDelta must
reproduce the lz4 compression exactly; mismatches are patched with small
fixups. Although AceDelta is doing better than AOSP in fixup sizes through
lots of experiments, it's still like shooting in the dark. Is there a more
systematic way that ensures exactness?

Is there an EROFS WeChat group I could join?

Thanks,
--Peacher

[-- Attachment #2: Type: text/html, Size: 1920 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-08 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 14:58 [RFC] AceDelta: OTA delta for EROFS images, 30-40% smaller than AOSP 17 delta_generator peacherwu
2026-10-07 15:25 ` Gao Xiang
2026-10-07 16:31   ` peacherwu
2026-10-07 16:57     ` Kelvin Zhang
2026-10-08 13:11       ` peacherwu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.