Compare commits

...
Author SHA1 Message Date
Federico Amedeo Izzo 5ee22f8fa9 device-google-sargo: Specify zRAM size to have 2GB swap
google-sargo has 3.5GB of RAM, and by default has 50% zRAM swap = 1.7GB.
Specifying the zRAM size to 57% results in 2GB of zRAM swap, matching
the zRAM size on stock Android.
This improves the stability of the system, avoiding OOM process kills.

This results in a small increase in RAM usage (60MB compressed size),
but the 300MB increased swap space benefit outweights the 60MB RAM cost.

Before:
$ zramctl
NAME       ALGORITHM DISKSIZE  DATA  COMPR  TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd          1.7G  1.7G 501.6M 515.2M         [SWAP]
After:
$ zramctl
NAME       ALGORITHM DISKSIZE  DATA  COMPR  TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd            2G  1.9G 560.5M 575.8M         [SWAP]
2026-01-11 10:24:17 +01:00
2 changed files with 4 additions and 3 deletions

No files matched your search

@@ -2,8 +2,8 @@
# Maintainer: Richard Acayan <mailingradian@gmail.com>
pkgname=device-google-sargo
pkgdesc="Google Pixel 3a"
pkgver=15
pkgrel=1
pkgver=16
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -77,7 +77,7 @@ plasma_camera() {
sha512sums="
089ce0acba4e1d789e337bedfca7570796a6416e7230ae9b8fc6b625747a40dbb064b1a707877cd6b7bdc73844c6571316e2ec0746a77060f13d98c52fdbfc00 81-libssc-google-sargo.rules
003879e246731b6e930cd1f60a910188a76962c0659598176df39f74ff7b727f3bd6fc3aec403bfa001ed4672ba75243e5a783663304b18f54d409b7b636edb4 deviceinfo
b91113c470e5f09c6968382d7c635ed8f412bce39aa1a66ef4c0f616592264f292aa01b81f02e0b8a695312af40d16cc980e156f0e5fe8821e4e60075a9fdee8 deviceinfo
b6208c254b6e44ac4f6d748a38cc6b05da0db2c90235ada2011b138b82ccc3372687df2f5ad97e885e9eea135216a3c52266a08a7f4eb323e62e799f6f82ec7b hexagonrpcd.confd
925d8b176a8f1b47a86a1026cc920ffae99ceb35c3e52c222654c15078907579d23c4d68ed65a98ab937f59aaba2bbdd74da8d273e8b9c1ac87a52f718d383d6 modules-initfs
2972005a9cf6ca57061965075593dddfa8ee479bc6c21cd41851b1a14768cb1cddbd31a17975ae17adc36d40d294ccbc6bf83defbd69fc7b363f638d8564fbbc no-hexagonrpcd-on-suspend.sh
@@ -16,6 +16,7 @@ deviceinfo_chassis="handset"
deviceinfo_external_storage="false"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2220"
deviceinfo_zram_swap_pct="57"
# Bootloader related
deviceinfo_flash_method="fastboot"