Module Name:    src
Committed By:   maxv
Date:           Sat Feb 11 16:02:11 UTC 2017

Modified Files:
        src/sys/arch/amd64/conf: Makefile.amd64 kern.ldscript

Log Message:
Put 2MB alignments between the kernel segments. This way the kernel image
is entirely mapped with large pages, which uniformizes performance and
reduces fluctuation. Sent on port-amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/amd64/conf/Makefile.amd64
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/amd64/conf/kern.ldscript

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/conf/Makefile.amd64
diff -u src/sys/arch/amd64/conf/Makefile.amd64:1.56 src/sys/arch/amd64/conf/Makefile.amd64:1.57
--- src/sys/arch/amd64/conf/Makefile.amd64:1.56	Thu Feb  2 19:09:08 2017
+++ src/sys/arch/amd64/conf/Makefile.amd64	Sat Feb 11 16:02:11 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.amd64,v 1.56 2017/02/02 19:09:08 maxv Exp $
+#	$NetBSD: Makefile.amd64,v 1.57 2017/02/11 16:02:11 maxv Exp $
 
 # Makefile for NetBSD
 #
@@ -61,7 +61,7 @@ KERN_AS=	library
 ## (5) link settings
 ##
 TEXTADDR?=	0xffffffff80200000
-EXTRA_LINKFLAGS=	-z max-page-size=0x100000
+EXTRA_LINKFLAGS=	-z max-page-size=0x200000
 LINKFLAGS_NORMAL=	-X
 KERNLDSCRIPT?= ${AMD64}/conf/kern.ldscript
 

Index: src/sys/arch/amd64/conf/kern.ldscript
diff -u src/sys/arch/amd64/conf/kern.ldscript:1.21 src/sys/arch/amd64/conf/kern.ldscript:1.22
--- src/sys/arch/amd64/conf/kern.ldscript:1.21	Thu May 12 09:05:16 2016
+++ src/sys/arch/amd64/conf/kern.ldscript	Sat Feb 11 16:02:11 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern.ldscript,v 1.21 2016/05/12 09:05:16 maxv Exp $	*/
+/*	$NetBSD: kern.ldscript,v 1.22 2017/02/11 16:02:11 maxv Exp $	*/
 
 #include "assym.h"
 
@@ -35,7 +35,7 @@ SECTIONS
 		*(.rodata.*)
 	}
 
-	. = ALIGN(__PAGE_SIZE);
+	. = ALIGN(__LARGE_PAGE_SIZE);
 
 	__data_start = . ;
 	.data :
@@ -66,7 +66,7 @@ SECTIONS
 		. = ALIGN(64 / 8);
 	}
 
-	. = ALIGN(__PAGE_SIZE);
+	. = ALIGN(__LARGE_PAGE_SIZE);
 
 	/* End of the kernel image */
 	__kernel_end = . ;

Reply via email to