Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 20:10:38 +0100
From:      Tor.Egge@fast.no
To:        dillon@apollo.backplane.com
Cc:        hackers@freebsd.org
Subject:   Re: Problems in VM structure ?
Message-ID:  <199902171910.UAA17721@midten.fast.no>
In-Reply-To: Your message of "Wed, 17 Feb 1999 09:44:28 -0800 (PST)"
References:  <199902171744.JAA06913@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>     Ok, so if we have 512MB of main memory and maxusers set to 256.
> 
>     NMBCLUSTRS = 4608
>     NSFBUFS    = 4608
>     NPROC      = 4116
>     MAXFILES   = 8232
> 
>     ( MCLBYTES   = 2048 )
> 
> 	mem_size is 512MB
> 	vm_kmem_size = VM_KMEM_SIZE_MAX	( 80 MB )
> 
> 	kmem_map  is 2.3 + 9.4 + 80  = around 90 MB.
> 	clean_map is 68MB + 4.1MB + 8.3MB = around 80 MB
> 	exec_map is 1.2MB
> 
>     So the total KVM allocated is 170MB.

not# sysctl vm.zone
vm.zone: 
ITEM            SIZE     LIMIT    USED    FREE  REQUESTS

PIPE:            160,        0,     30,     72,     3385
SWAPMETA:        160,   257216,      0,      0,        0
unpcb:            64,        0,     16,    112,      271
ripcb:            96,    12288,      0,     84,        7
divcb:            96,    12288,      0,      0,        0
tcpcb:           288,    12288,     62,     36,      858
udpcb:            96,    12288,     15,     69,      593
unpcb:            64,        0,      0,      0,        0
socket:          192,    12288,     94,     53,     1736
AIOLIO:          704,        0,      0,      0,        0
AIOL:             64,        0,      0,      0,        0
AIOCB:           128,        0,      0,      0,        0
AIOP:             32,        0,      0,      0,        0
AIO:              96,        0,      0,      0,        0
NFSNODE:         288,        0,    235,    689,     3247
NFSMOUNT:        544,        0,      2,     12,        0
VNODE:           192,        0,  40258,     22,    39878
NAMEI:          1024,        0,      0,     16,  2336773
VMSPACE:         224,        0,     74,     34,     4169
PROC:            352,        0,     77,     39,     4172
DP fakepg:        64,        0,      6,    122,        5
PV ENTRY:         28,  1085214,  34500,  96507,  2058072
MAP ENTRY:        40,        0,   1754,    312,  1383328
KMAP ENTRY:       40,    32280,    139,    193,     6824
MAP:             100,        0,      7,      3,        7
VM OBJECT:       116,        0,  29465,   1871,   126952


All zones with ZONE_INTERRUPT flag has preallocated KVA
and a nonzero max. --> 78 MB.

SMP --> 4 MB per processor private kva
last page dir entry reserved for alternate page table --> 4 MB
Kernel text + data + bss --> 1.5 MB

	78 MB + 4 MB + 4 MB + 1.5 MB + 170 MB --> 257.5 MB

When looking at current kernel_map on a 512 MB SMP machine with
maxusers set to 256, VM_KMEM_SIZE and VM_KMEM_SIZE_MAX set to
128 MB and NMBCLUSTERS set to 12288:

	(kgdb) print kernel_map->size
	$1 = 334737408

- Tor Egge


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902171910.UAA17721>