- 论坛徽章:
- 0
|
The slab allocator includes a general-purpose allocation tracing facility that tracks the allocation history of objects. The facility is switched off by default and can be enabled by setting the system variable kmem_flags.
Setting kmem_flags to indicate the type of tracing desired, usually 0x1F to indicate all tracing
Booting the system with kadb -d and setting kmem_flags before startup
Rebooting with command: boot kmdb -d
Boot device: /pci@1c,600000/scsi@2/disk@0,0:a File and args: kmdb -d
Loading kmdb...
/
Welcome to kmdb
kmdb: unable to determine terminal type: assuming `vt100'
[1]> kmem_flags/D
kmem_flags:
kmem_flags: 0
[1]> kmem_flags/W 0x1f
kmem_flags: 0 = 0x1f
[1]> :c
SunOS Release 5.10 Version Generic_118833-24 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
kmem_bufctl_audit_cache 3000006db88 2 corrupt buffers
anon_cache 300057d8f08 2 corrupt buffers
> 300057d8f08::whatis
300057d8f08 is 300057d8f08+0 (vmem_seg 3000576dd18) from kmem_cache vmem arena
> 3000006db88::whatis
3000006db88 is 3000006db88+0 (vmem_seg 300000370a0) from kmem_cache vmem arena
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29885/showart_1723859.html |
|