Re: [PATCH v2] mm: kfence: allocate kfence_metadata at runtime

From: Peng Zhang
Date: Wed Jul 12 2023 - 05:38:41 EST




在 2023/7/12 17:30, Alexander Potapenko 写道:
Below is the numbers obtained in qemu (with default 256 objects).
before: Memory: 8134692K/8388080K available (3668K bss)
after: Memory: 8136740K/8388080K available (1620K bss)
More than expected, it saves 2MB memory. It can be seen that the size
of the .bss section has changed, possibly because it affects the linker.

The size of .bss should only change by ~288K. Perhaps it has crossed
the alignment boundary for .bss, but this effect cannot be guaranteed
and does not depend exclusively on this patch.
I suggest that you omit these lines from the patch description, as
they may confuse the readers.
Ok, I'll revise it to avoid confusion.