Subject: CVS commit: src/sys/arch/sparc64
To: None <source-changes@netbsd.org>
From: Martin Husemann <martin@netbsd.org>
List: source-changes
Date: 01/31/2003 21:05:58
Module Name:	src
Committed By:	martin
Date:		Fri Jan 31 19:05:57 UTC 2003

Modified Files:
	src/sys/arch/sparc64/include: pmap.h
	src/sys/arch/sparc64/sparc64: genassym.cf locore.s pmap.c

Log Message:
Make the pmap count resident/wired mappings on the fly instead of
walking the page tables whenever this information is needed.

Add an option PMAP_COUNT_DEBUG to assert the new counts and the
page table walk agree.

The old solution had very bad performance impact, for example
by the high CPU load when running top(1).

Thanks to Simon Burge for pointing at the cause of the problem and
to Valeriy E. Ushakov for optimizing my simple minded assembler code.


To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/sys/arch/sparc64/include/pmap.h
cvs rdiff -r1.28 -r1.29 src/sys/arch/sparc64/sparc64/genassym.cf
cvs rdiff -r1.164 -r1.165 src/sys/arch/sparc64/sparc64/locore.s
cvs rdiff -r1.134 -r1.135 src/sys/arch/sparc64/sparc64/pmap.c

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