Re: [PATCH 00/14] MIPS: memblock: Switch arch code to NO_BOOTMEM
From: Alexander Sverdlin
Date: Thu Jan 25 2018 - 12:58:45 EST
Hello Serge,
On 17/01/18 23:22, Serge Semin wrote:
> The patchset is applied on top of kernel 4.15-rc8 and can be found
> submitted at my repo:
> https://github.com/fancer/Linux-kernel-MIPS-memblock-project
I've tested the Linux from your repo on Octeon2 and it looks good to me.
I've only tested startup though. Therefore,
Tested-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
I've noticed one positive effect I cannot explain -- with almost the same
physical memory map I observe almost 2 megabytes more available memory
after startup:
without patches:
root@(none):~ >free
total used free shared buff/cache available
Mem: 955040 16264 839948 80068 98828 810068
Swap: 0 0 0
memory map:
memory: 0000000001090dc0 @ 0000000009000000 (usable after init)
memory: 0000000005400000 @ 0000000002b00000 (usable)
memory: 0000000000c00000 @ 0000000008200000 (usable)
memory: 0000000004800000 @ 000000000a100000 (usable)
memory: 000000001fc00000 @ 0000000020000000 (usable)
memory: 0000000010000000 @ 0000000040000000 (usable)
memory: 000000000190a9d0 @ 0000000001100000 (usable)
----------------------------------------
with patches:
root@(none):~ >free
total used free shared buff/cache available
Mem: 955028 14292 841884 80068 98852 811996
Swap: 0 0 0
memory map:
memory: 0000000001090e00 @ 0000000009000000 (usable after init)
memory: 0000000005400000 @ 0000000002b00000 (usable)
memory: 0000000000c00000 @ 0000000008200000 (usable)
memory: 0000000004800000 @ 000000000a100000 (usable)
memory: 000000001fc00000 @ 0000000020000000 (usable)
memory: 0000000010000000 @ 0000000040000000 (usable)
memory: 000000000190c9d0 @ 0000000001100000 (usable)
> Signed-off-by: Serge Semin <fancer.lancer@xxxxxxxxx>
>
> Serge Semin (14):
> MIPS: memblock: Add RESERVED_NOMAP memory flag
> MIPS: memblock: Surely map BSS kernel memory section
> MIPS: memblock: Reserve initrd memory in memblock
> MIPS: memblock: Discard bootmem initialization
> MIPS: memblock: Add reserved memory regions to memblock
> MIPS: memblock: Reserve kdump/crash regions in memblock
> MIPS: memblock: Mark present sparsemem sections
> MIPS: memblock: Simplify DMA contiguous reservation
> MIPS: memblock: Allow memblock regions resize
> MIPS: memblock: Perform early low memory test
> MIPS: memblock: Print out kernel virtual mem layout
> MIPS: memblock: Discard bootmem from Loongson3 code
> MIPS: memblock: Discard bootmem from SGI IP27 code
> MIPS: memblock: Deactivate bootmem allocator
--
Best regards,
Alexander Sverdlin.