Re: [PATCH v3 0/3] m68k/mm: switch from DISCONTIGMEM to SPARSEMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 23, 2020 at 07:16:45AM +1200, Michael Schmitz wrote:
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.

The problem with sparse, however, is the memory wasted for empty memmap.
For example, if the section size is 16M and there is, say, 17M of
FastRAM, the memory map will be created for 32M. This means that there
will be 3840 unused 'struct page' objects. :(


How many FastRAM do you have in your configuration?

Only 256 MB. Can't use much more on my old Powerbook.

Cheers,

	Michael


-- 
Sincerely yours,
Mike.



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux