https://redmine.replicant.us/https://redmine.replicant.us/favicon.ico?15984615062021-06-27T15:30:26ZReplicantReplicant - Issue #2265: Check if there is any lost memory for the Galaxy SII (GT-I9100)https://redmine.replicant.us/issues/2265?journal_id=91582021-06-27T15:30:26ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul></ul><p>The Galaxy SII (GT-I9100) is supposed to have 1 GB / GiB of RAM.</p>
<p>In Replicant 6.0 0004 RC5, htop reports 785M of RAM and 255M of swap space that is backed by zram<sup><a href="#fn1">1</a></sup>.</p>
<p><code>/proc/cmdline</code> also has <code>vmalloc=144m</code>. I've not found yet where this vmalloc=144m comes from though as it doesn't seem to be in <code>arch/arm/configs/lineageos_i9100_defconfig</code> in the smdk kernel.</p>
<p>Since, in Replicant 6, we don't use the GPU driver, that is probably eating a lot of memory for no practical gains.</p>
<p>So it could be a good idea to try to reclaim that memory for Replicant 6.</p>
<p id="fn1" class="footnote"><sup>1</sup> <code>/proc/swaps</code> has only one line that starts with <code>/dev/block/zram0</code>.</p> Replicant - Issue #2265: Check if there is any lost memory for the Galaxy SII (GT-I9100)https://redmine.replicant.us/issues/2265?journal_id=91592021-06-27T15:46:02ZDenis 'GNUtoo' CarikliGNUtoo@cyberdimension.org
<ul></ul><p>According to <a class="external" href="https://redmine.replicant.us/projects/replicant/wiki/GTI9100Bootloader">https://redmine.replicant.us/projects/replicant/wiki/GTI9100Bootloader</a> , <code>vmalloc=144m</code> 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 <a class="external" href="https://redmine.replicant.us/projects/replicant/wiki/BootloaderInterfaces">https://redmine.replicant.us/projects/replicant/wiki/BootloaderInterfaces</a> doesn't mention it.</p>
<p>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.</p>