Project

General

Profile

Actions

Issue #2265

open

Check if there is any lost memory for the Galaxy SII (GT-I9100)

Added by Denis 'GNUtoo' Carikli over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Devices
Target version:
Start date:
06/27/2021
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
Galaxy S 2 (I9100)
Grant:
Type of work:
Build system integration, C programming
Actions #1

Updated by Denis 'GNUtoo' Carikli over 3 years ago

The Galaxy SII (GT-I9100) is supposed to have 1 GB / GiB of RAM.

In Replicant 6.0 0004 RC5, htop reports 785M of RAM and 255M of swap space that is backed by zram1.

/proc/cmdline also has vmalloc=144m. I've not found yet where this vmalloc=144m comes from though as it doesn't seem to be in arch/arm/configs/lineageos_i9100_defconfig in the smdk kernel.

Since, in Replicant 6, we don't use the GPU driver, that is probably eating a lot of memory for no practical gains.

So it could be a good idea to try to reclaim that memory for Replicant 6.

1 /proc/swaps has only one line that starts with /dev/block/zram0.

Actions #2

Updated by Denis 'GNUtoo' Carikli over 3 years ago

According to https://redmine.replicant.us/projects/replicant/wiki/GTI9100Bootloader , vmalloc=144m is not part of the stock cmdline potentially passed by the bootloader. I'm also unsure if the cmdline arguments from the bootloader are used or not as https://redmine.replicant.us/projects/replicant/wiki/BootloaderInterfaces doesn't mention it.

Since the GT-I9100 kernel uses a zImage, the arguments are probably either baked inside the zImage by the Android build system (lineageos_i9100_defconfig doens't have vmalloc=144m) or passed by the bootloader in some hardcoded way or through another way than the cmdline from the bootloader environment.

Actions

Also available in: Atom PDF