Skip to content

x86_64: preserve large page text mappings with CONFIG_DEBUG_RODATA

Suresh Siddha lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86_64: preserve large page mapping for 1st 2MB kernel txt with CONFIG_DEBUG_RODATAarch/x86/kernel/head_64.S arch/x86/mm/init_64.c+5 -41 reply
2/2x86_64: align RODATA kernel section to 2MB with CONFIG_DEBUG_RODATAarch/x86/include/asm/sections.h arch/x86/kernel/vmlinux.lds.S arch/x86/mm/init_64.c +1 more+50 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] x86_64: preserve large page text mappings with CONFIG_DEBUG_RODATA

Most of the distributions enable CONFIG_DEBUG_RODATA by default, with the assumption that the debug protection checks come with no cost. Our OLTP tests showed 1% improvement (with 2% reduction in system time and 1% increase in iowait idle time) by disabling CONFIG_DEBUG_RODATA on a two socket NHM-EP system.

CONFIG_DEBUG_RODATA breaks some of the kernel text/data large page mappings to small pages, thus causing this regression. These two patches address this issue.

Experiments with EL5 kernel and mainline show that the first patch in the series (preserve large page mapping for 1st 2MB kernel txt with CONFIG_DEBUG_RODATA) should recover most of the above mentioned regression. We are doing couple of more OLTP tests for the confirmation.

thanks,
suresh