Author: alfred
Date: Tue Nov 6 04:10:32 2012
New Revision: 242655
URL: http://svnweb.freebsd.org/changeset/base/242655
Log:
export VM_MIN_KERNEL_ADDRESS and VM_MAX_KERNEL_ADDRESS via sysctl.
On several platforms the are determined by too many nested #defines to be
easily discernible. This will aid in development of auto-tuning.
Modified:
head/sys/kern/kern_malloc.c
Modified: head/sys/kern/kern_malloc.c
==============================================================================
--- head/sys/kern/kern_malloc.c Tue Nov 6 02:43:41 2012 (r242654)
+++ head/sys/kern/kern_malloc.c Tue Nov 6 04:10:32 2012 (r242655)
@@ -186,6 +186,14 @@ struct {
*/
static uma_zone_t mt_zone;
+static u_long vm_min_kernel_address = VM_MIN_KERNEL_ADDRESS;
+SYSCTL_ULONG(_vm, OID_AUTO, min_kernel_address, CTLFLAG_RD,
+ &vm_min_kernel_address, 0, "Min kernel address");
+
+static u_long vm_max_kernel_address = VM_MAX_KERNEL_ADDRESS;
+SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
+ &vm_max_kernel_address, 0, "Max kernel address");
+
u_long vm_kmem_size;
SYSCTL_ULONG(_vm, OID_AUTO, kmem_size, CTLFLAG_RDTUN, &vm_kmem_size, 0,
"Size of kernel memory");
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"