Hi Mike,
Am 22.08.2020 um 21:51 schrieb Mike Rapoport:
Hi Michael,
On Sat, Aug 22, 2020 at 11:27:18AM +1200, Michael Schmitz wrote:
Hi Mike,
only tested on ARAnyM, but appears to work (after adding sparsemem.h and
changing memblocks_present() to non-static).
Cool, thanks!
memblocks_present() is now called from sparse_init() and can be simply
dropped.
Right you are - I missed that in the hurry.
20 kB more total memory with sparsemem. Less memory used when booting
to FastRAM, more used when booting to ST-RAM (checked right after boot
on an idle system). The latter probably isn't significant.
When booting to FastRAM we still discard ST-RAM and only use it as
device memory for the framebuffer. So the total memory map size will be
smaller.
Makes sense, but I was still surprised that replacing discontigmem by
sparsemem saves 20 kB regardless of whether or not ST-RAM is used.
How many FastRAM do you have in your configuration?
Only 256 MB. Can't use much more on my old Powerbook.
Cheers,
Michael