kernel memory allocation

From: HBOUKOTT@bouyguestelecom.fr
Date: Thu Oct 09 2003 - 09:11:40 EDT


Hi,
>
> I have a small problem, I'm trying to know the size of memory allocated to
> the kernel and also to the cache file system in solaris 8, but using
> differnt method
> i do not get the same result ?
>
> Q1 : how to determine exactely the memory used by the kernel ?
>
> Q2 : what is the method to find the exact size of cache file system used
> on the server running solaris 8 ?
>
> Method 1 :
> # prtmem
>
> Total memory: 118 Megabytes
> Kernel Memory: 26 Megabytes
> Application: 47 Megabytes
> Executable & libs: 15 Megabytes
> File Cache: 7 Megabytes
> Free, file cache: 17 Megabytes
> Free, free: 5 Megabytes
>
>
> Method 2 :
>
> # netstat -kp | grep pp_kernel
> desscan 25 pp_kernel 3450 pagesfree 2979 pageslocked 3799 pagestotal 15151
>
> # pagesize
> 8192
> # bc
> 3450*8192/1024/1024
> 26
>
> Method 3 :
>
> # sar -k 1 1
> # sar -k 1 1
> 10:56:23 sml_mem alloc fail lg_mem alloc fail ovsz_alloc fail
> 10:56:24 6054016 4382865 0 47644672 36432520 0 3194880 10667
> # bc
> 6054016+47644672+3194880
> 56893568
> 56893568/1024/1024
> 54
>
> Method 4 :
>
> #mdb -k
> Loading modules: [ unix krtld genunix ip nfs lofs ipc ptm logindmux ]
> > ::kmastat
>
> cache buf buf buf memory alloc alloc
> name size in use total in use succeed fail
> ------------------------- ------ ------ ------ --------- --------- -----
> kmem_magazine_1 16 78 508 8192 1522 0
> kmem_magazine_3 32 774 2032 65536 9658 0
> kmem_magazine_7 64 192 254 16384 787 0
> kmem_magazine_15 128 886 945 122880 5234 0
> kmem_magazine_31 256 0 0 0 0 0
> kmem_magazine_47 384 0 0 0 0 0
> kmem_magazine_63 512 0 0 0 0 0
> kmem_magazine_95 768 0 0 0 0 0
> kmem_magazine_143 1152 0 0 0 0 0
> kmem_slab_cache 56 921 2159 139264 2253 0
> kmem_bufctl_cache 32 6442 15494 499712 18963 0
> kmem_bufctl_audit_cache 184 0 0 0 0 0
> kmem_va_8192 8192 2213 3104 25427968 3653 0
> kmem_va_16384 16384 33 48 786432 33 0
> kmem_va_24576 24576 4 10 262144 4 0
> kmem_va_32768 32768 0 0 0 0 0
> kmem_va_40960 40960 0 0 0 0 0
> kmem_va_49152 49152 0 0 0 0 0
> kmem_va_57344 57344 0 0 0 0 0
> kmem_va_65536 65536 0 0 0 0 0
> kmem_alloc_8 8 7689 9153 73728 1407254 0
> kmem_alloc_16 16 5196 6604 106496 1146242 0
> kmem_alloc_24 24 3753 5085 122880 1475791 0
> kmem_alloc_32 32 1603 2286 73728 242076 0
> kmem_alloc_40 40 712 6090 245760 269127 0
> ........
> ------------------------- ------ ------ ------ --------- --------- -----
> Total [kmem_internal] 851968 38417 0
> Total [kmem_va] 26476544 3690 0
> Total [kmem_default] 18767872 32660982 0
> Total [bp_map] 1048576 151 0
> Total [segkp] 6946816 3159 0
> Total [ip_minor] 128 22171 0
> ------------------------- ------ ------ ------ --------- --------- -----
>
>
>
> THANX in Advance.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:16 EDT