免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2077 | 回复: 0
打印 上一主题 下一主题

Solaris 10 Kernel -- Enabling KMA DEBUG Flags [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 16:55 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP