Module Name: src Committed By: maxv Date: Thu Feb 22 13:27:18 UTC 2018
Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/amd64/include: pmap.h src/sys/arch/x86/x86: cpu.c svs.c x86_machdep.c Log Message: Remove svs_pgg_update(). Instead of manually changing PG_G on each page, we can disable the global-paging mechanism in %cr4 with CR4_PGE. Do that. In addition, install CR4_PGE when SVS is disabled manually (via the sysctl). Now, doing "sysctl -w machdep.svs_enabled=0" restores the performance completely, exactly as if SVS hadn't been enabled in the first place. To generate a diff of this commit: cvs rdiff -u -r1.300 -r1.301 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.44 -r1.45 src/sys/arch/amd64/include/pmap.h cvs rdiff -u -r1.148 -r1.149 src/sys/arch/x86/x86/cpu.c cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/x86/svs.c cvs rdiff -u -r1.106 -r1.107 src/sys/arch/x86/x86/x86_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.