mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 07:07:24 -04:00
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.
This commit is contained in:
parent
a21345b401
commit
fc6874bcbb
1 changed files with 8 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue